home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / palshad.mod / objects / wandm.obj / script.txt < prev    next >
Text File  |  2000-06-06  |  862b  |  35 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. IfTakenOut
  8.   ReaffirmCharacter
  9. IfCrushed
  10.   tmpx = selfx
  11.   tmpy = selfy
  12.   tmpdistance = selfz
  13.   tmpargument = 4
  14.   SpawnExactParticle
  15.   SpawnExactParticle
  16.   SpawnExactParticle
  17.   SpawnExactParticle
  18.   GoPoof
  19.   tmpargument = 1
  20.   SendMessageNear
  21. IfDropped                // Make it lie on floor
  22.   KeepAction                  //
  23. IfHitGround                // Make a sound
  24.   tmpargument = 2              //
  25.   tmpdistance = rand & 2047 + 10000      //
  26.   PlaySound                  //
  27. IfUsed                    // Found out what it was
  28.   MakeNameKnown                  //
  29. IfGrabbed                // Tell them what they've won...
  30.   SetTargetToWhoeverIsHolding          //
  31.   IfTargetIsAPlayer              //
  32.     tmpargument = 0              //
  33.     SendMessageNear              //
  34. End                    // All done
  35.