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

  1. IfSpawned
  2.   tmpargument = 2
  3.   tmpdistance = 0
  4.   tmpx = selfx
  5.   tmpy = selfy
  6.   SpawnExactParticle
  7.   SpawnExactParticle
  8.   SpawnExactParticle
  9.   SpawnExactParticle
  10.   SpawnExactParticle
  11.   SpawnExactParticle
  12.   SpawnExactParticle
  13.   SpawnExactParticle
  14.   SpawnExactParticle
  15.   SpawnExactParticle
  16.   SpawnExactParticle
  17.   SpawnExactParticle
  18. IfTimeOut
  19.   GetContent
  20.   tmpx = tmpargument
  21.   tmpy = 1
  22.   IfXIsEqualToY
  23.     // Go away
  24.     tmpargument = 0
  25.     SetContent
  26.     GoPoof
  27.   IfXIsLessThanY
  28.     // Check the passage
  29.     tmpargument = passage
  30.     SetTargetToWhoeverIsInPassage
  31.       IfTargetIsOnOtherTeam
  32.         // The trap has been tripped
  33.         tmpargument = 15
  34.         tmpdistance = EXPDARE
  35.         GiveExperienceToTarget
  36.  
  37.         tmpargument = 0
  38.         SendMessageNear
  39.         tmpdistance = 11025
  40.         PlaySound
  41.         tmpargument = 7
  42.         SetContent
  43.   IfXIsMoreThanY
  44.     // Down the counter
  45.     tmpargument = tmpx - 1
  46.     SetContent
  47.  
  48.  
  49.     // Drop a boulder
  50.     tmpargument = 0
  51.     tmpdistance = 600
  52.     tmpx = selfx
  53.     tmpy = selfy
  54.     SpawnExactParticle
  55.     SpawnExactParticle
  56.     SpawnExactParticle
  57.  
  58.  
  59.   // Wait a while
  60.   tmpargument = 3
  61.   SetTime
  62.  
  63.  
  64. // All done
  65. End
  66.