I have made a boss with 3 different attacks. I am using the Finite State Machine add-on to make the states.
I have an "AttackNumber" variable that starts at 0. If it's set to 1 it goes to Attack1Start state, and so on.
These are the important states the boss has:
Follow (to follow the player around)
Choose attack
And a start, middle, and finish state for all 3 attacks.
The problem is that when I tell it to set "AttackNumber" to choose(1,2,3) it instead tries to do all 3 attacks at once even though the variable is set to one number.
Each attack works fine if I tell it to set the variable to a specific number though.