home *** CD-ROM | disk | FTP | other *** search
/ Fuji Wa La Te I Ka - Hyakunin Isshu Karuta / KARUTA.bin / wins / csinke6.dir / 00002_Script_2 < prev    next >
Text File  |  1995-11-13  |  4KB  |  137 lines

  1. on SelectCard
  2.   global Karuta,gHuda,gShinkei,gMax,gTeika,premium,gCount¼
  3. ,gMotihuda,dtct,hudaNum,gBombMix,gSiTime
  4.   
  5.   if gBombMix = gSiTime then
  6.     set gHuda = [102,102]
  7.     set x = 2
  8.     set  gBombMix = gBombMix + random(3)
  9.   else
  10.     set x = 0
  11.   end if
  12.   
  13.   repeat with i = 1 to gMax - x
  14.     set listct = count(karuta)
  15.     set dtct = random(listct)
  16.     set KamiNum = getPropAt(karuta,dtct)
  17.     --    preLoadCast KamiNum
  18.     --    preLoadCast KamiNum + 300
  19.     add gHuda,KamiNum
  20.     add gHuda,KamiNum
  21.     deleteAt karuta,dtct
  22.     if count(gHuda) = gMax then
  23.       exit repeat
  24.     end if
  25.   end repeat
  26.   repeat with j = 1 to gMax
  27.     set listct = count(gHuda)
  28.     set dtct = random(listct)
  29.     set hudaNum = getAt(gHuda,dtct)
  30.     add gShinkei,hudaNum
  31.     deleteAt gHuda,dtct
  32.   end repeat
  33. end
  34.  
  35. on Hantei
  36.   global Karuta,gHuda,gBahuda,gMax,gTeika,premium,gCount,gCountC¼
  37. ,tugi,hajime,Hazure,clicksprite1,clicksprite2,gCharaNum
  38.   
  39.   if clicksprite1 = clicksprite2 then exit
  40.   
  41.   set goukei = tugi - hajime
  42.   if goukei = 0 then
  43.     if hajime = 102 and gCount + gCountC < 14 then
  44.       CharaAtari
  45.       Sound playfile 2,"\S_SINKEI\BOMB_SND"
  46.       preLoadCast 88 , 94
  47.       repeat with i = 88 to 94
  48.         set the castNum of sprite 34 = i
  49.         updateStage
  50.       end repeat
  51.       UnLoadCast 88 , 94
  52.       set the type of sprite 33 = 0
  53.       cursor 0
  54.       set the visible of sprite 48 = 0
  55.       set the visible of sprite 36 = 0
  56.       set the visible of sprite 37 = 0
  57.       set the visible of sprite 38 = 0
  58.       set the visible of sprite 40 = 0
  59.       set the castNum of sprite 38 = 43
  60.       set the castNum of sprite 39 = 59
  61.       updateStage
  62.       wait 60
  63.       StartMovie
  64.       go to frame"Select"
  65.     else
  66.       if gCount + gCountC = 14 then
  67.         Atari
  68.       else
  69.         Atari
  70.         go to frame"level1"
  71.       end if
  72.     end if
  73.   else
  74.     Hazure
  75.     wait 60
  76.     set the castNum of sprite 36 = 33
  77.     if gCharaNum = 1 then
  78.       set the castNum of sprite 37 = 37
  79.     else
  80.       if gCharaNum = 2 then
  81.         set the castNum of sprite 37 = 39
  82.       else
  83.         if gCharaNum = 3 then
  84.           set the castNum of sprite 37 = 41
  85.         end if
  86.       end if
  87.     end if
  88.     go to frame"levelC1"
  89.   end if
  90. end
  91.  
  92. on Hyoji
  93.   global gMax,gCount,StartTicks,gLimit,jikan,gMekuriSu,gCountC,Kioku
  94.   
  95.   PuppetSprite 38,TRUE
  96.   PuppetSprite 39,TRUE
  97.   --  put "╟ü╟ì╟í╟²Γ╥Ωε" && gMekuriSu && "Γ╥" into field"╟ü╟ì╟╦Γ╥Ωε"
  98.   --  put "Θ∙╟°ΘD" && gCount && "δg" into field"Θ∙╟°ΘD"
  99.   --  put "Θ∙╟°ΘDC" && gCountC && "δg" into field"Θ∙╟°ΘDC"
  100.   set the castNum of sprite 38 =  gCount + 43
  101.   set the castNum of sprite 39 =  gCountC + 59
  102.   --  put Kioku into field"σoΓüΘ√Σæ"
  103.   if gCount + gCountC = (gMax / 2) then
  104.     set EndTime = the ticks
  105.     go to frame"finish"
  106.   end if
  107.   updateStage
  108. end
  109.  
  110. on Shohai
  111.   global gCount,gCountC
  112.   
  113.   if gCount > gCountC then
  114.     go to frame"WinNext"
  115.   else
  116.     if gCount < gCountC then
  117.       go to frame"LoseNext"
  118.     end if
  119.   end if
  120. end
  121.  
  122. on ScoreHyoji
  123.   global gTeika,gTeika2,gCount,gCountC,gCharaName,gSiLevel
  124.   put gCharaName & RETURN & "╟å╟╗╟²" into field "±║δO"
  125.   put gCountC && "δg" & RETURN & gCount && "δg" into field "Σl∞µΘD"
  126.   wait 30
  127.   if gCount > gCountC then
  128.     put "╟å╟╗╟²" & "╟├Φⁿ╟°" into field "playerWIN"
  129.     YouWin
  130.     set gTeika2 = 500 * gSiLevel
  131.     put gTeika2 && "╔e╔C╔JΣl∞µ" into field "Σl∞µ╔e╔C╔J"
  132.   else
  133.     if gCount < gCountC then
  134.       put gCharaName & "╟├Φⁿ╟°" into field "playerWIN"
  135.       Win
  136.     end if
  137.   end if