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

  1. // Gong sound
  2. IfCleanedUp
  3.   tmpargument = 1
  4.   tmpdistance = 8000
  5.   PlayFullSound
  6.  
  7.  
  8. // Talk to player
  9. IfBored
  10.   tmpx = rand & 1
  11.   tmpargument = tmpx + 7
  12.   SendMessageNear
  13.   tmpargument = tmpx + 5
  14.   tmpdistance = rand & 1023 + 11000
  15.   PlaySound
  16.   tmpargument = ACTIONMC
  17.   DoAction
  18. IfTooMuchBaggage
  19.   tmpargument = 6
  20.   SendMessageNear
  21.   tmpargument = 8
  22.   tmpdistance = rand & 1023 + 11000
  23.   PlaySound
  24.  
  25.  
  26. // Heal sound
  27. IfUsed
  28.   tmpargument = 0
  29.   tmpdistance = 11025
  30.   PlayFullSound
  31.   SetTargetToSelf
  32.   tmpargument = targetlevel < 2
  33.   tmpargument = 50 - tmpargument
  34.   SetReloadTime
  35.  
  36.  
  37.  
  38. // Handle death
  39. IfKilled
  40.   // Sound
  41.   tmpargument = 7
  42.   tmpdistance = rand & 1023 + 11000
  43.   PlaySound
  44.  
  45.  
  46.   // Message
  47.   tmpargument = 3
  48.   IfArmorIs
  49.     tmpargument = MESSAGECOSTUME
  50.   Else
  51.     tmpargument = MESSAGEDEATH
  52.   IfTargetIsOnSameTeam
  53.     tmpargument = MESSAGEFRAG
  54.     IfTargetIsSelf
  55.       tmpargument = MESSAGEACCIDENT
  56.   SendMessage
  57.  
  58.  
  59.   // Misc.
  60.   tmpargument = 65535
  61.   DropMoney
  62.   DropKeys
  63.   tmpargument = 45
  64.   SetBumpHeight
  65.  
  66.  
  67. // Just because...
  68. IfLeaderKilled
  69.   BecomeLeader
  70.  
  71.  
  72. // Yell at friends
  73. IfAttacked
  74.   SetTargetToWhoeverAttacked
  75.   IfTargetIsOnSameTeam
  76.     tmpargument = MESSAGEOUCH
  77.     SendMessage
  78.     tmpargument = 4
  79.     tmpdistance = rand & 1023 + 11000
  80.     PlaySound
  81.   Else
  82.     tmpargument = rand & 1 + 2
  83.     tmpdistance = rand & 1023 + 11000
  84.     PlaySound
  85.  
  86.  
  87. // All done
  88. End
  89.