Quick question about a formula

So if "if a.state?(16)" means "If the user has state 16 inflicted", how would I write it as "If the user DOES NOT have state 16 inflicted"?

Or if anyone knows a way to make an item unusable if a state is inflicted that would help too...

Thank you.
a.isStateAffected(16) == false ? outcome A : outcome B

Putting ! in front of a conditional will invert the conditional as well

eg.

!a.isStateAffected(16) ? outcome A : outcome B

Both lead to same results where outcome A happens if state 16 is not afflicted and outcome B happens if state 16 is afflicted


Put ! infront of the conditional
!a.state?(16)

Original thread: https://forums.rpgmakerweb.com/threads/quick-question-about-a-formula.85796/