Hi!
I need help creating a skill that strikes an enemy then heals the weakest alive ally for 50% of the damage dealt. I have tried creating one with battle events but... it ended up being very complicated and I wasn't able to show the healing animation on the weakest ally.
I searched the forums and elsewhere on the web but I'm kinda stuck.
I'm using a lot of Yanfly's plugins, including battle core, skill core, action sequence packs, etc.
Thank you in advance 🙂
Link the skill to a common event that checks every character in the party's HP through variables (one variable for each character that gets checked), then force cast a healing skill to restore the character that was found to be lowest on HP in the check.
Yup, that's what I tried at first.
Unfortunately, the force action command doesn't allow you to target a specific character. You can only target an index (for example, target character in position 2).
However, I don't know how to tell the game what character is in what position. So I'm kinda stuck here :S
Edit: Aaaaah I just had an idea... I could probably use Yanfly's target core <custom target eval>..
I think if I could figure out how to make the skill target the weakest ally (I know nothing about coding), it would probably override the force action targetting system...
I'm gonna research how to do this, but since I suck at coding it might take a while. If meanwhile, somebody has an idea, feel free to help me out 🙂
Wow! This works perfectly! Thank you! It does exactly what I wanted 🙂
Thank you so much!! 🙂
Edit: After a little more testing, I realized that, if the attack misses, the game crashes when it's about to heal :S I guess it doesn't know what to do with the healing.
I only had Yanfly plugins activated at the time of testing, but maybe it's one of them interfering. I'll be testing more tonight.
Just change the after eval to the <Post-Damage Eval></Post-Damage Eval> tag and it'll be good, even if it misses.
Excellent! It works perfectly now 🙂
Thank you very much, you two!!