home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
yomu.dir
/
00218_Script_218
< prev
next >
Wrap
Text File
|
1995-11-10
|
2KB
|
73 lines
on StartMovie
global CUL, sNAME,karuta,OLD_CUL
puppetSprite 4, true
-- puppetSprite 5, true
-- set the castNum of sprite 4 to the number of cast (CUL+100)
-- set the castNum of sprite 5 to the number of cast CUL
-- set the locH of sprite 5 to 261
-- set the locV of sprite 5 to 5
Initnumber CUL
-- sound fadeout 2, 120
set karuta = []
repeat with i = 1 to 100
add karuta , i
end repeat
set OLD_CUL = 101
tell the stage
go to frame"ROUDOKU"
end tell
end
on StopMovie
puppetSprite 1, false
puppetSprite 4, false
puppetSprite 5, false
tell the stage
go to frame"toMAP"
end tell
end
on RNDSELECT
global CUL, sNAME,Karuta
if count(karuta) = 0 then
play done
else
set listct = count(karuta)
set dtct = random(listct)
set CUL = getAt(karuta,dtct)
deleteAt karuta, dtct
-- put random(100) into CUL
Initnumber CUL
set the castNum of sprite 4 to the number of cast (CUL+100)
end if
end
on Initnumber x
global CUL,sNAME
if length(String(x)) = 1 then set sNAME = "00"&string(x)
else if length(String(x)) = 2 then set sNAME = "0"&string(x)
else if length(String(x)) = 3 then set sNAME = string(x)
end
on PushB2
puppetSound "PUSH_SE"
put item 1 of the name of cast the castNum of sprite clickOn() into cName
repeat while stilldown()
if rollover(clickOn()) then
set the castNum of sprite clickOn() = the number of cast (cName & ",DW")
else
set the castNum of sprite clickon() = the Number of cast (cName & ",UP")
end if
updatestage
end repeat
set the castNum of sprite clickon() = the Number of cast (cName & ",UP")
updatestage
return TRUE
puppetSound 0
end
on return_M
go to movie "ROUDOKU"
end