home *** CD-ROM | disk | FTP | other *** search
- on RockBal_Inactivities
- global gInactivities, gResponses, gGameSol, gPlayOnly, gJewelStatus
- if voidp(gInactivities) then
- gInactivities = 0
- end if
- gInactivities = gInactivities + 1
- InactField = root(the movieName) & ".Inactivities"
- if castExists(InactField) then
- TrolleyEmpty = 1
- repeat with i = 39 to 44
- if sprite(i).member.name <> "empty" then
- TrolleyEmpty = 0
- exit repeat
- end if
- end repeat
- case gInactivities of
- 1:
- if (gJewelStatus = "111111111") and not gPlayOnly then
- HostSound("6133")
- else
- if TrolleyEmpty then
- HostSound("764113")
- else
- if gGameSol < 0 then
- put "2" into item 5 of gResponses
- HostSound("764212")
- else
- put "1" into item 5 of gResponses
- HostSound("764115")
- end if
- end if
- end if
- 2:
- if TrolleyEmpty then
- HostSound("764111")
- else
- if gGameSol > 0 then
- HostSound("764222")
- else
- HostSound("764232")
- end if
- end if
- otherwise:
- whichPrompt = item gInactivities - 1 of field InactField
- if whichPrompt = "7633" then
- if char 2 of gJewelStatus = "0" then
- HostSound(whichPrompt)
- else
- HostSound("7631")
- end if
- else
- HostSound(whichPrompt)
- end if
- end case
- end if
- set the timeoutLength to 12 * 60
- end
-