- Joined
- Feb 8, 2016
- Messages
- 22
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Is it possible to have a skill do an or operation. I want the state to cause either mp loss " or " hp loss....not at the same time as it does in this example.
This is spirit shackles skill type idea found on Yanfly's tip & tricks page with slight alteration.
<Pre-Damage Eval>
if (user.isStateAffected(45)) {
user.gainMp(-5) || user.gainHp(-100)
}
</Pre-Damage Eval>
This is spirit shackles skill type idea found on Yanfly's tip & tricks page with slight alteration.
<Pre-Damage Eval>
if (user.isStateAffected(45)) {
user.gainMp(-5) || user.gainHp(-100)
}
</Pre-Damage Eval>

