home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
karu_gin.dir
/
00201_Script_201
< prev
next >
Wrap
Text File
|
1995-11-13
|
8KB
|
278 lines
on startMovie
global yomiNum, yomicount, temotiCT, otetukiCT, karaCT, ¼
aiteCT,yomihuda,incrementH, L,TACHI,fromKARU,gWakuColor
forgetAllWindow
set yomihuda = []
set yomicount = 0
set temotiCT = 0
set otetukiCT = 0
set karaCT = 0
set aiteCT = 0
set fromKARU = 0
set gWakuColor = "Ωæ"
put "Θ╦Θ∙╟°Ωε" && temotiCT into field "Θ╦Θ∙╟°Ωε"
put "╟«╟â╟¼╟┤Ωε" && otetukiCT into field "╟«╟â╟¼╟┤Ωε"
put "π█ΘDΩε" && karaCT into field "π█ΘDΩε"
put "δΣΘ╦Θ∙╟°Ωε" && aiteCT into field "δΣΘ╦Θ∙╟°Ωε"
updateStage
global Karuta,gHuda,gHuda2,gMax
put 25 into gMax
set gHuda = []
set gHuda2 = []
set karuta = [1:1,2:2,3:1,4:1,5:1,6:1,7:1,8:3,9:2,10:3,¼
11:1,12:3,13:1,14:1,15:1,16:1,17:1,18:1,19:2,20:1,¼
21:3, 22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,¼
31:1,32:1,33:1,34:1,35:1,36:1,37:1,38:2,39:1,40:1,¼
41:1,42:1,43:1,44:1,45:1,46:1,47:3,48:1,49:1,50:1,¼
51:1,52:1,53:2,54:2,55:1,56:2,57:2,58:2,59:2,60:2,¼
61:2,62:2,63:1,64:1,65:2,66:3,67:2,68:1,69:3,70:3,¼
71:1,72:2,73:1,74:1,75:1,76:3,77:1,78:1,79:1,80:2,¼
81:1,82:3,83:1,84:1,85:3,86:3,87:3,88:2,89:2,90:2,¼
91:1,92:2,93:1,94:1,95:3,96:3,97:1,98:1,99:1,100:1]
repeat with n = 1 to 100
add yomihuda, n
end repeat
set the visible of sprite 46 = 0
set the visible of sprite 47 = 0
puppetsprite 46,true
puppetsprite 47,true
set W to the width of sprite 46
set incrementH to W / 7
set L to the left of sprite 46
-- set the soundLevel = 2
set newH = L + incrementH * (the soundLevel )
set the locH of sprite 47 = newH
if TACHI = 0 then
set the visible of sprite 43 = FALSE
else
set the visible of sprite 43 = TRUE
end if
end
on idle
if rollOver(44) then
puppetSprite 44,true
set the castNum of sprite 44 = the number of cast "R_OT,DW"
updatestage
set the visible of sprite 46 = 1
set the visible of sprite 47 = 1
else
set the castNum of sprite 44 = the number of cast "R_OT,UP"
updatestage
set the visible of sprite 46 = 0
set the visible of sprite 47 = 0
puppetSprite 44,false
end if
end idle
on SelectCard
global Karuta,gHuda,gMax
repeat with i = 1 to gMax
set listct = count(karuta)
set dtct = random(listct)
set KamiNum = getPropAt(karuta,dtct)
add gHuda,KamiNum
deleteAt karuta,dtct
if count(gHuda) = gMax then
exit repeat
end if
end repeat
end
on SelectCard2
global Karuta,gHuda2,gMax
repeat with i = 1 to gMax
set listct = count(karuta)
set dtct = random(listct)
set KamiNum = getPropAt(karuta,dtct)
add gHuda2,KamiNum
deleteAt karuta,dtct
if count(gHuda2) = gMax then
exit repeat
end if
end repeat
end
on selectYomihuda
global yomihuda, yomiNum, yomicount
set listct = count(yomihuda)
set dtct = random(listct)
set KamiNum = getAt(yomihuda,dtct)
deleteAt yomihuda,dtct
set yomiNum = KamiNum
put yomicount + 1 into yomicount
put yomicount && "±ß±₧" into field "yomiCT"
put "∞½╟¢ΘD" && yomiNum into field "∞½╟¢ΘD"
put yomihuda into field "∞½╟¢ΘD╔Σ╔X╔g"
end
on selectJihuda
global gHuda
repeat with listct = 1 to 25
set the castNum of sprite listct + 9 = getAt(gHuda, listct)
wait 3
updateStage
end repeat
end
on wSUB
global CPUwindow
if objectP(CPUwindow) then forget CPUwindow
set H to the stageLeft + 66
set V to the stageTop + 50
set CPUwindowRect to rect(H,V,H+415,V+190)
set CPUwindow to window "CPU"
set the windowType of CPUwindow to 2
set the rect of CPUwindow to CPUwindowRect
set the fileName of CPUwindow to "SUB_KARU"
set the titleVisible of CPUwindow to FALSE
open CPUwindow
end
on stopMovie
repeat with SP = 10 to 36
puppetsprite SP, false
set the type of sprite SP = 1
end repeat
set the timeoutScript = "nothing"
global CPUwindow
if objectP(CPUwindow) then forget CPUwindow
initglobal
global karuta
set karuta = []
forgetAllWindow
end
on initpuppetOn
repeat with SP = 10 to 36
puppetsprite SP, TRUE
set the type of sprite SP = 1
end repeat
end
on initpuppetOff
repeat with SP = 10 to 36
set the type of sprite SP = 1
puppetsprite SP, false
end repeat
puppetsprite 48 , false
end
on PushB
puppetSound "PUSH_SE"
updatestage
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
puppetSound 0
-- set the castNum of sprite clickon() = the Number of cast (cName & ",UP")
updatestage
if rollover(clickon()) then return TRUE
return FALSE
end
on PushB2
puppetSound "PUSH_SE"
updatestage
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
puppetSound 0
set the castNum of sprite clickon() = the Number of cast (cName & ",DW")
updatestage
return TRUE
end
on PushB3
puppetSound "BUTTON08"
updatestage
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
puppetSound 0
set the castNum of sprite clickon() = the Number of cast (cName & ",DW")
updatestage
return TRUE
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 yomiclear
set the castNum of sprite 3 = the number of cast ("yomibase")
end
on REturn_M
go to movie "MENU"
end
on Initglobal
global yomiNum, yomicount, temotiCT, otetukiCT, karaCT, aiteCT,yomihuda,Hant, Hant2
global gToriSP, gTriSP2
set Hant = 1
set Hant2 = 1
set gToriSP = 0
set gToriSP2 = 0
set yomihuda = []
set yomicount = 0
set temotiCT = 0
set otetukiCT = 0
set karaCT = 0
set aiteCT = 0
-- put "Θ╦Θ∙╟°Ωε" && temotiCT into field "Θ╦Θ∙╟°Ωε"
-- put "╟«╟â╟¼╟┤Ωε" && otetukiCT into field "╟«╟â╟¼╟┤Ωε"
-- put "π█ΘDΩε" && karaCT into field "π█ΘDΩε"
-- put "δΣΘ╦Θ∙╟°Ωε" && aiteCT into field "δΣΘ╦Θ∙╟°Ωε"
-- updateStage
global Karuta,gHuda,gHuda2,gMax
-- put 25 into gMax
set gHuda = []
set gHuda2 = []
set karuta = [1:1,2:2,3:1,4:1,5:1,6:1,7:1,8:3,9:2,10:3,¼
11:1,12:3,13:1,14:1,15:1,16:1,17:1,18:1,19:2,20:1,¼
21:3, 22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,¼
31:1,32:1,33:1,34:1,35:1,36:1,37:1,38:2,39:1,40:1,¼
41:1,42:1,43:1,44:1,45:1,46:1,47:3,48:1,49:1,50:1,¼
51:1,52:1,53:2,54:2,55:1,56:2,57:2,58:2,59:2,60:2,¼
61:2,62:2,63:1,64:1,65:2,66:3,67:2,68:1,69:3,70:3,¼
71:1,72:2,73:1,74:1,75:1,76:3,77:1,78:1,79:1,80:2,¼
81:1,82:3,83:1,84:1,85:3,86:3,87:3,88:2,89:2,90:2,¼
91:1,92:2,93:1,94:1,95:3,96:3,97:1,98:1,99:1,100:1]
repeat with n = 1 to 100
add yomihuda, n
end repeat
end
on forgetAllWindow
put count(the windowList) into wCnt
if wCnt = 0 then exit
repeat with wNum = wCnt down to 1
forget window wNum
end repeat
end