None of your 'when' conditions check the value of the variable, do they? You need something to say "Hey, you can't do this unless the variable = 0." Use the arithmetic operator =.
So in the 'and' on your Waypoint 2 event, you need to add
=
(rotation-in-progress)
(0)
BOOYAH!
Got it working!
I tried it with the waypoint 2 event, but to no avail. However, upon using it in the waypoint 1 event I got the following:
-Ship losses turret, begins rotating. Upon finishing rotate it then proceeds to waypoint 1, then waypoint 2.
To fix this, I gave waypoint 2 a higher priority, and made an event that clear's the deimos' goals upon reaching waypoint 2.
Other things that happen:
-No turret lost? Ship stops at waypoint 1
-Turret lost while on way to waypoint 1? Rolls and then goes to waypoint 2
Basically everything is working as intended! Think all I need to do now is to make an event that turns the velocity from 100 to 0 when the ship hasn't received it's waypoint order. Thanks for the help so far guys!
Edit: Found and fixed a mistake that I overlooked. I've changed the has-time-elapsed to an is-event-true for another ship arrival because when I changed the original has-time-elapsed from 15 to 60, I found that that the Deimos would start travelling to waypoint 2 after it finished it's roll BEFORE the initial 60 seconds had finished. For a few minutes there I was terrified