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

  1. IfHealed
  2.   // Spawn a defense ping
  3.   IfStateIs0
  4.     tmpx = selfx
  5.     tmpy = selfy
  6.     tmpdistance = selfz
  7.     tmpargument = 0
  8.     SpawnExactParticle
  9.     tmpargument = 1
  10.     SetState
  11.     tmpargument = 20
  12.     SetTime
  13.  
  14.  
  15.  
  16. IfAttacked
  17.   // Must die in 1 hit to disallow punching it open
  18.   tmpargument = 512
  19.   HealSelf
  20.   // Spawn a defense ping
  21.   IfStateIs0
  22.     tmpx = selfx
  23.     tmpy = selfy
  24.     tmpdistance = selfz
  25.     tmpargument = 0
  26.     SpawnExactParticle
  27.     tmpargument = 1
  28.     SetState
  29.     tmpargument = 20
  30.     SetTime
  31.  
  32.  
  33.  
  34. IfTimeOut
  35.   // Ready the pings
  36.   tmpargument = 0
  37.   SetState
  38.   tmpargument = 500
  39.   SetTime
  40.  
  41.  
  42.  
  43. IfKilled
  44.   // Smash open
  45.   tmpargument = [GOOD]
  46.   IfTargetHasSpecialID
  47.     tmpargument = 20
  48.     tmpdistance = EXPROLEPLAY
  49.     GiveExperienceToTarget
  50.     tmpturn = 0
  51.   Else
  52.     tmpturn = 1
  53.  
  54.  
  55.   // Check for passages to open
  56.   tmpx = passage
  57.   tmpy = 0
  58.   IfXIsEqualToY
  59.     // Play the break sound
  60.     tmpargument = 2
  61.     tmpdistance = rand & 1023 + 10500
  62.     PlaySound
  63.   Else
  64.     tmpargument = tmpx
  65.     OpenPassage
  66.     // Play the secret music
  67.     tmpargument = 1
  68.     tmpdistance = 11025
  69.     PlaySound
  70.     // Give experience
  71.     tmpargument = 20
  72.     tmpdistance = EXPSECRET
  73.     GiveExperienceToTarget
  74.     tmpturn = 2
  75.   tmpargument = tmpturn
  76.   SendMessageNear
  77.  
  78.  
  79.  
  80.   // Drop goodies
  81.   DropItems
  82.   tmpargument = 65535
  83.   DropMoney
  84.  
  85.  
  86.   // Replace self with an imposter...
  87.   tmpargument = 48
  88.   tmpx = selfx
  89.   tmpy = selfy
  90.   tmpdistance = selfz
  91.   tmpturn = selfturn
  92.   SpawnExactCharacterXYZ
  93.   GoPoof
  94. End
  95.