- Joined
- May 2, 2020
- Messages
- 136
- Reaction score
- 51
- First Language
- English
- Primarily Uses
- RMMV
Hello, fellow game makers! I hope that you all had/are having a restful weekend.
I'm trying to make a set of active spells/skills that heal when used on an ally (state 30), but do damage to any enemies which are undead (state 301). The method I'm using works, but it displays a 0 value for the healing, even when it heals. How do I get around this?
Script in battle formula:
if(b.isStateAffected(301)){20+a.mat*5-b.mdf;} else{b.gainHp((b.mhp)/2); 0}
Script in Note area:
I'm trying to make a set of active spells/skills that heal when used on an ally (state 30), but do damage to any enemies which are undead (state 301). The method I'm using works, but it displays a 0 value for the healing, even when it heals. How do I get around this?
Script in battle formula:
if(b.isStateAffected(301)){20+a.mat*5-b.mdf;} else{b.gainHp((b.mhp)/2); 0}
Script in Note area:
<Max Mastery Level: 20>
<Target: Everybody>
<Custom Select Condition>
if (target.isStateAffected(301) || target.isStateAffected(30))
{condition = true;}
else {condition = false;}
</Custom Select Condition>
<Target: Everybody>
<Custom Select Condition>
if (target.isStateAffected(301) || target.isStateAffected(30))
{condition = true;}
else {condition = false;}
</Custom Select Condition>