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

  1. //------------------------------------------------------------------------------
  2. IfHealed
  3.   // Damage is inverted to make the Gelfeet invincible...
  4.   tmpargument = 0
  5.   tmpdistance = rand & 2047 + 10000
  6.   PlaySound
  7.  
  8.   // Drop the item it's carrying
  9.   tmpargument = ACTIONHA
  10.   DoAction
  11.  
  12.  
  13. IfTimeOut
  14.   tmpargument = 100
  15.   SetTime
  16.   SetTargetToRider
  17.     IfTargetIsOnHatedTeam
  18.       // Hurt the character
  19.       tmpargument = 512
  20.       DamageTarget
  21.  
  22.  
  23.       // Corrode items
  24.       tmpx = rand & 1
  25.       tmpy = 0
  26.       IfXIsEqualToY
  27.         SetTargetToTargetLeftHand
  28.           tmpargument = [RUST]
  29.           IfTargetHasVulnerabilityID
  30.             tmpargument = 0
  31.             SendMessageNear
  32.             PoofTarget
  33.       Else
  34.         SetTargetToTargetRightHand
  35.           tmpargument = [RUST]
  36.           IfTargetHasVulnerabilityID
  37.             tmpargument = 0
  38.             SendMessageNear
  39.             PoofTarget
  40.     Else
  41.       // Corrode items
  42.       tmpargument = [RUST]
  43.       IfTargetHasVulnerabilityID
  44.         tmpargument = 0
  45.         SendMessageNear
  46.         PoofTarget
  47.  
  48.  
  49. IfBumped                // Eat the enemy
  50.   SetTargetToWhoeverBumped
  51.   tmpx = targetz
  52.   tmpy = selfz + 30
  53.   IfXIsLessThanY
  54.     IfFacingTarget
  55.       tmpargument = ACTIONME
  56.       DoAction
  57.       tmpargument = 0
  58.       tmpdistance = rand & 2047 + 6000
  59.       PlaySound
  60. IfSpawned                // This is done once in a lifetime
  61.   ClearWaypoints              // Now go there
  62.   tmpx = 2240                  // Waypoint 0
  63.   tmpy = 2752                  //
  64.   AddWaypoint                  //
  65.   tmpx = 3392                  // Waypoint 1
  66.   tmpy = 2880                  //
  67.   AddWaypoint                  //
  68.   tmpx = 3392                  // Waypoint 2
  69.   tmpy = 2752                  //
  70.   AddWaypoint                  //
  71.   tmpx = 3392                  // Waypoint 3
  72.   tmpy = 2880                  //
  73.   AddWaypoint                  //
  74. End                    // Finished with this character
  75.