home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
bbozu7.dir
/
00005_Script_5
< prev
next >
Wrap
Text File
|
1995-11-13
|
2KB
|
92 lines
on SelectCard
global Karuta,gutasu,gHuda,gBahuda,gMax,gTeika,premium,gCount,gMotihuda,dtct
set listct = count(karuta)
set dtct = random(listct)
set gutasu = getPropAt(karuta,dtct)
set gHuda = getAt(karuta,dtct)
deleteAt karuta,dtct
end
on Hantei
global Karuta,gHuda,gBahuda,gMax,gTeika,gTeika2,gCount,¼
gMotihuda,Again,gGyaku,gYasumiP
set gMotihuda = gMotihuda + 1
put gCount + 1 into gCount
if gHuda = 2 then
if gBahuda = 0 then
set Again = 1
else
PgetHime
put gMotihuda + gBahuda into gMotihuda
set gBahuda = 0
PuppetSprite 16,TRUE
set the type of sprite 16 = 0
end if
else
if gHuda = 3 then
PgetBozu
put gBahuda + gMotihuda into gBahuda
set gMotihuda = 0
else
if gHuda = 4 then
sound playFile 2, "\S_BZMKRI\CARD_L"
repeat while soundBusy(2)
nothing
end repeat
set gMotihuda = gMotihuda - 1
set gTeika2 = 100
TEIKA2
end if
if gHuda = 5 then
sound playFile 2, "\S_BZMKRI\CARD_R"
repeat while soundBusy(2)
end repeat
if gGyaku = 0 then
set gMotihuda = gMotihuda - 1
set gGyaku = 1
else
set gMotihuda = gMotihuda - 1
set gGyaku = 0
end if
end if
end if
end if
if gHuda = 6 then
sound playFile 2, "\S_BZMKRI\CARD_1"
repeat while soundBusy(2)
end repeat
set gMotihuda = gMotihuda - 1
set gYasumiP = 1
PuppetSprite 47,TRUE
set the type of sprite 47 to 1
set the ink of sprite 47 to 36
set the castNum of sprite 47 to 89
set the locH of sprite 47 to 256
set the locV of sprite 47 to 350
end if
end
on Hyoji
global gMax,gCount
if gMax - gCount <= 10 then
put "Θc╟╦" && integer ( gMax - gCount ) && "±ß" into field"±ßΩε"
set the textSize of field "±ßΩε" = 24
set the textStyle of field "±ßΩε" = "bold"
end if
end
on CountCheck
global gMax,gCount
if gCount >= gMax then
go to frame"Φⁿεs"
else
go to the frame + 1
end if
updateStage
end