home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / gnome.mod / objects / claw.obj / script.txt < prev    next >
Text File  |  1999-07-25  |  1KB  |  39 lines

  1. // ZZ> This function makes an item fall to the floor when spawned
  2. IfSpawned                //
  3.   tmpargument = ACTIONJB          //
  4.   DoAction                  //
  5.   KeepAction                  //
  6.   MakeCrushValid
  7. IfCrushed
  8.   tmpx = selfx
  9.   tmpy = selfy
  10.   tmpdistance = selfz
  11.   tmpargument = 1
  12.   SpawnExactParticle
  13.   SpawnExactParticle
  14.   SpawnExactParticle
  15.   SpawnExactParticle
  16.   GoPoof
  17.   tmpargument = 1
  18.   SendMessageNear
  19. IfDropped                // Make it lie on floor
  20.   KeepAction                  //
  21. IfGrabbed                // Tell them what they've won...
  22.   SetTargetToWhoeverIsHolding          //
  23.   IfTargetIsAPlayer              //
  24.     tmpargument = 0              //
  25.     SendMessageNear              //
  26. IfTakenOut                // Do the unsheathe sound
  27.   tmpargument = 2              //
  28.   tmpdistance = rand & 2047 + 10000      //
  29.   PlaySound                  //
  30.   SetTargetToWhoeverIsHolding          //
  31.   IfTargetIsAPlayer              //
  32.     tmpargument = 2              //
  33.     SendMessageNear              //
  34. IfHitGround                // Make a sound
  35.   tmpargument = 1              //
  36.   tmpdistance = rand & 2047 + 8000      //
  37.   PlaySound                  //
  38. End                    // All done
  39.