Code:
if b.state?([state x]);[damage formula from state];else;[other damage formula];end
[state x] is your state you want, like how 2 is by default Poisoned etc
[damage formula from state] is what you want if the target is under the state
[other damage formula] is what you want if they aren't
Note that the [] brackets are just for making it more clearly visible, these are NOT part of the formula; you have to use only alphanumerics, like so:
Code:
if b.state?(2);5000;else;100;end
This would, assuming state 2 is the default Poisoned, deal 5000 damage to the target if they're Poisoned, but if the target is
not poisoned, it only deals 100 damage. You can use the usual things like
as well and you can even do combinations, like if the target is under a second status that would cancel the first one's effects, like so:
Code:
if b.state?([state x])&&!b.state?([state y]);
This would require state x but NOT work (Negative AND) if state y is in place, too.