home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fuji Wa La Te I Ka - Hyakunin Isshu Karuta
/
KARUTA.bin
/
wins
/
dpokalv2.dir
/
00002_Script_2
< prev
next >
Wrap
Text File
|
1995-11-10
|
2KB
|
105 lines
on SelectCard2
global Karuta,gTeika,premium,gCount,gHudaP,gUtasu,gSyurui
set listct = count(karuta)
set dtct = random(listct)
set gUtasu = getPropAT(karuta,dtct)
set gSyurui = getAT(karuta,dtct)
addProp gHudaP, gUtasu, gSyurui
deleteAT karuta, dtct
end
on PlaceCardP SP
global gUtasu,gCastPlus
set gTemoti = gUtasu
set the castNum of sprite SP = gTemoti + gCastPlus
wait 5
-- updateStage
end
on HeldCardP
set ch = clickOn()
set ch2 = ch +10
if the puppet of sprite ch2 = TRUE then
PuppetSprite ch2,FALSE
Sound playfile 2,"\S_POKALT\BUTTON05"
else
if the puppet of sprite ch2 = FALSE then
PuppetSprite ch2,TRUE
set the type of sprite ch2 = 0
Sound playfile 2,"\S_POKALT\BUTTON05"
end if
end if
updateStage
end
on ChangeCardP
global gHeldHudaP,gHudaP
if the puppet of sprite 15 = FALSE then
play frame"HP1"
wait 5
end if
if the puppet of sprite 16 = FALSE then
play frame"HP2"
wait 5
end if
if the puppet of sprite 17 = FALSE then
play frame"HP3"
wait 5
end if
if the puppet of sprite 18 = FALSE then
play frame"HP4"
wait 5
end if
if the puppet of sprite 19 = FALSE then
play frame"HP5"
wait 5
end if
end
on PlaceCardP2 SP
global gUtasu,gHudaP
set gUtasu = getPropAT(gHudaP,SP - 4)
set gTemoti = gUtasu
set the castNum of sprite SP = gTemoti + 300
wait 5
updateStage
end
on ChangeCardP2
global gHeldHudaP,gHudaP,gUtasu,gCastPlus
if the puppet of sprite 15 = FALSE then
PlaceCardP2 5
Mekuru 5
play frame"HP1.2"
wait 5
end if
if the puppet of sprite 16 = FALSE then
PlaceCardP2 6
Mekuru 6
play frame"HP2.2"
wait 5
end if
if the puppet of sprite 17 = FALSE then
PlaceCardP2 7
Mekuru 7
play frame"HP3.2"
wait 5
end if
if the puppet of sprite 18 = FALSE then
PlaceCardP2 8
Mekuru 8
play frame"HP4.2"
wait 5
end if
if the puppet of sprite 19 = FALSE then
PlaceCardP2 9
Mekuru 9
play frame"HP5.2"
wait 5
end if
end