home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Revista CD Expert 42
/
CDGAMER42.iso
/
Egoboo
/
egoboo.exe
/
egoboo
/
modules
/
advent.mod
/
objects
/
wbutton.obj
/
script.txt
< prev
next >
Wrap
Text File
|
1999-10-03
|
1KB
|
40 lines
// 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