home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today (BR) Volume 2 #6
/
CDRTV2N6.iso
/
makers
/
random.dir
/
00053_Script_53
< prev
next >
Wrap
Text File
|
1996-03-11
|
3KB
|
113 lines
on startMovie
global Choose,Flag,MoveOrange,ChangePict
put FALSE into Choose
put 1 into Flag
put 1 into MoveOrange
put 1 into ChangePict
put " " into field "namesText"
put EMPTY into field "numfield"
preLoadCast 14, 36
preLoadCast 56, 83
end
on changeCasts
global Flag,MoveOrange,ChangePict
set the castNum of sprite 11 to (random(7) + 6)
if the castNum of sprite 14 < 67 then set the castNum of sprite 14 to (the number of cast the castNum of sprite 14) + 1
else set the castNum of sprite 14 to 56
if the castNum of sprite 15 < 67 then set the castNum of sprite 15 to (the number of cast the castNum of sprite 15) + 1
else set the castNum of sprite 15 to 56
if Flag = 1 then
if the castNum of sprite 12 < 36 then
set the castNum of sprite 12 to (the number of cast the castNum of sprite 12) + 1
else
put 0 into Flag
end if
else
if the castNum of sprite 12 > 14 then
set the castNum of sprite 12 to (the number of cast the castNum of sprite 12) - 1
else
put 1 into Flag
end if
end if
set the castNum of sprite 13 to the number of cast (the castNum of sprite 12)
if MoveOrange = 1 then
if the castNum of sprite 2 < 83 then set the castNum of sprite 2 to the castNum of sprite 2 + 1
else set the castNum of sprite 2 to 68
put 0 into MoveOrange
else
put 1 into MoveOrange
end if
if ChangePict = 30 then
set the castNum of sprite 3 to random(183) + 84
put 0 into ChangePict
else
put ChangePict + 1 into ChangePict
end if
updateStage
end
on rollOvers
if rollOver(7) then
roll 7
else
unRoll 7
end if
-- if rollOver(8) then
-- roll 8
-- unRoll 7
-- else
-- unRoll 8
-- end if
if rollOver(9) then
roll 9
unRoll 7
else
unRoll 9
end if
if rollOver(10) then
roll 10
else
unRoll 10
end if
updateStage
end
on roll theRoll
if not(the name of cast the castNum of sprite theRoll contains "down") then
set the castNum of sprite theRoll to (the castNum of sprite theRoll) + 1
end if
end
on unRoll theRoll
if the name of cast the castNum of sprite theRoll contains "down" then
set the castNum of sprite theRoll to (the castNum of sprite theRoll) - 1
end if
end
on GoDatabase num
global gMakerNum,ItemDel
put "body,power,discover,senses,mind,design" into temp
set name = word (the number of words of the name of cast num) of the name of cast num
set num = bsearch(name,"numList")
set num2 = item 2 of line num of field "numList"
set file = value(item 3 of line num of field "numList")
set gMakerNum = num2
put string("MAKERS"&ItemDel&"DATABASE"&ItemDel&string(item file of temp&".dir"))
go to frame "database" of movie string("MAKERS"&ItemDel&"DATABASE"&ItemDel&string(item file of temp&".dir"))
end
on disposeRearWindow
global rwObj
if the machineType <> 256 then
if objectP( rwObj ) then rwObj( mDispose )
end if
end