home *** CD-ROM | disk | FTP | other *** search
- on videoSetup
- global gVideolist, numofbranches, gWholeVideoList, finalVideolist, gLoner
- set gVideolist to gWholeVideoList
- set finalVideolist to gWholeVideoList
- set numofbranches to count(gVideolist)
- end
-
- on videoChooser
- global gVideolist, vidinfo, gVidTimex, vidCast, indexnumvalue, numofbranches, finalVideolist, gLoner, gRoomnumber, gVideoFrame
- set counter to 1
- set counter2 to 1
- set vidinfo to EMPTY
- set indexnumvalue to getAt(finalVideolist, indexnumvalue)
- if indexnumvalue = 19 then
- set vidinfo to list(19, "Poul Anderson, master of the space opera", 1719)
- set gBranchlist to list(1)
- else
- if indexnumvalue = 97 then
- set vidinfo to list(97, "The profile of Poul Anderson", 1797)
- set gBranchlist to list(1)
- else
- if indexnumvalue = 120 then
- set vidinfo to list(120, "Poul Anderson opens 'Star Ways'", 1820)
- set gBranchlist to list(1)
- else
- if indexnumvalue = 140 then
- set vidinfo to list(140, "The Sci Fi Achievement Award, the Hugo", 1840)
- set gBranchlist to list(1)
- end if
- end if
- end if
- end if
- set vidCast to getAt(vidinfo, 3)
- set the directToStage of cast vidCast to 1
- set the visible of sprite 21 to 0
- if gRoomnumber = 1 then
- set voffset to 0
- else
- if gRoomnumber = 2 then
- set voffset to 200
- else
- if gRoomnumber = 3 then
- set voffset to 400
- end if
- end if
- end if
- set vvidcast to value(vidCast)
- set gVideoFrame to vvidcast + voffset
- set the text of cast "newList" to EMPTY
- set NumOfBranchSubjects to count(gBranchlist)
- if NumOfBranchSubjects <> 0 then
- set gLoner to 0
- repeat while counter <= NumOfBranchSubjects
- set branchValue to getAt(gBranchlist, counter)
- if branchValue = 1 then
- set videoList to list(19, 97, 120, 140)
- end if
- set counter2 to 1
- if counter = 1 then
- set finalVideolist to videoList
- else
- set videocount to count(videoList)
- repeat while counter2 <= videocount
- set checkValue to getAt(videoList, counter2)
- set exists to getOne(finalVideolist, checkValue)
- if exists = 0 then
- add(finalVideolist, checkValue)
- else
- nothing()
- end if
- set counter2 to counter2 + 1
- end repeat
- end if
- set counter to counter + 1
- end repeat
- else
- end if
- end
-