home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
A Field Trip to the Sky (Demo)
/
Mac_Sunburst_AFieldTripToTheSky-Demo.iso
/
DIR
/
GAME.DIR
/
00104_Script_alerts
< prev
next >
Wrap
Text File
|
1996-03-27
|
1KB
|
65 lines
global gAttrList, gChoosing
-- ïï show an alert to allow the user to select a planetz ïï
on planetChoiceAlert
set gChoosing to TRUE
open window "GAME1.DIR"
set the windowType of window "GAME1.DIR" to 2
end
-- ïï choosePlanet ïï
-- the user choose a planet
on choosePlanet pNum
put pNum
if pNum = getProp(gAttrList,#planet) then
doneAlert()
else
beep(0)
end if
end
--ïï congratulate user and go ïï
on doneAlert
close window "GAME1.DIR"
forget window "GAME1.DIR"
open window "GAME2.DIR"
set the windowType of window "GAME2.DIR" to 2
end
-- go to an albume
on chooseAlbum
global gMercuryObject, gVenusObject, gMoonObject, gMarsObject, gJupiterObject
global gSaturnObject, gUranusObject, gNeptuneObject, gPlutoObject
global gCurObject
set i to the clickOn - 35
set theList to [gMercuryObject, gVenusObject, gMoonObject, gMarsObject, gJupiterObject,¬
gSaturnObject, gUranusObject, gNeptuneObject, gPlutoObject]
-- make it the current object
set gCurObject to getAt(theList,i)
set theId to getProp(gCurObject,#id)
doInitGeneralButtons theId
-- copy game retun over it
duplicate cast "BACKUP.PICT", 1164
duplicate cast "BACKDN.PICT", 1163
-- and get out of here
go to frame "T1" of movie (theId & "O")
end