ScriptGoto

From Amulets & Armor Wiki
Revision as of 14:24, 5 March 2014 by PeeWeeRotA (Talk | contribs) (Created page with "Goto( [ScriptNum] ) Stops executing the current script and starts executing the specified script. ===Arguments=== '''ScriptNum''' - Script to execute ===Example=== <nowik...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Goto( [ScriptNum] )

Stops executing the current script and starts executing the specified script.

Arguments

ScriptNum - Script to execute

Example

10:     // Activate druid on lift
   Compare(DruidLift, ACTIVATED);
   If(Equal, 99);
   Block(Block1);
   SlideFloor(66, 0, -88, 140, -1);
   AreaSound(5001, -1099, 2817, 400, 255);
   Set(DruidLift, ACTIVATED);
   Unblock(Block1);
   End();

11:     // Druid lift down
   Compare(DruidLift, NOT_ACTIVATED);
   If(Equal, 10);
   Block(Block2);
   SlideFloor(66, 0, -280, 140, -1);
   AreaSound(5001, -1099, 2817, 400, 255);
   Set(DruidLift, NOT_ACTIVATED);
   Delay(200);
   SlideFloor(159, 0, -200, 100, -1);
   AreaSound(5003, -1099, 2817, 400, 255);
   Delay(600);
   SlideFloor(159, 0, -340, 100, -1);
   AreaSound(5003, -1099, 2817, 400, 255);
   Unblock(Block2);
   Goto(10);
   End();
99:     // all purpose ender
   End();