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

  1. //------------------------------------------------------------------------------
  2. // ZZ> Death and let the player team win
  3. IfKilled
  4.   tmpargument = 35
  5.   SetBumpHeight
  6.   IfTargetIsOnHatedTeam
  7.     tmpargument = 0
  8.     SendMessageNear
  9.  
  10.  
  11.   // Award quest experience
  12.   tmpargument = 100
  13.   tmpdistance = EXPQUEST
  14.   GiveExperienceToTargetTeam
  15.  
  16.  
  17.   // Finish it up
  18.   BeatModule
  19.   EnableExport
  20.   // Mark this module as beaten, hidden modules may open up
  21.   tmpargument = [BEAT]
  22.   AddIDSZ
  23.   // Fix the end text
  24.   ClearEndMessage
  25.   tmpargument = 2
  26.   AddEndMessage
  27.   tmpargument = 3
  28.   AddEndMessage
  29.   tmpargument = 4
  30.   AddEndMessage
  31.   tmpargument = 5
  32.   AddEndMessage
  33.  
  34.  
  35.  
  36. //------------------------------------------------------------------------------
  37. // ZZ> Make the GrubMum do the decoy dance at the beginning of the module.
  38. //     This lets the players know what the target of the quest is.
  39. IfSpawned
  40.   DisableExport
  41.   ClearWaypoints
  42.   tmpx = 2112
  43.   tmpy = 6208
  44.   AddWaypoint
  45. //  tmpx = 2624
  46. //  tmpy = 6336
  47. //  AddWaypoint
  48.   tmpx = 4032
  49.   tmpy = 6080
  50.   AddWaypoint
  51.   tmpx = 4032
  52.   tmpy = 5668
  53.   AddWaypoint
  54.  
  55.  
  56. //------------------------------------------------------------------------------
  57. // ZZ> Handle wandering around
  58. IfStateIs1
  59.   // Wander around the boss room
  60.   IfAtWaypoint
  61.     CleanUp
  62.     tmpx = rand % 1332 + 508
  63.     tmpy = rand % 1594 + 462
  64.     ClearWaypoints
  65.     AddWaypoint
  66. Else
  67.   // Teleport from the waterway to the boss room
  68.   IfAtLastWaypoint
  69.     IfSpawned
  70.       GetState // NOP
  71.     Else
  72.       tmpx = 1280
  73.       tmpy = 1280
  74.       tmpargument = 1
  75.       SendMessageNear
  76.       Teleport
  77.         ClearWaypoints
  78.         AddWaypoint
  79.  
  80.         Sneak
  81.         tmpargument = 1
  82.         SetState
  83.  
  84.         ShowMap
  85.         ShowYouAreHere
  86.  
  87.  
  88. //------------------------------------------------------------------------------
  89. // ZZ> Damage anyone that touches the Mum
  90. IfBumped
  91.   SetTargetToWhoeverBumped
  92.   IfTargetIsOnHatedTeam
  93.     tmpargument = 900
  94.     DamageTarget
  95.  
  96.  
  97. //------------------------------------------------------------------------------
  98. // ZZ> Let the characters know where she is...
  99. tmpx = selfx
  100. tmpy = selfy
  101. tmpargument = GREEN
  102. ShowBlipXY
  103.  
  104.  
  105. //------------------------------------------------------------------------------
  106. End
  107. //------------------------------------------------------------------------------
  108.