I've been losing my remaining hair over this.
I wanted to script an enemy so that it would follow a specific action pattern and repeat it, but I don't know anymore. Here's my Battle Event:
And the Action Patterns of the enemy:
I tried it with states on conditions as you can see above, but that didn't work. The previous attempt I tried using Force Action... in each of the conditional branches instead of changing the enemy state, but that didn't entirely work either, so I'm kind of puzzled as to how to pull this off. There's probably a very easy way and I'm just overthinking it.
I wanted to script an enemy so that it would follow a specific action pattern and repeat it, but I don't know anymore. Here's my Battle Event:
Code:
Control Variables: EnemyTurnTracker = 1
If : EnemyTurnTracker = 1
Change Enemy State: Entire Troop, + Nothing
Control Variables: EnemyTurnTracker += 1
Change Enemy State: Entire Troop, - Nothing
: End
If : EnemyTurnTracker = 2 Change Enemy State: Entire Troop, + Prepare (1st) Control Variables: EnemyTurnTracker += 1 Change Enemy State: Entire Troop, - Prepare (1st): EndIf : EnemyTurnTracker = 3 Change Enemy State: Entire Troop, + Prepare (2nd) Control Variables: EnemyTurnTracker += 1 Change Enemy State: Entire Troop, - Prepare (2nd): EndIf : EnemyTurnTracker = 4 Change Enemy State: Entire Troop, + Sword Hit Control Variables: EnemyTurnTracker += 1 Change Enemy State: Entire Troop, - Sword Hit: EndIf : EnemyTurnTracker = 5 Control Variables: EnemyTurnTracker = 1: EndAnd the Action Patterns of the enemy:
Code:
Skill: Nothing | Condition: State Nothing | R: 9
Skill: Prepare | Condition: State Prepare (1st) | R: 9
Skill: Prepare | Condition: State Prepare (2nd) | R: 9
Skill: Sword Hit | Condition: State Sword Hit | R: 9
I tried it with states on conditions as you can see above, but that didn't work. The previous attempt I tried using Force Action... in each of the conditional branches instead of changing the enemy state, but that didn't entirely work either, so I'm kind of puzzled as to how to pull this off. There's probably a very easy way and I'm just overthinking it.