Difference between revisions of "Racing Script"

From Elite Wiki
m (cut&paste)
m (cut&paste)
Line 1: Line 1:
 
  {
 
  {
 
     "lord-of-the-rings" = (
 
     "lord-of-the-rings" = (
         {
+
         { conditions = (
            conditions = (
+
"mission_lotr1 equal PASSED" );  
                "mission_lotr1 equal PASSED"
+
do = (
            );  
+
"set: mission_ring_passage [clock_number]",
            do = (
+
"subtract: mission_ring_passage [mission_ring_time]",
                "set: mission_ring_passage [clock_number]",
+
"increment: mission_ringcounter",
                "subtract: mission_ring_passage [mission_ring_time]",
+
"reset: mission_lotr1",
                "increment: mission_ringcounter",
+
"commsMessage: Passed through ring in [mission_ring_passage] seconds.",
                "reset: mission_lotr1",
+
        { conditions = (
                "commsMessage: Passed through ring in [mission_ring_passage] seconds.",
 
{
 
conditions = (
 
 
"mission_ring_id equal 1-TRB",
 
"mission_ring_id equal 1-TRB",
"mission_next_ring undefined"
+
"mission_next_ring undefined" );
);
 
 
do = (
 
do = (
 
"set: mission_next_ring 2-TRB",
 
"set: mission_next_ring 2-TRB",
 
"commsMessage: Timer running...",
 
"commsMessage: Timer running...",
 
"set: mission_lotr_start [clock_number]",
 
"set: mission_lotr_start [clock_number]",
"reset: mission_lotr_end"
+
"reset: mission_lotr_end" ); },
);
+
         { conditions = (
},
 
         {
 
conditions = (
 
 
"mission_ring_id equal 2-TRB",
 
"mission_ring_id equal 2-TRB",
"mission_next_ring equal 2-TRB"
+
"mission_next_ring equal 2-TRB" );
);
+
do = ("set: mission_next_ring 3-TRB"); },
do = ("set: mission_next_ring 3-TRB");
+
         { conditions = (
},
 
         {
 
conditions = (
 
 
"mission_ring_id equal 3-TRB",
 
"mission_ring_id equal 3-TRB",
 
"mission_next_ring equal 3-TRB"
 
"mission_next_ring equal 3-TRB"
 
);
 
);
do = ("set: mission_next_ring 4-TRH");
+
do = ("set: mission_next_ring 4-TRH"); },
},
+
         { conditions = (
         {
 
conditions = (
 
 
"mission_ring_id equal 4-TRH",
 
"mission_ring_id equal 4-TRH",
"mission_next_ring equal 4-TRH"
+
"mission_next_ring equal 4-TRH" );
);
 
 
do = (
 
do = (
 
"commsMessage: Run complete!",
 
"commsMessage: Run complete!",
Line 53: Line 40:
 
"reset: mission_lotr_start",
 
"reset: mission_lotr_start",
 
"reset: mission_ring_id",
 
"reset: mission_ring_id",
"reset: mission_next_ring"
+
"reset: mission_next_ring" ); }
);
 
}
 
 
           );  
 
           );  
 
         }
 
         }

Revision as of 20:19, 25 July 2006

{
   "lord-of-the-rings" = (
       {				conditions = (

"mission_lotr1 equal PASSED" ); do = ( "set: mission_ring_passage [clock_number]",

						"subtract: mission_ring_passage [mission_ring_time]",

"increment: mission_ringcounter", "reset: mission_lotr1", "commsMessage: Passed through ring in [mission_ring_passage] seconds.",

       {				conditions = (

"mission_ring_id equal 1-TRB", "mission_next_ring undefined" ); do = ( "set: mission_next_ring 2-TRB", "commsMessage: Timer running...", "set: mission_lotr_start [clock_number]", "reset: mission_lotr_end" ); },

        {				conditions = (

"mission_ring_id equal 2-TRB", "mission_next_ring equal 2-TRB" ); do = ("set: mission_next_ring 3-TRB"); },

        {				conditions = (

"mission_ring_id equal 3-TRB", "mission_next_ring equal 3-TRB" ); do = ("set: mission_next_ring 4-TRH"); },

        {				conditions = (

"mission_ring_id equal 4-TRH", "mission_next_ring equal 4-TRH" ); do = ( "commsMessage: Run complete!", "set: mission_lotr_end [clock_number]", "set: mission_lotr_total_time [mission_lotr_end]", "subtract: mission_lotr_total_time [mission_lotr_start]", "commsMessage: Total test time: [mission_lotr_total_time] seconds.", "reset: mission_lotr_start", "reset: mission_lotr_end", "reset: mission_lotr_total_time", "reset: mission_lotr_start", "reset: mission_ring_id", "reset: mission_next_ring" ); }

          ); 
       }
   ); 
}

BACK