http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/
I'm trying to add a passive state to a hero that increases his attack when there are more enemies. I know I need to use a conditional state, but I don't know how to code it.
So, if I want to create a passive state that doubles his attack when there are two enemies, I would use this actor notetag:
where x is the state ID. Then, I would add conditional js to the state notetag. This is the example code from Yanfly's website:
What do I change "user.hp / user.mhp <= 0.25" to in order to have the code check the number of enemies, returning true if it equals 2?
I'm trying to add a passive state to a hero that increases his attack when there are more enemies. I know I need to use a conditional state, but I don't know how to code it.
So, if I want to create a passive state that doubles his attack when there are two enemies, I would use this actor notetag:
where x is the state ID. Then, I would add conditional js to the state notetag. This is the example code from Yanfly's website:
What do I change "user.hp / user.mhp <= 0.25" to in order to have the code check the number of enemies, returning true if it equals 2?