home *** CD-ROM | disk | FTP | other *** search
- on GESInsideSystem
- global GESReturnIcon, GESDesOnStage, GESPCBegin, GESSytemUnit, GESInsidSysList, GESPCList, GESPCLevelOneList, GESInsideLevelOneList, GESInsideTextIntroSprite, GESRollReturn, GESWhichXplor, GESInsThisDes, GESBrown, GESGreen, GESBlack
- if GESDesOnStage = 4 then
- if the mouseCast = the castNum of sprite GESInsideTextIntroSprite then
- set GESRollReturn to 1
- cursor([48, 49])
- updateStage()
- end if
- if rollOver(17) or (rollOver(4) and the mouseUp) then
- repeat while rollOver(17) or (rollOver(4) and not rollOver(46) and not rollOver(45) and not rollOver(40) and not rollOver(42) and not rollOver(38))
- set test to the mouseLine
- repeat with f = 1 to count(GESInsideLevelOneList)
- if (test = getAt(getAt(GESInsideLevelOneList, f), 2)) or (the mouseCast = the castNum of sprite getAt(getAt(GESInsideLevelOneList, f), 1)) then
- if the mouseDown and (getAt(getAt(GESInsideLevelOneList, f), 4) = 0) then
- repeat with z = 1 to count(GESInsideLevelOneList)
- if getAt(getAt(GESInsideLevelOneList, z), 4) = 1 then
- repeat with x = 5 to count(getAt(GESInsideLevelOneList, z))
- set GESTempListTwo to getAt(GESInsideLevelOneList, z)
- set the locH of sprite getAt(getAt(GESTempListTwo, x), 1) to 2000
- end repeat
- set the castNum of sprite getAt(getAt(GESInsideLevelOneList, z), 1) to the castNum of sprite getAt(getAt(GESInsideLevelOneList, z), 1) - 1
- set the foreColor of line getAt(getAt(GESInsideLevelOneList, z), 2) of field the castNum of sprite GESInsideTextIntroSprite to GESBrown
- setAt(getAt(GESInsideLevelOneList, z), 3, 0)
- setAt(getAt(GESInsideLevelOneList, z), 4, 0)
- end if
- end repeat
- repeat with x = 5 to count(getAt(GESInsideLevelOneList, f))
- set GESTempListTwo to getAt(GESInsideLevelOneList, 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
- set GESInsThisDes to getAt(getAt(GESTempListTwo, 5), 2)
- set GESThisPos to f
- setAt(getAt(GESInsideLevelOneList, f), 4, 1)
- end if
- if getAt(getAt(GESInsideLevelOneList, f), 3) = 0 then
- set TestTwo to f
- set the castNum of sprite getAt(getAt(GESInsideLevelOneList, f), 1) to the castNum of sprite getAt(getAt(GESInsideLevelOneList, f), 1) + 1
- set the foreColor of line getAt(getAt(GESInsideLevelOneList, f), 2) of field the castNum of sprite GESInsideTextIntroSprite to GESBlack
- updateStage()
- setAt(getAt(GESInsideLevelOneList, f), 3, 1)
- end if
- next repeat
- end if
- if (getAt(getAt(GESInsideLevelOneList, f), 3) = 1) and (getAt(getAt(GESInsideLevelOneList, f), 4) = 0) then
- set the castNum of sprite getAt(getAt(GESInsideLevelOneList, f), 1) to the castNum of sprite getAt(getAt(GESInsideLevelOneList, f), 1) - 1
- set the foreColor of line getAt(getAt(GESInsideLevelOneList, f), 2) of field the castNum of sprite GESInsideTextIntroSprite to GESBrown
- updateStage()
- setAt(getAt(GESInsideLevelOneList, f), 3, 0)
- end if
- end repeat
- updateStage()
- end repeat
- repeat with f = 1 to count(GESInsideLevelOneList)
- if (getAt(getAt(GESInsideLevelOneList, f), 3) = 1) and (getAt(getAt(GESInsideLevelOneList, f), 4) = 0) then
- set the castNum of sprite getAt(getAt(GESInsideLevelOneList, f), 1) to the castNum of sprite getAt(getAt(GESInsideLevelOneList, f), 1) - 1
- set the foreColor of line getAt(getAt(GESInsideLevelOneList, f), 2) of field the castNum of sprite GESInsideTextIntroSprite to GESBrown
- updateStage()
- setAt(getAt(GESInsideLevelOneList, f), 3, 0)
- end if
- end repeat
- end if
- else
- if (GESDesOnStage = 2) and the mouseUp then
- set GESDesOnStage to 4
- 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
- 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(GESInsidSysList)
- if getAt(getAt(GESInsidSysList, x), 1) <> GESReturnIcon then
- setAt(getAt(GESInsidSysList, x), 2, the castNum of sprite getAt(getAt(GESInsidSysList, x), 1))
- setAt(getAt(GESInsidSysList, x), 3, the locH of sprite getAt(getAt(GESInsidSysList, x), 1))
- setAt(getAt(GESInsidSysList, x), 4, the locV of sprite getAt(getAt(GESInsidSysList, x), 1))
- setAt(getAt(GESInsidSysList, x), 5, the ink of sprite getAt(getAt(GESInsidSysList, x), 1))
- end if
- set the locH of sprite getAt(getAt(GESInsidSysList, x), 1) to 2000
- end repeat
- 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
- set the locH of sprite 37 to 2000
- cursor(-1)
- updateStage()
- set GESWhichXplor to 0
- GESExplorePc()
- end if
- end if
- set GESNum to the mouseCast
- GESINSPCINFO(GESNum)
- GESBuyingTips()
- end
-