This does not seem to be working correctly:
[code:usrqvyif]+ System: For each Ship
+ Ship: Pick by GetToken(Ship.Value('Equipment:EngineCount'), 2, "|") Equal to ""
[code:usrqvyif]+ Ship: Value 'AI:Purpose' Equal to "Dock"
[code:usrqvyif]+ Ship: Value 'Movement:State' Equal to "Go"
[code:usrqvyif]+ System: Ship.Value('Movement:ReverseCalc') Greater than Ship.Value('Movement:Distance')
-> Ship: Set 'Movement:TurnTo' to Ship[Movement].Angle-180
What this code should do is pick all the ship that have no engines in the second token and have the purpose for docking and have the movement state of "Go" and if the time it takes to reverse their direction is greater than the distance they are from their target, then reverse their direction.
It seems to ignore that last condition. And this is driving me [u:usrqvyif]NUTS[/u:usrqvyif].
What am I doing stupidilly?