home *** CD-ROM | disk | FTP | other *** search
- // ZZ> This function makes the button go up or down
- 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 //
- tmpargument = passage //
- OpenPassage //
- KeepAction // Make it stay on last frame
- tmpargument = 20 //
- SetBumpHeight //
- Else // Pop up
- tmpargument = 1 //
- IfStateIs // Only pop up if it's down
- tmpargument = ACTIONMJ //
- DoAction //
- tmpargument = 0 // 0 is up
- SetState //
- KeepAction // Make it stay on last frame
- tmpargument = 60 //
- SetBumpHeight //
- tmpargument = passage // Make sure it goes up
- ClosePassage //
- End // Finished with this character
-