home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
A Field Trip to the Sky (Demo)
/
Mac_Sunburst_AFieldTripToTheSky-Demo.iso
/
DIR
/
GAME.DIR
/
00115_Script_doRings
< prev
next >
Wrap
Text File
|
1996-03-27
|
823b
|
39 lines
global gAttrList
global gPower
on mouseDown
set s to the clickOn
set c to the castNum of sprite s
if( the name of cast c = "Switch Right" OR gPower < 17 ) then
-- if they've already been here or have enough, tell em what for
set theRings to getProp(gAttrList,#rings)
-- play the sound
doPlaySound( "RI" & string(theRings) )
else if gPower >= 17 then
-- else bark
doPlaySound( "Power3" )
end if
if the name of cast c <> "Switch Right" AND gPower < 17 then
doSwitch(the clickOn)
set s to 10
puppetSprite s, TRUE
set c to the number of cast (string(theRings) && "Ring")
set the castNum of sprite s to c
-- and redraw
decreasePower(2)
updateStage
end if
doFlush()
end