home *** CD-ROM | disk | FTP | other *** search
- on ARTLiterature
- global ARTLiteratureList, ARTAreSomewhereLit, ARTLitNet
- repeat with g = 1 to count(ARTLiteratureList)
- if rollOver(getAt(getAt(ARTLiteratureList, g), 1)) then
- if the mouseDown and (getAt(getAt(ARTLiteratureList, g), 3) = 0) then
- set ARTLItFirstTime to 0
- setAt(getAt(ARTLiteratureList, g), 3, 1)
- if g = 1 then
- if (ARTLitNet <> 1) and (ARTLitNet <> 4) then
- set ARTLitNet to 1
- set LitTempList to getAt(ARTLiteratureList, g)
- repeat with x = 4 to count(LitTempList)
- set TwoLitTempList to getAt(LitTempList, x)
- set the castNum of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 2)
- set the locH of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 3)
- set the locV of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 4)
- set the ink of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 5)
- end repeat
- updateStage()
- end if
- else
- if g = 2 then
- if ARTLitNet <> 2 then
- set ARTLitNet to 2
- set LitTempList to getAt(ARTLiteratureList, g)
- repeat with x = 4 to count(LitTempList)
- set TwoLitTempList to getAt(LitTempList, x)
- set the castNum of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 2)
- set the locH of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 3)
- set the locV of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 4)
- set the ink of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 5)
- end repeat
- updateStage()
- end if
- else
- if g = 3 then
- if ARTLitNet <> 3 then
- set ARTLitNet to 3
- set LitTempList to getAt(ARTLiteratureList, g)
- repeat with x = 4 to count(LitTempList)
- set TwoLitTempList to getAt(LitTempList, x)
- set the castNum of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 2)
- set the locH of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 3)
- set the locV of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 4)
- set the ink of sprite getAt(TwoLitTempList, 1) to getAt(TwoLitTempList, 5)
- end repeat
- updateStage()
- end if
- end if
- end if
- end if
- repeat with f = 1 to count(ARTLiteratureList)
- if (getAt(getAt(ARTLiteratureList, f), 3) = 1) and (f <> g) then
- set LastPlace to f
- set ARTAreSomewhereLit to 1
- setAt(getAt(ARTLiteratureList, f), 3, 0)
- end if
- end repeat
- end if
- if getAt(getAt(ARTLiteratureList, g), 2) = 0 then
- set the castNum of sprite getAt(getAt(ARTLiteratureList, g), 1) to the castNum of sprite getAt(getAt(ARTLiteratureList, g), 1) + 1
- setAt(getAt(ARTLiteratureList, g), 2, 1)
- repeat with f = 1 to count(ARTLiteratureList)
- if (getAt(getAt(ARTLiteratureList, f), 2) = 1) and (f <> g) and (getAt(getAt(ARTLiteratureList, f), 3) = 0) then
- set the castNum of sprite getAt(getAt(ARTLiteratureList, f), 1) to the castNum of sprite getAt(getAt(ARTLiteratureList, f), 1) - 1
- setAt(getAt(ARTLiteratureList, f), 2, 0)
- end if
- end repeat
- end if
- end if
- end repeat
- repeat with g = 1 to count(ARTLiteratureList)
- if not rollOver(getAt(getAt(ARTLiteratureList, g), 1)) then
- if (getAt(getAt(ARTLiteratureList, g), 2) = 1) and (getAt(getAt(ARTLiteratureList, g), 3) = 0) then
- set the castNum of sprite getAt(getAt(ARTLiteratureList, g), 1) to the castNum of sprite getAt(getAt(ARTLiteratureList, g), 1) - 1
- setAt(getAt(ARTLiteratureList, g), 2, 0)
- end if
- end if
- end repeat
- if (ARTLitNet = 1) or (ARTLitNet = 4) then
- if rollOver(25) then
- set ARTLitNet to 5
- set the castNum of sprite 25 to the castNum of sprite 25 + 1
- end if
- end if
- if ARTLitNet = 5 then
- if rollOver(25) and the mouseDown then
- if the machineType < 200 then
- set the castNum of sprite 36 to 48
- set the locH of sprite 36 to 225
- set the locV of sprite 36 to 181
- set ARTNETUP to 0
- updateStage()
- repeat while 1
- if ARTNETUP = 1 then
- if word the mouseWord of field 48 = "YES" then
- set ARTThisword to the mouseWord
- set the foreColor of word ARTThisword of field 48 to 0
- repeat while word the mouseWord of field 48 = "YES"
- if the mouseDown then
- set ARTYesOrCancel to 1
- exit repeat
- end if
- end repeat
- set the foreColor of word ARTThisword of field 48 to 255
- end if
- if word the mouseWord of field 48 = "NO" then
- set ARTThisword to the mouseWord
- set the foreColor of word ARTThisword of field 48 to 0
- repeat while word the mouseWord of field 48 = "NO"
- if the mouseDown then
- set ARTYesOrCancel to 2
- exit repeat
- updateStage()
- end if
- end repeat
- set the foreColor of word ARTThisword of field 48 to 255
- end if
- if ARTYesOrCancel > 0 then
- exit repeat
- else
- if (the mouseCast <> 48) and the mouseDown then
- beep()
- end if
- end if
- next repeat
- end if
- if the mouseUp then
- set ARTNETUP to 1
- end if
- end repeat
- set ARTNETUP to 0
- if ARTYesOrCancel = 2 then
- set the locH of sprite 36 to 2000
- updateStage()
- repeat while the mouseDown
- end repeat
- else
- set the castNum of sprite 36 to 52
- set the locH of sprite 36 to 225
- set the locV of sprite 36 to 210
- updateStage()
- repeat while the mouseDown
- end repeat
- end if
- else
- set the castNum of sprite 36 to 48
- set the locH of sprite 36 to 225
- set the locV of sprite 36 to 181
- set ARTNETUP to 0
- updateStage()
- repeat while 1
- if ARTNETUP = 1 then
- if word the mouseWord of field 48 = "YES" then
- set ARTThisword to the mouseWord
- set the foreColor of word ARTThisword of field 48 to 0
- repeat while word the mouseWord of field 48 = "YES"
- if the mouseDown then
- set ARTYesOrCancel to 1
- exit repeat
- end if
- end repeat
- set the foreColor of word ARTThisword of field 48 to 255
- end if
- if word the mouseWord of field 48 = "NO" then
- set ARTThisword to the mouseWord
- set the foreColor of word ARTThisword of field 48 to 0
- repeat while word the mouseWord of field 48 = "NO"
- if the mouseDown then
- set ARTYesOrCancel to 2
- exit repeat
- updateStage()
- end if
- end repeat
- set the foreColor of word ARTThisword of field 48 to 255
- end if
- if ARTYesOrCancel > 0 then
- exit repeat
- else
- if (the mouseCast <> 48) and the mouseDown then
- beep()
- end if
- end if
- next repeat
- end if
- if the mouseUp then
- set ARTNETUP to 1
- end if
- end repeat
- set ARTNETUP to 0
- if ARTYesOrCancel = 2 then
- set the locH of sprite 36 to 2000
- updateStage()
- repeat while the mouseDown
- end repeat
- else
- set the castNum of sprite 36 to 52
- set the locH of sprite 36 to 225
- set the locV of sprite 36 to 210
- updateStage()
- repeat while the mouseDown
- end repeat
- StartBrowser("HTML/WORDS/Lithome.htm")
- end if
- end if
- end if
- if not rollOver(25) then
- set ARTLitNet to 4
- set the castNum of sprite 25 to the castNum of sprite 25 - 1
- end if
- end if
- end
-