Hey guys, I was wondering if someone could help me out with this. I think it is likely a "duh" thing that I am overlooking, but here goes.
I have a state named Imprisoned, which lasts for 3 rounds.
I have a variable named Imprisoned and I have a common event set up, also named Imprisoned.
This common event uses conditional branches to see if the first actor is imprisoned, if so it adds +1 to the variable, then jumps to the next actor. If this actor is imprisoned it once more adds +1 and continues until all 4 actors have been checked.
In my troop tab, at 50% health the enemy calls for the common event. If 1 or less actor is imprisoned he will inflict this state on an actor, however, each time he just continually inflicts the state.
Screenshots and walkthrough in the spoiler:
Thanks for taking the time!
I have a state named Imprisoned, which lasts for 3 rounds.
I have a variable named Imprisoned and I have a common event set up, also named Imprisoned.
This common event uses conditional branches to see if the first actor is imprisoned, if so it adds +1 to the variable, then jumps to the next actor. If this actor is imprisoned it once more adds +1 and continues until all 4 actors have been checked.
In my troop tab, at 50% health the enemy calls for the common event. If 1 or less actor is imprisoned he will inflict this state on an actor, however, each time he just continually inflicts the state.
Screenshots and walkthrough in the spoiler:
Common Event
Checks 1st actor. If state 'imprisoned ' is inflicted it adds +1 to the variable and uses the label to jump to the next actor. If not inflicted it moves to the next actor. This continues until all 4 actors have been checked.
Note: I know I need to initially set the variable to 0, but I temporarily took it out to see if it was causing the problem.
Troop Event
At 50% it calls the common event, which in turn sets up the variable. It then checks the variable. Since I want 2 actors to receive this state before moving on, I have it set so that if the variable is less than or equal to 1 it inflicts the state and repeats.
In theory, everything looks right. Starting out on the first pass the common event would be called, the variable would be 0 (see note above), the state would be inflicted once and then the process would repeat. On the second pass the variable should increase by 1 and repeat one last time. I am using a debug script and can see that my variable is never increasing. What am I doing wrong?
Checks 1st actor. If state 'imprisoned ' is inflicted it adds +1 to the variable and uses the label to jump to the next actor. If not inflicted it moves to the next actor. This continues until all 4 actors have been checked.
Note: I know I need to initially set the variable to 0, but I temporarily took it out to see if it was causing the problem.
Troop Event
At 50% it calls the common event, which in turn sets up the variable. It then checks the variable. Since I want 2 actors to receive this state before moving on, I have it set so that if the variable is less than or equal to 1 it inflicts the state and repeats.
In theory, everything looks right. Starting out on the first pass the common event would be called, the variable would be 0 (see note above), the state would be inflicted once and then the process would repeat. On the second pass the variable should increase by 1 and repeat one last time. I am using a debug script and can see that my variable is never increasing. What am I doing wrong?
Thanks for taking the time!