- Joined
- Dec 2, 2015
- Messages
- 9
- Reaction score
- 1
- First Language
- English
- Primarily Uses
Ok I am a complete newbie at and utter suck at it.
I've written a small if statement to whether a character and an enemy have a certain state on board then the regular attack does more damage, however I want it to check for multiple states and the dmg formula box doesn't have that much space.
This is the code I wrote.
If (a.isStateAffected(21) == b.isStateAffected(21)) {a.atk*8-b.def*2} else {a.atk*4-b.def*2}
21 is a passive state just used as a designator. I want to do it for multiple states and I'm not sure how to do it. As said before the formula box is too small and I don't know how to call it from a common event, a script or even put it in the notetags correctly.
Can someone please help.
I've written a small if statement to whether a character and an enemy have a certain state on board then the regular attack does more damage, however I want it to check for multiple states and the dmg formula box doesn't have that much space.
This is the code I wrote.
If (a.isStateAffected(21) == b.isStateAffected(21)) {a.atk*8-b.def*2} else {a.atk*4-b.def*2}
21 is a passive state just used as a designator. I want to do it for multiple states and I'm not sure how to do it. As said before the formula box is too small and I don't know how to call it from a common event, a script or even put it in the notetags correctly.
Can someone please help.

