- Joined
- Mar 24, 2013
- Messages
- 68
- Reaction score
- 9
- First Language
- English
- Primarily Uses
Having a minor issue with getting my targets right. I'm using the Undead ability that Yanfly covered in his Tips and Tricks. What he covered is working fine, any enemy with the Undead state now takes damage when hit with a healing spell. Here's where I'm having an issue. I want to do a Final Fantasy-esque Life spell in the same vein as the Undead tip/trick, ie when an Undead enemy is hit with Life, he dies instantly. I've got that part working using the following notetag using the Skills Core:
<Before Eval>
if ( target.isStateAffected(29) ) target.gainHp(-target.mhp); else if ( target.hp <=0 || target.isDead() ) target.gainHp(1);
</Before Eval>
That works great. The problem is in the targeting. When I set the scope of the skill to "1 Ally (Dead)", the spell revives any dead player it hits but it will only target the party. If I change the scope to Ally, I can select all battlers (enemy and player) but if I cast on a dead character nothing happens. I tried using the <Actor or Enemy Select> notetag from Selection Control but the same thing happens; I can target anybody including dead allies, but if the skill casts on a dead ally nothing happens. Any ideas? Thanks!!!
<Before Eval>
if ( target.isStateAffected(29) ) target.gainHp(-target.mhp); else if ( target.hp <=0 || target.isDead() ) target.gainHp(1);
</Before Eval>
That works great. The problem is in the targeting. When I set the scope of the skill to "1 Ally (Dead)", the spell revives any dead player it hits but it will only target the party. If I change the scope to Ally, I can select all battlers (enemy and player) but if I cast on a dead character nothing happens. I tried using the <Actor or Enemy Select> notetag from Selection Control but the same thing happens; I can target anybody including dead allies, but if the skill casts on a dead ally nothing happens. Any ideas? Thanks!!!


