home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / palshad.mod / objects / mpotion.obj / script.txt < prev    next >
Text File  |  2000-02-06  |  2KB  |  100 lines

  1. // Set up general stuff
  2. IfSpawned
  3.   tmpargument = ACTIONJB
  4.   DoAction
  5.   KeepAction
  6.   MakeCrushValid
  7.   MakeAmmoKnown
  8.  
  9.  
  10.  
  11. // Make it poof
  12. IfCrushed
  13.   tmpx = selfx
  14.   tmpy = selfy
  15.   tmpdistance = selfz
  16.   tmpargument = 0
  17.   SpawnExactParticle
  18.   SpawnExactParticle
  19.   SpawnExactParticle
  20.   SpawnExactParticle
  21.   GoPoof
  22.   tmpargument = 1
  23.   SendMessageNear
  24.  
  25.  
  26.  
  27. // Make it lie on the floor
  28. IfDropped
  29.   KeepAction
  30.  
  31.  
  32.  
  33. // Play a clink or clang
  34. IfHitGround
  35.   tmpargument = 0
  36.   tmpdistance = rand & 2047 + 10000
  37.   PlaySound
  38.  
  39.  
  40. // Alert others to draw
  41. IfTakenOut
  42.   SetTargetToWhoeverIsHolding
  43.   IfTargetIsAPlayer
  44.     tmpargument = 2
  45.     SendMessageNear
  46.  
  47.  
  48.  
  49. // Tell them what they've won...
  50. IfGrabbed
  51.   SetTargetToWhoeverIsHolding
  52.   IfTargetIsAPlayer
  53.     tmpargument = 0
  54.     SendMessageNear
  55.  
  56.  
  57.  
  58. // Give the user a bonus, but it's addictive...
  59. IfUsed
  60.   tmpargument = 1
  61.   tmpdistance = rand & 2047 + 21000
  62.   PlaySound
  63.  
  64.  
  65.   tmpargument = 40
  66.   SetReloadTime
  67.   MakeSimilarNamesKnown
  68.   IfUsageIsKnown
  69.     tmpargument = 3
  70.     SendMessageNear
  71.   Else
  72.     MakeUsageKnown
  73.     tmpargument = 4
  74.     IfTargetIsAPlayer
  75.       tmpargument = 5
  76.     SendMessageNear
  77.     tmpargument = 40
  78.     tmpdistance = EXPDARE
  79.     GiveExperienceToTarget
  80.   SetTargetToWhoeverIsHolding
  81.     // Decrease max mana a little
  82.     tmpargument = 0 - 32
  83.     GiveManaToTarget
  84.     // Increase current mana
  85.     tmpargument = rand & 2047 + 2048
  86.     PumpTarget
  87.     tmpargument = ACTIONMC
  88.     TargetDoAction
  89.     tmpdistance = SPAWNORIGIN
  90.     tmpargument = 1
  91.     SpawnAttachedHolderParticle
  92.   CostAmmo
  93.   IfAmmoOut
  94.     GoPoof
  95.  
  96.  
  97.  
  98. // Finish up
  99. End
  100.