home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
dpokalv2.dir
/
00033_Script_33
< prev
next >
Wrap
Text File
|
1995-11-10
|
4KB
|
177 lines
on KazuCheckC
global gHCAll,TonoC,HimeC,BozuC,Baba
set TonoC = 0
set HimeC = 0
set BozuC = 0
set Baba = 0
repeat with KazuCheck in gHCAll
set gSyurui = getAT(KazuCheck,1)
if KazuCheck = 1 then
set TonoC = TonoC + 1
else
if KazuCheck = 2 then
set HimeC = HimeC + 1
else
if KazuCheck = 3 then
set BozuC = BozuC + 1
else
if KazuCheck = 4 then
set Baba = 1
end if
end if
end if
end if
end repeat
put TonoC && HimeC && BozuC && Baba into field"gHeldHudaP"
end
on YakuCheckC1
global gTeikaC,Yakumei1,Yakumei2,Yakulist,CT,Kazu1,gKake
set gTeikaC = gTeikaC + getPropAt(Yakulist,CT)
set Yakumei1 = string(getAT(Yakulist,CT))
-- set the textSize of field "±¥2" = 30
-- set the textHeight of field "±¥2" = 50
-- set the textStyle of field "±¥2" = "bold"
put Kazu1 & Yakumei1 into field"±¥2"
-- set the textSize of field "±¥╟Q╔e╔C╔J" = 30
-- set the textHeight of field "±¥╟Q╔e╔C╔J" = 50
-- set the textStyle of field "±¥╟Q╔e╔C╔J" = "bold"
put gTeikaC * gKake into field"±¥╟Q╔e╔C╔J"
end
on YakuCheckC2
global gTeikaC,Yakumei1,Yakumei2,Yakulist,CT,Kazu1,Kazu2,gKake
set gTeikaC = gTeikaC + getPropAt(Yakulist,CT)
set Yakumei2 = string(getAT(Yakulist,CT))
-- set the textSize of field "±¥2" = 30
-- set the textHeight of field "±¥2" = 50
-- set the textStyle of field "±¥2" = "bold"
put Kazu1 & Yakumei1 && Kazu2 & Yakumei2 into field"±¥2"
-- set the textSize of field "±¥╟Q╔e╔C╔J" = 30
-- set the textHeight of field "±¥╟Q╔e╔C╔J" = 50
-- set the textStyle of field "±¥╟Q╔e╔C╔J" = "bold"
put gTeikaC * gKake into field"±¥╟Q╔e╔C╔J"
end
on HanteiCB0
global BozuC,HimeC,TonoC,Baba,gTeikaC,Yakumei1,Yakumei2,Yakulist,CT,Kazu1,Kazu2
set gTeikaC = 0
set Yakumei1 = ""
set Yakumei2 = ""
set Kazu1 = ""
set Kazu2 = ""
if BozuC = 5 then
set Kazu1 = 5
set CT = 1
YakuCheckC1
else
if HimeC = 5 then
set Kazu1 = 5
set CT = 2
YakuCheckC1
else
if TonoC = 5 then
set Kazu1 = 5
set CT = 3
YakuCheckC1
end if
end if
end if
if BozuC = 4 then
set Kazu1 = 4
set CT = 4
YakuCheckC1
else
if HimeC = 4 then
set Kazu1 = 4
set CT = 5
YakuCheckC1
else
if TonoC = 4 then
set Kazu1 = 4
set CT = 6
YakuCheckC1
end if
end if
end if
if BozuC = 3 then
set Kazu1 = 3
set CT = 7
YakuCheckC1
else
if HimeC = 3 then
set Kazu1 = 3
set CT = 8
YakuCheckC1
else
if TonoC = 3 then
set Kazu1 = 3
set CT = 9
YakuCheckC1
else
if BozuC = 2 then
set Kazu1 = 2
set CT = 10
YakuCheckC1
set BozuC = 0
else
if HimeC = 2 then
set Kazu1 = 2
set CT = 11
YakuCheckC1
set HimeC = 0
else
if TonoC = 2 then
set Kazu1 = 2
set CT = 12
YakuCheckC1
set TonoC = 0
end if
end if
end if
end if
end if
end if
if BozuC = 2 then
set Kazu2 = 2
set CT = 10
YakuCheckC2
else
if HimeC = 2 then
set Kazu2 = 2
set CT = 11
YakuCheckC2
else
if TonoC = 2 then
set Kazu2 = 2
set CT = 12
YakuCheckC2
end if
end if
end if
if Kazu2 = 2 and Kazu1 = 3 then
sound playfile 2,"\S_POKALT\FULLHOUS"
else
if Kazu2 = 2 and Kazu1 = 2 then
sound playfile 2,"\S_POKALT\PAIR2"
else
if Kazu2 = "" and Kazu1 = 5 then
sound playfile 2,"\S_POKALT\CARD5"
else
if Kazu2 = "" and Kazu1 = 4 then
sound playfile 2,"\S_POKALT\CARD4"
else
if Kazu2 = "" and Kazu1 = 3 then
sound playfile 2,"\S_POKALT\CARD3"
end if
end if
end if
end if
end if
end