home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
csinke6.dir
/
00029_Script_29
< prev
next >
Wrap
Text File
|
1995-11-13
|
3KB
|
115 lines
on mekuriC1
global gShinkei,gMax, SP, hajime,tugi,hajimeC,clicksprite1¼
,gHazure,clicksprite2,randomSP1,hazureC,puppetCheck,gOKMax¼
,Kioku,sameHajimePos,sametugiPos,hajimePos,tugiPos
if gHazure = 1 then
set the castNum of sprite clicksprite1 = 100
set the castNum of sprite clicksprite2 = 100
puppetSprite clickSprite1, FALSE
puppetSprite clickSprite2, FALSE
set the visible of sprite 34 = 0
set the castNum of sprite 33 = 300
puppetSprite 33, FALSE
PuppetSound "turnover"
updateStage
set gHazure = 0
PuppetSound 0
end if
if not( clicksprite1 = 0 ) then
put value(string(gShinkei)) into Shinkei2
set hajimePos = getPos(Shinkei2,hajime)
setAt Shinkei2,clicksprite1 - 1,0
set sameHajimePos = getPos(Shinkei2,hajime)
set tugiPos = getPos(Shinkei2,tugi)
setAt Shinkei2,clicksprite2 - 1,0
set sametugiPos = getPos(Shinkei2,tugi)
else
nothing
end if
set puppetCheck = []
repeat with i = 2 to gMax + 1
if the puppet of sprite i = FALSE then
add puppetCheck , i
end if
end repeat
if getOne(Kioku,sameHajimePos) <> 0 then
set randomSP1 = sameHajimePos + 1
deleteOne(Kioku,sameHajimePos)
deleteOne(Kioku,hajime)
else
if getOne(Kioku,sametugiPos) <> 0 then
set randomSP1 = sametugiPos + 1
deleteOne(Kioku,sametugiPos)
deleteOne(Kioku,tugi)
else
set gOKMax = count (puppetCheck)
set dtct = random (gOKMax)
set randomSP1 = getAt (puppetCheck,dtct)
end if
end if
if randomSP1 = clicksprite1 or randomSP1 = clicksprite2 then exit
HandUp
PuppetSound "MEKURI"
puppetSprite randomSP1, TRUE
puppetSprite 33, TRUE
set hajimeC = getAt ( gShinkei , randomSP1 - 1 )
set the castNum of sprite randomSP1 = hajimeC + 100
set the locV of sprite 33 = 264
set the locH of sprite 33 = 112
set the castNum of sprite 33 = hajimeC + 300
updateStage
if hajimeC = 102 then Sound playfile 2,"\S_SINKEI\EMA_AIFF"
wait 5
go to frame"levelC2"
-- PuppetSound 0
end
on mekuriC2
global gShinkei,randomSP1,randomSP2,tugiC,puppetCheck,gOKMax,hajimeC¼
,hajime,tugi,clicksprite1,clicksprite2,Kioku
if hajimeC <> 102 then
if hajimeC = hajime then
set randomSP2 = clicksprite1
else
if hajimeC = tugi then
set randomSP2 = clicksprite2
else
set dtct = random (gOKMax)
set randomSP2 = getAt (puppetCheck,dtct)
end if
end if
else
set dtct = random (gOKMax)
set randomSP2 = getAt (puppetCheck,dtct)
end if
if randomSP2 = randomSP1 or randomSP2 = 0 then exit
if the puppet of sprite randomSP2 = FALSE then
puppetSprite randomSP2, TRUE
set the visible of sprite 34 = 1
set the castNum of sprite 34 = 300
HandUp
PuppetSound "MEKURI"
set tugiC = getAt ( gShinkei , randomSP2 - 1 )
set the castNum of sprite randomSP2 = tugiC + 100
set the locV of sprite 34 = 248
set the locH of sprite 34 = 90
set the castNum of sprite 34 = tugiC + 300
updateStage
go to the frame + 1
else
nothing
end if
wait 30
end