home *** CD-ROM | disk | FTP | other *** search
- // ZZ> This function makes the button go down
- tmpargument = 1 // Drain the water
- IfStateIs //
- IfTimeOut //
- tmpargument = 2 // Drain complete
- SetState //
- tmpargument = 1 //
- SendMessageNear //
- tmpargument = 0 - 1000 // Just to be sure
- SetWaterLevel //
- tmpargument = 0 // Turn off the drips
- SetWeatherTime //
- tmpargument = passage //
- OpenPassage // Open the door
- Else //
- GetWaterLevel //
- tmpargument = tmpargument - 2 //
- SetWaterLevel //
- tmpx = 20 // Threshold weight
- tmpy = weight // Weight of characters on top
- IfXIsLessThanY //
- tmpargument = 0 //
- IfStateIs // Only go down if it's up
- tmpargument = ACTIONMG //
- DoAction //
- tmpargument = 1 // 1 is down
- SetState //
- SetTargetToWhoeverBumped //
- tmpargument = 0 //
- SendMessageNear //
- KeepAction // Make it stay on last frame
- tmpargument = 0 //
- SetBumpHeight //
- tmpargument = 250 //
- SetTime //
- tmpargument = 0 //
- tmpdistance = 11025 //
- PlaySound //
- End // Finished with this character
-