home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 42 / CDGAMER42.iso / Egoboo / egoboo.exe / egoboo / modules / rogue.mod / objects / BULLWOLF.OBJ / script.txt < prev    next >
Text File  |  2000-06-26  |  2KB  |  66 lines

  1. //------------------------------------------------------------------------------
  2. IfTimeOut
  3.   tmpx = selfx
  4.   tmpy = selfy
  5.   ClearWaypoints
  6.   AddWaypoint
  7.   tmpargument = 50
  8.   SetTime
  9.  
  10.  
  11. //------------------------------------------------------------------------------
  12. // ZZ> Bite characters that it bumps
  13. IfBumped
  14.   SetTargetToWhoeverBumped
  15.   IfTargetIsOnHatedTeam
  16.     IfFacingTarget
  17.       tmpargument = LATCHRIGHT
  18.       PressLatchButton
  19.   Else
  20.     SetTargetToOldTarget
  21.  
  22.  
  23.  
  24. //------------------------------------------------------------------------------
  25. // ZZ> Handle death by sending a message and other stuff
  26. IfSpawned
  27.   JoinNullTeam  // For rebirth...
  28. IfKilled
  29.   JoinGoodTeam  // For rebirth...
  30.   tmpargument = 4
  31.   tmpdistance = rand & 2047 + 10000
  32.   PlaySound
  33.   tmpargument = 0
  34.   SendMessageNear
  35.  
  36.  
  37.   // Drop goodies
  38.   tmpargument = 65535
  39.   DropMoney
  40.  
  41.   // Make the character body
  42.   tmpargument = 50
  43.   SetBumpHeight
  44.   tmpargument = 43
  45.   SetBumpSize
  46.  
  47.  
  48. //------------------------------------------------------------------------------
  49. // ZZ> Handle being attacked by blocking or countering or running away
  50. IfAttacked
  51.   // Drop rider
  52.   tmpx = rand & 255
  53.   tmpy = 190
  54.   IfXIsMoreThanY
  55.     DropWeapons
  56.  
  57.  
  58.   tmpargument = rand & 1 + 2
  59.   tmpdistance = rand & 2047 + 10000
  60.   PlaySound
  61.  
  62.  
  63. //------------------------------------------------------------------------------
  64. End
  65. //------------------------------------------------------------------------------
  66.