Greetings. I am using VisuStella's Skills and States Core plugin.
I'm trying to create a passive state that only activates if the actor isn't affected by any of the states listed in its condition. However, the code I'm using only works if every listed state is affecting the actor.
This is the code I'm using in the passive state's note box:
My intent is this passive remains active if the actor isn't affected by either state 41 or 45. But right now, it will only deactivate if the actor is affected by both state 41 and 45. Is there a way to fix this?
I'm trying to create a passive state that only activates if the actor isn't affected by any of the states listed in its condition. However, the code I'm using only works if every listed state is affecting the actor.
This is the code I'm using in the passive state's note box:
<JS Passive Condition>
condition = ((!user.isStateAffected(41)) || (!user.isStateAffected(45)));
</JS Passive Condition>
My intent is this passive remains active if the actor isn't affected by either state 41 or 45. But right now, it will only deactivate if the actor is affected by both state 41 and 45. Is there a way to fix this?