Yup, I wondered whether something like that would happen...item/skill scope can be tricky. xP
Not sure how best to do this with Yanfly's plugins, but I discovered one of Kadokawa's plugins called DeadOrAliveItem.js that sounds perfect! It adds two extra scopes via notetags: single ally (dead/alive) and all allies (dead/alive). I use the Steam version and found the plugin in my RMMV install folder, under
dlc/KadokawaPlugins. If you can't find it and you're using the standalone version then this thread may help:
https://forums.rpgmakerweb.com/index.php?threads/cant-find-the-kadokawa-plugins-folder.55399/
Thank you for the digging. I was very excited to try this, even more so when I found I already had it installed! I also use Steam.
Unfortunately, it doesn't work. I tried it at the bottom of my plugin list, then at the top [suspecting a conflict]. Same in both cases. If I target a dead ally, it heals the caster. I am not sure if the issue is that it's a skill rather than an item... But I think there's a problem with Yanfly's Battle Core compatibility too [unfortunately completely necessary for my project, which is based around Yanfly plugins, but this thread suggests they can't work together:
https://forums.rpgmakerweb.com/inde...-deadoraliveitem-pre-order-dlc-plugins.49678/.] Looking into the problem further also led me to this thread similar to my own:
https://forums.rpgmakerweb.com/inde...x-item-that-heals-basically-everything.48783/
Unfortunately, this user's goal was a little simpler [restore all, not restore target] but the solution may lie somewhere in that thread, or at least a clue to it. I am still trying different things with no success. I tried combining the Deadoralive with a common event [leading to two separate skills, as suggested at the start of this thread] and it also didn't work.
Edit: I don't have the coding knowledge to know exactly how to work something, but would something like this be possible like a common event?
store targeted user's id as a variable
remove knocked out status on party member with that ID
heal that party member
to bypass the targeting system? Or would it just run into the same problem and save the wrong target's id, because it wouldn't let the user truly target a dead person? Could possibly just save all knocked out party member's IDs, but then it would also revive them when targeting a living person, and would have problems if there's more than one knocked out at a time... Ugh. I don't really know what I'm talking about, just making suggestions in the hope someone smarter and more experienced than me can realise a way to make it work
😀