home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / advent.mod / objects / wbutton.obj / script.txt < prev    next >
Text File  |  1999-10-03  |  1KB  |  40 lines

  1. // ZZ> This function makes the button go down
  2. tmpargument = 1                // Drain the water
  3. IfStateIs                //
  4.   IfTimeOut                  //
  5.     tmpargument = 2                // Drain complete 
  6.     SetState                    //
  7.     tmpargument = 1                //
  8.     SendMessageNear                //
  9.     tmpargument = 0 - 1000            // Just to be sure
  10.     SetWaterLevel                //
  11.     tmpargument = 0                // Turn off the drips
  12.     SetWeatherTime                //
  13.     tmpargument = passage            //
  14.     OpenPassage                    // Open the door
  15.   Else                      //
  16.     GetWaterLevel                //
  17.     tmpargument = tmpargument - 2        //
  18.     SetWaterLevel                //
  19. tmpx = 20                // Threshold weight
  20. tmpy = weight                // Weight of characters on top
  21. IfXIsLessThanY                //
  22.   tmpargument = 0              //
  23.   IfStateIs                  // Only go down if it's up
  24.     tmpargument = ACTIONMG            //
  25.     DoAction                    //
  26.       tmpargument = 1                  // 1 is down
  27.       SetState                      //
  28.       SetTargetToWhoeverBumped                //
  29.       tmpargument = 0                  //
  30.       SendMessageNear                  //
  31.       KeepAction                  // Make it stay on last frame
  32.       tmpargument = 0                  //
  33.       SetBumpHeight                  //
  34.       tmpargument = 250                  //
  35.       SetTime                      //
  36.       tmpargument = 0                  //
  37.       tmpdistance = 11025              //
  38.       PlaySound                      //
  39. End                    // Finished with this character
  40.