home *** CD-ROM | disk | FTP | other *** search
- on GESExploreNoteBook
- global GESReturnIcon, GESDesOnStage, GESPCBegin, GESInsidSysList, GESPCList, GESPCLevelOneList, GESInsideLevelOneList, GESInsideTextIntroSprite, GESRollReturn, GESWhichXplor, GESInsThisDes, GESBrown, GESGreen, GESBlack, GESSytemUnit, GESNoteAllBlue, GESNoteLevelOneList, GESNotefirst
- if GESNoteAllBlue = 0 then
- if rollOver(6) then
- set GESNoteAllBlue to 1
- set the locH of sprite 19 to 2000
- updateStage()
- end if
- else
- if GESDesOnStage = 0 then
- if rollOver(4) and the mouseUp then
- set GESLeaveNote to 0
- repeat while rollOver(4) and not rollOver(GESReturnIcon)
- repeat with t = 37 to 48
- if rollOver(t) then
- set GESLeaveNote to 1
- exit repeat
- end if
- end repeat
- if GESLeaveNote = 1 then
- set GESLeaveNote to 0
- exit repeat
- end if
- repeat with f = 1 to count(GESNoteLevelOneList)
- if the mouseCast = the castNum of sprite getAt(getAt(GESNoteLevelOneList, f), 1) then
- if the mouseDown and (getAt(getAt(GESNoteLevelOneList, f), 4) = 0) then
- if GESNotefirst = 0 then
- set GESNotefirst to 1
- set the ink of sprite 15 to 36
- updateStage()
- end if
- repeat with z = 1 to count(GESNoteLevelOneList)
- if getAt(getAt(GESNoteLevelOneList, z), 4) = 1 then
- repeat with x = 5 to count(getAt(GESNoteLevelOneList, z))
- set GESTempListTwo to getAt(GESNoteLevelOneList, z)
- set the locH of sprite getAt(getAt(GESTempListTwo, x), 1) to 2000
- end repeat
- set the castNum of sprite getAt(getAt(GESNoteLevelOneList, z), 1) to the castNum of sprite getAt(getAt(GESNoteLevelOneList, z), 1) - 1
- setAt(getAt(GESNoteLevelOneList, z), 3, 0)
- setAt(getAt(GESNoteLevelOneList, z), 4, 0)
- end if
- end repeat
- repeat with x = 5 to count(getAt(GESNoteLevelOneList, f))
- set GESTempListTwo to getAt(GESNoteLevelOneList, f)
- if count(getAt(GESTempListTwo, x)) > 1 then
- set the castNum of sprite getAt(getAt(GESTempListTwo, x), 1) to getAt(getAt(GESTempListTwo, x), 2)
- set the locH of sprite getAt(getAt(GESTempListTwo, x), 1) to getAt(getAt(GESTempListTwo, x), 3)
- set the locV of sprite getAt(getAt(GESTempListTwo, x), 1) to getAt(getAt(GESTempListTwo, x), 4)
- end if
- end repeat
- setAt(getAt(GESNoteLevelOneList, f), 4, 1)
- end if
- if getAt(getAt(GESNoteLevelOneList, f), 3) = 0 then
- set TestTwo to f
- set the castNum of sprite getAt(getAt(GESNoteLevelOneList, f), 1) to the castNum of sprite getAt(getAt(GESNoteLevelOneList, f), 1) + 1
- updateStage()
- setAt(getAt(GESNoteLevelOneList, f), 3, 1)
- end if
- next repeat
- end if
- if (getAt(getAt(GESNoteLevelOneList, f), 3) = 1) and (getAt(getAt(GESNoteLevelOneList, f), 4) = 0) then
- set the castNum of sprite getAt(getAt(GESNoteLevelOneList, f), 1) to the castNum of sprite getAt(getAt(GESNoteLevelOneList, f), 1) - 1
- updateStage()
- setAt(getAt(GESNoteLevelOneList, f), 3, 0)
- end if
- end repeat
- updateStage()
- end repeat
- repeat with f = 1 to count(GESNoteLevelOneList)
- if (getAt(getAt(GESNoteLevelOneList, f), 3) = 1) and (getAt(getAt(GESNoteLevelOneList, f), 4) = 0) then
- set the castNum of sprite getAt(getAt(GESNoteLevelOneList, f), 1) to the castNum of sprite getAt(getAt(GESNoteLevelOneList, f), 1) - 1
- updateStage()
- setAt(getAt(GESNoteLevelOneList, f), 3, 0)
- end if
- end repeat
- end if
- else
- if (GESDesOnStage = 2) and the mouseUp then
- set GESDesOnStage to 0
- set the locH of sprite 11 to 200
- end if
- end if
- if GESRollReturn = 1 then
- set GESRollReturn to 0
- cursor(-1)
- end if
- if rollOver(GESReturnIcon) and the mouseUp then
- set GESRollReturn to 1
- set the castNum of sprite GESReturnIcon to the castNum of sprite GESReturnIcon + 1
- updateStage()
- repeat while rollOver(GESReturnIcon)
- cursor([48, 49])
- if the mouseDown then
- repeat while the mouseDown
- end repeat
- set GESDesOnStage to 5
- exit repeat
- end if
- end repeat
- if GESDesOnStage <> 5 then
- set the castNum of sprite GESReturnIcon to the castNum of sprite GESReturnIcon - 1
- cursor(-1)
- updateStage()
- else
- set GESDesOnStage to 0
- repeat with x = 1 to count(GESNotebookList)
- if getAt(getAt(GESNotebookList, x), 1) <> GESReturnIcon then
- setAt(getAt(GESNotebookList, x), 2, the castNum of sprite getAt(getAt(GESNotebookList, x), 1))
- setAt(getAt(GESNotebookList, x), 3, the locH of sprite getAt(getAt(GESNotebookList, x), 1))
- setAt(getAt(GESNotebookList, x), 4, the locV of sprite getAt(getAt(GESNotebookList, x), 1))
- setAt(getAt(GESNotebookList, x), 5, the ink of sprite getAt(getAt(GESNotebookList, x), 1))
- end if
- if getAt(getAt(GESNotebookList, x), 1) <> 3 then
- set the locH of sprite getAt(getAt(GESNotebookList, x), 1) to 2000
- end if
- end repeat
- set the locH of sprite 37 to 2000
- cursor(-1)
- set the castNum of sprite 3 to 341
- cursor(4)
- updateStage()
- puppetPalette(998)
- repeat with x = 1 to count(GESPCList)
- set the castNum of sprite getAt(getAt(GESPCList, x), 1) to getAt(getAt(GESPCList, x), 2)
- set the locH of sprite getAt(getAt(GESPCList, x), 1) to getAt(getAt(GESPCList, x), 3)
- set the locV of sprite getAt(getAt(GESPCList, x), 1) to getAt(getAt(GESPCList, x), 4)
- set the ink of sprite getAt(getAt(GESPCList, x), 1) to getAt(getAt(GESPCList, x), 5)
- end repeat
- if GESSytemUnit = 0 then
- set the locH of sprite 12 to 2000
- end if
- updateStage()
- cursor(-1)
- set GESWhichXplor to 0
- GESExplorePc()
- end if
- end if
- end if
- set GESNum to the mouseCast
- GESNOTEINFO(GESNum)
- GESBuyingNoteTips()
- end
-