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

  1. IfSpawned
  2.   // Vortex is sustained by magic
  3.   EnchantTarget // target is self...
  4.  
  5.   // Vortex has a dyna light particle
  6.   tmpargument = 0
  7.   tmpdistance = SPAWNLAST
  8.   SpawnAttachedParticle
  9.  
  10.  
  11. // Go away for good
  12. IfKilled
  13.   tmpargument = MESSAGEDEATH
  14.   SendMessageNear
  15.   GoPoof
  16.  
  17.  
  18. // Let the players know that there's something there...
  19. IfAttacked
  20.   tmpargument = 0
  21.   tmpdistance = rand & 2047 + 10000
  22.   PlaySound
  23.  
  24.  
  25. // Chase good guys
  26. IfTimeOut
  27.   IfTargetIsSelf
  28.     tmpdistance = 90000  // Square of range
  29.     SetTargetToDistantEnemy
  30.       tmpargument = 1
  31.       SendMessageNear
  32.       // Play the chalkboard sound
  33.  
  34.  
  35.  
  36.     tmpx = rand & 511 - 256 + selfspawnx
  37.     tmpy = rand & 511 - 256 + selfspawny
  38.   Else
  39.     tmpx = targetdistance
  40.     tmpy = 700
  41.     IfXIsMoreThanY
  42.       SetTargetToSelf
  43.       tmpx = rand & 511 - 256 + selfx
  44.       tmpy = rand & 511 - 256 + selfy
  45.     Else
  46.       tmpx = targetx
  47.       tmpy = targety
  48.   ClearWaypoints
  49.   AddWaypoint
  50.   tmpargument = 20
  51.   SetTime
  52.   tmpargument = 0
  53.   SetState
  54.  
  55.  
  56.  
  57. // Find a new target
  58. IfTargetKilled
  59.   SetTargetToSelf
  60.   tmpargument = 0
  61.   SetTime
  62.  
  63.  
  64. // All Done
  65. End
  66.