Right now I'm finishing up a character mechanic where if she basic attacks an enemy that has a specific state on them, she will heal some hp back. I'm not very familiar with the JS stuff but I've been fumbling my way through so far. My issue is simply that I can't get the healing part to trigger after damage is dealt. This is the code I have in her custom basic attack skill notetag box.
<JS Post-Damage>
if (target.isStateAffected(36) == true)
{
user.gainHP(Math.round(value * 0.5));
};
</JS Post-Damage>
I know this should be easily possible, I just think I'm missing something in my code here that I can't figure out. I'd appreciate it if anyone could help with this!
<JS Post-Damage>
if (target.isStateAffected(36) == true)
{
user.gainHP(Math.round(value * 0.5));
};
</JS Post-Damage>
I know this should be easily possible, I just think I'm missing something in my code here that I can't figure out. I'd appreciate it if anyone could help with this!