Skills that use status ailments?

I was wondering, how do I set up an ability that uses doubles in power if the target has ANY status ailment?


I know how to do it with just one ailment like blind, paralyze, sleep, poison, etc.
Put in the damage formula: 


b.state?(A)? B : C


A is the state you want to affect the outcome


B is the damage formula if the enemy has the state, for example = (a.atk*4 - b.def*2) * 5


C is the damage formula if the enemy doesn't, for example = (a.atk*4 - b.def*2) * 2
Put in the damage formula: 


b.state?(A)? B : C


A is the state you want to affect the outcome


B is the damage formula if the enemy has the state, for example = (a.atk*4 - b.def*2) * 5


C is the damage formula if the enemy doesn't, for example = (a.atk*4 - b.def*2) * 2



So would this make it that damage inflicted will be doubled if the target has ANY state? (in other words where it could LITERALLY be any state and the damage will still be doubled)
So would this make it that damage inflicted will be doubled if the target has ANY state? (in other words where it could LITERALLY be any state and the damage will still be doubled)



No.


Try b.states.length > 0 as the condition (the block before the question mark).  Haven't tried it myself but I think it will work.

Original thread: https://forums.rpgmakerweb.com/threads/skills-that-use-status-ailments.63579/