All pastes #1365941 Raw Edit

Directional Variables by Unix.

public text v1 · immutable
#1365941 ·published 2009-03-20 05:51 UTC
rendered paste body
(0:31) When a furre says {Get Directions},
            (5:41) place object type 1337 at (0,0).
      (3:10) in the space right in front of the triggering furre,
            (5:23) swap the object with the object at (0,0).
            (5:531) set variable %Direction_Front to the X,Y position of a random spot where the object is type 1337 that is onscreen for the triggering furre.
            (5:23) swap the object with the object at (0,0).
      (3:12) in the space right behind the triggering furre,
            (5:23) swap the object with the object at (0,0).
            (5:531) set variable %Direction_Rear to the X,Y position of a random spot where the object is type 1337 that is onscreen for the triggering furre.
            (5:23) swap the object with the object at (0,0).
            (5:88) turn the triggering furre clockwise.
      (3:10) in the space right in front of the triggering furre,
            (5:23) swap the object with the object at (0,0).
            (5:531) set variable %Direction_Right to the X,Y position of a random spot where the object is type 1337 that is onscreen for the triggering furre.
            (5:23) swap the object with the object at (0,0).
      (3:12) in the space right behind the triggering furre,
            (5:23) swap the object with the object at (0,0).
            (5:531) set variable %Direction_Left to the X,Y position of a random spot where the object is type 1337 that is onscreen for the triggering furre.
            (5:23) swap the object with the object at (0,0).
            (5:88) turn the triggering furre clockwise.
            (5:88) turn the triggering furre clockwise.
            (5:88) turn the triggering furre clockwise.
            (5:200) emit message {Front: %Direction_Front.x,%Direction_Front.y. Rear: %Direction_Rear.x,%Direction_Rear.y. Left: %Direction_Left.x,%Direction_Left.y. Right: %Direction_Right.x,%Direction_Right.y.} to the triggering furre.