home *** CD-ROM | disk | FTP | other *** search
- on saveIcon whichOne
- global swagString, online, standalone
- if online and not standalone then
- readPrefs()
- swagString = swagString & "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNN"
- temp = EMPTY
- repeat with i = 1 to 30
- if i = whichOne then
- temp = temp & "Y"
- next repeat
- end if
- temp = temp & char i of swagString
- end repeat
- swagString = temp
- writePrefs()
- end if
- end
-
- on goWalkabout
- global gameControl, worldCoords, level
- case level of
- 1:
- readPrefs()
- worldCoords = point(1000, 300)
- writePrefs()
- gotoNetMovie("lworld.dcr")
- 2:
- worldCoords = point(1000, -300)
- writePrefs()
- gotoNetMovie("lworld.dcr")
- 3:
- worldCoords = point(1000, -600)
- writePrefs()
- gotoNetMovie("lworld.dcr")
- 4:
- worldCoords = point(1000, -1000)
- writePrefs()
- gotoNetMovie("pub.dcr")
- otherwise:
- gotoNetMovie("lworld.dcr")
- end case
- go("loading")
- end
-
- on loadWait
- repeat with i = 1 to 48
- set the visible of sprite i to 0
- end repeat
- go(the frame)
- end
-
- on writePrefs
- global worldCoords, swagString, yourName, standalone
- if not standalone then
- SetPref("lworld97", yourName & "," & getAt(worldCoords, 1) & "," & getAt(worldCoords, 2) & "," & swagString)
- end if
- end
-
- on readPrefs
- global beenHere, worldCoords, swagString, yourName, standalone
- if not standalone then
- worldCoords = point(0, 0)
- if voidp(getPref("lworld97")) then
- beenHere = 0
- case random(9) of
- 1:
- yourName = "Wally"
- 2:
- yourName = "Digger"
- 3:
- yourName = "Bluey"
- 4:
- yourName = "Bruce"
- 5:
- yourName = "Kev"
- 6:
- yourName = "Cobber"
- 7:
- yourName = "Matey"
- 8:
- yourName = "Macca"
- 9:
- yourName = "Bazza"
- otherwise:
- yourName = "Mel"
- end case
- else
- beenHere = 1
- tempList = []
- the itemDelimiter = ","
- tempList = getPref("lworld97")
- yourName = item 1 of tempList
- setAt(worldCoords, 1, integer(item 2 of tempList))
- setAt(worldCoords, 2, integer(item 3 of tempList))
- swagString = item 4 of tempList
- end if
- end if
- end
-