home *** CD-ROM | disk | FTP | other *** search
- on IceClimb_Inactivities
- global gInactivities, gCurrentScreen, gCurrentSequence, gPlayOnly, gStartedPlaying, gJewelStatus
- if value(gInactivities) = VOID then
- gInactivities = "0"
- if gStartedPlaying then
- gInactivities = "1"
- end if
- end if
- if voidp(gCurrentScreen) then
- exit
- end if
- if not soundBusy(2) and (gCurrentSequence = "fee") then
- gInactivities = string(value(gInactivities) + 1)
- whichInactivity = value(gInactivities)
- PromptList = EMPTY
- theInactField = "iceClimb.inactivities"
- if castExists(theInactField) then
- PromptList = field(theInactField)
- end if
- if PromptList <> EMPTY then
- PromptCount = PromptList.items.count
- case whichInactivity of
- 2:
- if (gJewelStatus = "111111111") and not gPlayOnly then
- HostSound("6133")
- else
- HostSound("7531")
- end if
- 3:
- if gStartedPlaying then
- whichPrompt = "754114"
- else
- whichPrompt = "7532"
- end if
- otherwise:
- if whichInactivity > PromptCount then
- whichInactivity = PromptCount - ((whichInactivity - PromptCount) mod 2)
- end if
- whichPrompt = item whichInactivity of PromptList
- end case
- if whichPrompt = "7533" then
- if char 5 of gJewelStatus = "0" then
- HostSound(whichPrompt)
- else
- HostSound("7531")
- end if
- else
- HostSound(whichPrompt)
- end if
- end if
- set the timeoutLength to 12 * 60
- else
- set the timeoutLength to 5 * 60
- end if
- end
-