- Joined
- Jan 22, 2019
- Messages
- 2
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- Other
I have tried using "if (b.states.size > 0) {a.atk * 8 - b.def * 2} else {a.atk * 4 - b.def * 2}" but this does not work, I cannot seem to get b.states.size to work for any formula. This particular formula is at least producing damage but is not increasing the damage when they are afflicted by a state( poison, sleep etc.). another one I have tried is "dmg = a.atk * 4 - b.def * 2; dmg * (1 + b.states.size)" produces 0 damage always.
Now maybe I am misunderstanding, I thought b would make it check the states of my target so it would check the states my enemy has but does b in b.states.size only determine the the actors states?
Also as a bonus I would also prefer a way to grow this depending how many states are in effect but not specific ones basically I want it to be somewhat simple to determine due to how many states an enemy has like 3 the multiplication factor for the ability. This class is going to inflict states then use a skill that only if inflicted would do 2x the damage then another skill might do damage based off how many states. Again no skill is going to look for specific states just amount and yes or no they are there.
Now maybe I am misunderstanding, I thought b would make it check the states of my target so it would check the states my enemy has but does b in b.states.size only determine the the actors states?
Also as a bonus I would also prefer a way to grow this depending how many states are in effect but not specific ones basically I want it to be somewhat simple to determine due to how many states an enemy has like 3 the multiplication factor for the ability. This class is going to inflict states then use a skill that only if inflicted would do 2x the damage then another skill might do damage based off how many states. Again no skill is going to look for specific states just amount and yes or no they are there.

