QUOTE(qw3rty @ Sep 22 2006, 11:38 AM)
just to check, the first trigger commented 'setup' is the only one i need if i only want to detect direction, right?
I didnt make an exact copy, because I dont want to detect NW NE SW or SE, just basic north south east and west. ill try it again, but I dont know why it didnt work the first time, i wrote everything down exactly
[right][snapback]565865[/snapback][/right]
No. Setup just "sets it up"
Notice the pre-last trigger. It sets the locations in the directions according to the marines every time you move. Even this trigger alone doesen't detec direction. To really detec direction, you need the rest triggers, that have actions like "Display [direction] and "set switch [direction is hit]".
Now, to explain how it all works:
1)First, the setup sets the locations around the marine
2)Marines moves
2)-->A)It detects the direction the marines moved to, and gives you the according message
2)-->B)Sets the locations around the marines again
The "2-->A" and "2-->B" execute only if the marine moves.