Hey guys,
I can't quite figure this one out.
I have an actor Skill which starts a Common event. After selecting the targeted enemy, the common event is started.
Within that common event, I would like the enemy to lose HP, and the amount should be determined by the actor's formula:
But if I just put it like this, it says "a is not defined".
How can I use a damage formula in a script call?
I can't quite figure this one out.
I have an actor Skill which starts a Common event. After selecting the targeted enemy, the common event is started.
Within that common event, I would like the enemy to lose HP, and the amount should be determined by the actor's formula:
Code:
$gameTroop.members()[i].gainHp(0 - Math.abs(a.atk * 4 - b.def * 2))
But if I just put it like this, it says "a is not defined".
How can I use a damage formula in a script call?