home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / healer.mod / objects / sword.obj / script.txt < prev    next >
Text File  |  1999-07-14  |  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. IfHitGround                // Make a sound
  22.   tmpargument = 1              //
  23.   tmpdistance = rand & 2047 + 10000      //
  24.   PlaySound                  //
  25. IfTakenOut                // Make a sound
  26.   tmpargument = 2              //
  27.   tmpdistance = rand & 2047 + 10000      //
  28.   PlaySound                  //
  29.   SetTargetToWhoeverIsHolding          //
  30.   IfTargetIsAPlayer              //
  31.     tmpargument = 2              //
  32.     SendMessageNear              //
  33. IfGrabbed                // Tell them what they've won...
  34.   SetTargetToWhoeverIsHolding          //
  35.   IfTargetIsAPlayer              //
  36.     tmpargument = 0              //
  37.     SendMessageNear              //
  38. End                    // All done
  39.