- Joined
- Jul 16, 2013
- Messages
- 40
- Reaction score
- 5
- First Language
- English
- Primarily Uses
The tutorial provided with the script states the following:
Assuming you have two states Weak Poison (12) and Strong Poison (13), you can
create a conditional state (14) that will add Strong Poison if Weak Poison is
already applied, or apply Weak Poison otherwise.
<conditional state>
if a.state?(12)
13
else
12
end
</conditional state>
However, the above only works with two states. I would like to use this script to make a conditional state that "stacks" five times. For example: On the first usage of a skill, "State 1" should be applied, then on the second usage, if state 1 is on the target, "State 2" should be applied, then on the third usage, if State 2 is on the target, "State 3 should be applied and so on until "State 5" is reached. I attempted to accomplish this on my own, but would get an error when I tried to apply the state in battle. Can anyone provide assistance?
Link to the script: http://himeworks.com/2014/01/conditional-states/
Assuming you have two states Weak Poison (12) and Strong Poison (13), you can
create a conditional state (14) that will add Strong Poison if Weak Poison is
already applied, or apply Weak Poison otherwise.
<conditional state>
if a.state?(12)
13
else
12
end
</conditional state>
However, the above only works with two states. I would like to use this script to make a conditional state that "stacks" five times. For example: On the first usage of a skill, "State 1" should be applied, then on the second usage, if state 1 is on the target, "State 2" should be applied, then on the third usage, if State 2 is on the target, "State 3 should be applied and so on until "State 5" is reached. I attempted to accomplish this on my own, but would get an error when I tried to apply the state in battle. Can anyone provide assistance?
Link to the script: http://himeworks.com/2014/01/conditional-states/
Last edited by a moderator:
