- Joined
- Feb 4, 2016
- Messages
- 364
- Reaction score
- 50
- First Language
- English
- Primarily Uses
So, one of my abilities applies a state to the actor.
I want another attack to then check if that actor has the state. If the actor does have the state, the effect deals damage, burns the target (another state), and then removes the state from the actor that uses the skill. If the actor does not have that skill, the attack deals a little less damage than it does from stealth. What would a damage formula look like for this? I've tried:
a.state?(91)? b.add_state(2) a.atk * 0.6 : a.atk * 0.4
a.state?(91)? b.add_state(2) ; a.atk * 0.6 : a.atk * 0.4
The first formula fails due to syntax and the second one fails due to the semicolon. Could I get some help, please?
I want another attack to then check if that actor has the state. If the actor does have the state, the effect deals damage, burns the target (another state), and then removes the state from the actor that uses the skill. If the actor does not have that skill, the attack deals a little less damage than it does from stealth. What would a damage formula look like for this? I've tried:
a.state?(91)? b.add_state(2) a.atk * 0.6 : a.atk * 0.4
a.state?(91)? b.add_state(2) ; a.atk * 0.6 : a.atk * 0.4
The first formula fails due to syntax and the second one fails due to the semicolon. Could I get some help, please?
