home *** CD-ROM | disk | FTP | other *** search
/ Fuji Wa La Te I Ka - Hyakunin Isshu Karuta / KARUTA.bin / wins / bbozu7.dir / 00075_Script_75 < prev    next >
Text File  |  1995-11-13  |  2KB  |  59 lines

  1. on BaYama
  2.   global gHuda,gBahuda,gMax,gWariaiB
  3.   if gHuda = 2 then
  4.     set the type of sprite 16 = 0
  5.     put "Φ═ΘD" && gBahuda into field"Φ═ΘD"
  6.     updateStage
  7.   else
  8.     if gHuda = 3 and not (gBahuda = 0) then
  9.       set gWariaiB = gBahuda * 10 / gMax
  10.       set the type of sprite 16 = 1
  11.       set the castNum of sprite 16 = 90 + integer ( gWariaiB )
  12.       put "Φ═ΘD" && gBahuda into field"Φ═ΘD"
  13.       updateStage
  14.     end if
  15.   end if
  16. end
  17.  
  18. on Yama
  19.   global gCount,gMax,gWariai,gLeftCT,gRightCT,gLeftMax,gRightMax
  20.   set gWariai = 9 - integer (( gLeftCT * 10 / gLeftMax ))
  21.   if integer (gLeftMax) - gLeftCT <= 0 then
  22.     set the type of sprite 14 = 0
  23.   else
  24.     set the type of sprite 14 = 1
  25.     set the castNum of sprite 14 = 55 + gWariai
  26.   end if
  27.   set gWariai = 9 - integer (( gRightCT * 10 / gRightMax ))
  28.   if integer (gRightMax) - gRightCT <= 0 then
  29.     set the type of sprite 15 = 0
  30.   else
  31.     set the type of sprite 15 = 1
  32.     set the castNum of sprite 15 = 44 + gWariai
  33.   end if
  34.   updateStage
  35. end
  36.  
  37. on SelectYama
  38.   global gLeftCT,gRightCT,gLeftMax,gRightMax,SeleYama,gMax,gCount
  39.   if gLeftCT >= gLeftMax then
  40.     set gLeftCT = gLeftMax
  41.     set SeleYama = 2
  42.   else
  43.     if gRightCT >= gRightMax then
  44.       set gRightCT = gRightMax
  45.       set SeleYama = 1
  46.     else
  47.       set SeleYama = random(2)
  48.     end if
  49.   end if
  50.   
  51.   if SeleYama = 1 then
  52.     set gLeftCT = gLeftCT + 1
  53.   else
  54.     if SeleYama = 2 then
  55.       set gRightCT = gRightCT + 1
  56.     end if
  57.   end if
  58. end
  59.