home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / players / zambini.obj / SCRIPT.TXT < prev    next >
Text File  |  2000-07-02  |  3KB  |  110 lines

  1. //-----------------------------------------------------------------------------
  2. // ZZ> Gong sound
  3. IfCleanedUp
  4.   tmpargument = 2
  5.   tmpdistance = 8000
  6.   PlayFullSound
  7.  
  8.  
  9. //------------------------------------------------------------------------------
  10. // ZZ> Scream and shout
  11. IfUsed
  12.   tmpdistance = rand & 2047 + 15000
  13.   tmpargument = 10
  14.   PlaySound
  15.  
  16.  
  17. //------------------------------------------------------------------------------
  18. // ZZ> Handle being bored by cheering or sneezing
  19. IfBored
  20.   tmpargument = 7
  21.   SendMessageNear
  22.   tmpargument = 11
  23.   tmpdistance = rand & 2047 + 15000
  24.   PlaySound
  25.   tmpargument = ACTIONMC
  26.   DoAction
  27.  
  28.  
  29. //------------------------------------------------------------------------------
  30. // ZZ> Handle death by sending a message and other stuff
  31. IfKilled
  32.   // Sound
  33.   IfTargetIsOnHatedTeam
  34.     tmpargument = 4
  35.   Else
  36.     tmpargument = 3
  37.   tmpdistance = rand & 2047 + 15000
  38.   PlaySound
  39.  
  40.  
  41.   // Message
  42.   tmpargument = 3
  43.   IfArmorIs
  44.     tmpargument = MESSAGECOSTUME
  45.   Else
  46.     tmpargument = MESSAGEDEATH
  47.   IfTargetIsOnSameTeam
  48.     tmpargument = MESSAGEFRAG
  49.     IfTargetIsSelf
  50.       tmpargument = MESSAGEACCIDENT
  51.   SendMessage
  52.  
  53.  
  54.   // Drop goodies
  55.   tmpargument = 65535
  56.   DropMoney
  57.   DropKeys
  58.  
  59.  
  60.   // Make the character body
  61.   tmpargument = 45
  62.   SetBumpHeight
  63.  
  64.  
  65. //------------------------------------------------------------------------------
  66. // ZZ> For helper AIs
  67. IfLeaderKilled
  68.   BecomeLeader
  69.  
  70.  
  71. //------------------------------------------------------------------------------
  72. // ZZ> Handle being attacked by blocking or countering or running away
  73. IfAttacked
  74.   SetTargetToWhoeverAttacked
  75.   IfTargetIsOnSameTeam
  76.     tmpargument = 8
  77.     tmpdistance = rand & 2047 + 15000
  78.     PlaySound
  79.     tmpargument = MESSAGEOUCH
  80.     SendMessageNear
  81.   Else
  82.     tmpargument = rand & 1 + 5
  83.     tmpdistance = rand & 2047 + 15000
  84.     PlaySound
  85.  
  86.  
  87. //------------------------------------------------------------------------------
  88. // ZZ> Handle being healed by spitting out a message and stopping retreat
  89. IfHealed
  90.   tmpargument = 6
  91.   SendMessageNear
  92.   tmpargument = 9
  93.   tmpdistance = rand & 2047 + 15000
  94.   PlaySound
  95.  
  96.  
  97. //------------------------------------------------------------------------------
  98. // ZZ> Handle not being able to carry something
  99. IfTooMuchBaggage
  100.   tmpargument = 8
  101.   SendMessageNear
  102.   tmpargument = 7
  103.   tmpdistance = rand & 2047 + 15000
  104.   PlaySound
  105.  
  106.  
  107. //------------------------------------------------------------------------------
  108. End
  109. //------------------------------------------------------------------------------
  110.