+ 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 [b]should[/b] do is pick all the ship that have no engines in the second token [b]and[/b] have the purpose for docking [b]and[/b] have the movement state of "Go" [b]and[/b] if the time it takes to reverse their direction is greater than the distance they are from their target, [b]then[/b] reverse their direction.
It seems to ignore that last condition. And this is driving me [b][i][u]NUTS[/u][/i][/b].
What am I doing stupidilly?