home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
bbozu7.dir
/
00016_Script_16
< prev
next >
Wrap
Text File
|
1995-11-13
|
2KB
|
104 lines
on roulette
global PName,AName,BName,CName,Tsp,Hsp,Bsp
repeat with j = 2 to 8
puppetSprite j,TRUE
end repeat
repeat with j = 26 to 29
puppetSprite j,TRUE
end repeat
preLoadCast 72
set A = random(3)
set SP = random(4) + 25
set W = random(10) + 5
repeat with i = 1 to W
PuppetSound"PiPi"
set the castNum of sprite SP = 38
-- updateStage
set A = A +1
if A > 3 then set A =1
set the castNum of sprite 2 = A
set B = A +1
if B > 3 then set B =1
set the castNum of sprite 3 = B
set C = B +1
if C > 3 then set C =1
set the castNum of sprite 4 = C
set SP = SP + 1
if SP > 29 then set SP = 26
set the castNum of sprite SP = 67
updateStage
wait i
end repeat
put "╟å╟╗╟²" into PName
put the Name of cast A into AName
put the Name of cast B into BName
put the Name of cast C into CName
if A = 1 and B = 2 and C = 3 then
set Tsp = 2
set Hsp = 3
set Bsp = 4
else
if A = 2 and B = 3 and C = 1 then
set Tsp = 4
set Hsp = 2
set Bsp = 3
else
if A = 3 and B = 1 and C = 2 then
set Tsp = 3
set Hsp = 4
set Bsp = 2
end if
end if
end if
PuppetSound 0
end
on wait t
put the ticks + t into endTime
repeat while the ticks <= endTime
nothing
end repeat
end
on SelectOya
if the castNum of sprite 26 = 67 then
repeat with j = 26 to 29
puppetSprite j,FALSE
end repeat
go to frame"A"
else
if the castNum of sprite 27 = 67 then
repeat with j = 26 to 29
puppetSprite j,FALSE
end repeat
go to frame"B"
else
if the castNum of sprite 28 = 67 then
repeat with j = 26 to 29
puppetSprite j,FALSE
end repeat
go to frame"C"
else
if the castNum of sprite 29 = 67 then
repeat with j = 26 to 29
puppetSprite j,FALSE
end repeat
go to frame"Mekuru"
end if
end if
end if
end if
repeat with j = 5 to 8
puppetSprite j,FALSE
end repeat
repeat with j = 26 to 29
puppetSprite j,FALSE
end repeat
end