I've been trying to make a system that evolves a state three times upon stacking it:
i.e: Toxin + Toxin= Poison
Poison + Poison = Doom
or
Poison + Toxin = Doom
I found a really handy code for a state stacking and becoming the second state from Robro33, however, getting state 1 and state 2 to still evolve to state 3 is an issue at the moment, the way it is it will eventually still stack up into state 3, but only after an additional application.
Here is the code I've been using
<Custom Turn End Effect>
user._Toxin = user._Toxin +1 || 1;
if(user._Toxin >=2){
user.removeState(Toxin ID);
user.addState(Poison ID);
}
</Custom Turn End Effect>
<Custom Remove Effect>
delete user._Toxin;
</Custom Remove Effect>
i.e: Toxin + Toxin= Poison
Poison + Poison = Doom
or
Poison + Toxin = Doom
I found a really handy code for a state stacking and becoming the second state from Robro33, however, getting state 1 and state 2 to still evolve to state 3 is an issue at the moment, the way it is it will eventually still stack up into state 3, but only after an additional application.
Here is the code I've been using
<Custom Turn End Effect>
user._Toxin = user._Toxin +1 || 1;
if(user._Toxin >=2){
user.removeState(Toxin ID);
user.addState(Poison ID);
}
</Custom Turn End Effect>
<Custom Remove Effect>
delete user._Toxin;
</Custom Remove Effect>