home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / players / dunlar.obj / 1.OBJ / SCRIPT.TXT < prev    next >
Text File  |  2000-05-10  |  1KB  |  45 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.   MakeAmmoKnown
  8. IfCrushed
  9.   tmpx = selfx
  10.   tmpy = selfy
  11.   tmpdistance = selfz
  12.   tmpargument = 1
  13.   SpawnExactParticle
  14.   SpawnExactParticle
  15.   SpawnExactParticle
  16.   SpawnExactParticle
  17.   GoPoof
  18.   tmpargument = 2
  19.   SendMessageNear
  20. IfThrown                // Make it attack
  21.   tmpargument = 2
  22.   tmpdistance = 1
  23.   SpawnAttachedParticle
  24. IfNotDropped                // Say oops, that's cursed
  25.   SetTargetToWhoeverIsHolding          //
  26.   tmpargument = 1              //
  27.   SendMessageNear              //
  28. IfNotPutAway                // Say oops, that's cursed
  29.   SetTargetToWhoeverIsHolding          //
  30.   tmpargument = 3              //
  31.   SendMessageNear              //
  32. IfDropped                // Make it lie on floor
  33.   KeepAction                  //
  34. IfHitGround                // Make a sound
  35.   tmpargument = 1              //
  36.   tmpdistance = rand & 2047 + 7000      //
  37.   PlaySound                  //
  38.   DisaffirmCharacter              // Stop thrown attack
  39. IfGrabbed                // Tell them what they've won...
  40.   SetTargetToWhoeverIsHolding          //
  41.   IfTargetIsAPlayer              //
  42.     tmpargument = 0              //
  43.     SendMessageNear              //
  44. End                    // All done
  45.