All pastes #814221 Raw Edit

Race DS, for Felix Saturos.

public text v1 · immutable
·published 2007-12-13 02:36 UTC
rendered paste body
* Basic "Add-Function".
(0:7) When somebody moves into position (First_Square_X,First_Square_Y),
   (1:202) and variable %Race_Place is less than 4,

* OR

(0:7) When somebody moves into position (Second_Square_X,Second_Square_Y),
   (1:202) and variable %Race_Place is less than 4,

* OR

(0:7) When somebody moves into position (Third_Square_X,Third_Square_Y),
   (1:202) and variable %Race_Place is less than 4,

* OR

(0:7) When somebody moves into position (Fourth_Square_X,Fourth_Square_Y),
   (1:202) and variable %Race_Place is less than 4,
            (5:302) take variable %Race_Place and add 1 to it.

* End of Basic "Add-Function".

* First Prize Placer Function.

(0:7) When somebody moves into position (First_Square_X,First_Square_Y),
   (1:200) and variable %Race_Place is equal to 1,

* OR

(0:7) When somebody moves into position (Second_Square_X,Second_Square_Y),
   (1:200) and variable %Race_Place is equal to 1,

* OR

(0:7) When somebody moves into position (Third_Square_X,Third_Square_Y),
   (1:200) and variable %Race_Place is equal to 1,

* OR

(0:7) When somebody moves into position (Fourth_Square_X,Fourth_Square_Y),
   (1:200) and variable %Race_Place is equal to 1,
      (3:2) at position (Winner_Square_X,Winner_Square_Y) on the map,
            (5:17) move any furre present to (Lobby_X,Lobby_Y), or to someplace nearby if it's occupied.
            (5:15) move the triggering furre to (Winner_Square_X,Winner_Square_Y), or to someplace nearby if it's occupied.
            (5:76) place object type Money_Item in the triggering furre's paws.
            (5:204) emitloud message {[FURRE] Won The 1st Place, Congratulations!} to everyone on the map.

* End of First Prize Placer Function.

* Second Prize Placer Function.

(0:7) When somebody moves into position (First_Square_X,First_Square_Y),
   (1:200) and variable %Race_Place is equal to 2,

* OR

(0:7) When somebody moves into position (Second_Square_X,Second_Square_Y),
   (1:200) and variable %Race_Place is equal to 2,

* OR

(0:7) When somebody moves into position (Third_Square_X,Third_Square_Y),
   (1:200) and variable %Race_Place is equal to 2,

* OR

(0:7) When somebody moves into position (Fourth_Square_X,Fourth_Square_Y),
   (1:200) and variable %Race_Place is equal to 2,
            (5:15) move the triggering furre to (Lobby_X,Lobby_Y), or to someplace nearby if it's occupied.
            (5:204) emitloud message {[FURRE] Won The 2nd Place, Congratulations!} to everyone on the map.

* End of Second Prize Placer Function.

* Third Prize Placer Function.

(0:7) When somebody moves into position (First_Square_X,First_Square_Y),
   (1:200) and variable %Race_Place is equal to 3,

* OR

(0:7) When somebody moves into position (Second_Square_X,Second_Square_Y),
   (1:200) and variable %Race_Place is equal to 3,

* OR

(0:7) When somebody moves into position (Third_Square_X,Third_Square_Y),
   (1:200) and variable %Race_Place is equal to 3,

* OR

(0:7) When somebody moves into position (Fourth_Square_X,Fourth_Square_Y),
   (1:200) and variable %Race_Place is equal to 3,
            (5:15) move the triggering furre to (Lobby_X,Lobby_Y), or to someplace nearby if it's occupied.
            (5:204) emitloud message {[FURRE] Won The 3rd Place, Congratulations!} to everyone on the map.

* End of Third Prize Placer Function.

* Fourth Prize Placer Function.

(0:7) When somebody moves into position (First_Square_X,First_Square_Y),
   (1:200) and variable %Race_Place is equal to 4,

* OR

(0:7) When somebody moves into position (Second_Square_X,Second_Square_Y),
   (1:200) and variable %Race_Place is equal to 4,

* OR

(0:7) When somebody moves into position (Third_Square_X,Third_Square_Y),
   (1:200) and variable %Race_Place is equal to 4,

* OR

(0:7) When somebody moves into position (Fourth_Square_X,Fourth_Square_Y),
   (1:200) and variable %Race_Place is equal to 4,
            (5:15) move the triggering furre to (Lobby_X,Lobby_Y), or to someplace nearby if it's occupied.
            (5:204) emitloud message {[FURRE] Won The 4th Place, Congratulations! Also, The Race Is Over!} to everyone on the map.
            (5:300) set variable %Race_Place to the value 0.

* End of Fourth Prize Placer Function.