home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
roudoku.dir
/
00288_Script_288
< prev
next >
Wrap
Text File
|
1995-11-10
|
1KB
|
45 lines
on Teika
global gTeika,gTeika2
Sound playFile 2,"\S_POKALT\COIN"
if abs(gTeika2) >= 1000 then
set gKake = 100
else
if abs(gTeika2) <= 100 then
set gKake = 1
end if
end if
repeat with Money = 1 to abs(gTeika2) / gKake
tell the stage
if gTeika < 0 then
set gTeika = 0
set gTeika3 = 0
put gTeika into field"╔e╔C╔J"
exit repeat
else
if gTeika2 > 0 then
set gTeika3 = gTeika + Money * gKake
put gTeika3 into field"╔e╔C╔J"
else
if gTeika2 < 0 then
set gTeika3 = gTeika - Money * gKake
if gTeika3 < 0 then
set gTeika3 = 0
put gTeika3 into field"╔e╔C╔J"
exit repeat
end if
put gTeika3 into field"╔e╔C╔J"
end if
end if
end if
end tell
end repeat
Sound playFile 2,"\S_POKALT\MONEY_"
set gTeika = gTeika3
set gTeika2 = 0
repeat while soundbusy(2)
nothing
end repeat
end