home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Japan / Panasonic- / funcity / paris / wave / MAP062J.dcr / 00003.ls < prev    next >
Encoding:
Text File  |  2017-09-21  |  5.0 KB  |  184 lines

  1. global ganimal1, ganimal2, ganimal3, gset1, gscore, animallist, ganimalsp, gpana, mm, buff
  2.  
  3. on initialize
  4.   puppetTempo(10)
  5.   set ganimal1 to 0
  6.   set ganimal2 to 0
  7.   set ganimal3 to 0
  8.   set gset1 to 0
  9.   set ganimalsp to 0
  10.   set gscore to 0
  11.   set gpana to 0
  12.   set animallist to [2: #l03, 3: #r06, 4: #r02, 5: #l09, 7: #l01, 8: #r04, 11: #l07, 12: #r10, 13: #r08, 14: #l05]
  13. end
  14.  
  15. on animalchanel
  16.   set ganimal1 to 1 + random(4)
  17.   set ganimal2 to 6 + random(2)
  18.   set ganimal3 to 10 + random(4)
  19. end
  20.  
  21. on pushanimal whichsound
  22.   puppetSound(whichsound)
  23.   set gscore to gscore + 1
  24.   set gpana to gscore * 50
  25.   set spnum to clickOn()
  26.   set nowcastnum to the castNum of sprite spnum
  27.   puppetSprite(spnum, 1)
  28.   repeat with n = -1 down to -3
  29.     set the castNum of sprite spnum to nowcastnum + n
  30.     updateStage()
  31.   end repeat
  32.   set gset1 to 0
  33.   wait(15)
  34. end
  35.  
  36. on pushokama
  37.   puppetSound("Oshoot")
  38.   set spnum to clickOn()
  39.   set nowcastnum to the castNum of sprite spnum
  40.   puppetSprite(spnum, 1)
  41.   set the castNum of sprite spnum to the number of cast "okama4"
  42.   updateStage()
  43.   tokuten()
  44.   updateStage()
  45.   wait(120)
  46.   repeat with n = 2 to 23
  47.     puppetSprite(n, 0)
  48.   end repeat
  49.   go("keikoku")
  50. end
  51.  
  52. on hideanimal1
  53.   set w to random(4)
  54.   if w = 1 then
  55.     set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 3
  56.     updateStage()
  57.     set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 2
  58.     updateStage()
  59.     set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 1
  60.     updateStage()
  61.     set gset1 to 0
  62.     set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp))
  63.     updateStage()
  64.   end if
  65. end
  66.  
  67. on setanimal1
  68.   if gset1 = 1 then
  69.     hideanimal1()
  70.   else
  71.     set animallist to [2: #l03, 3: #r06, 4: #r02, 5: #l09, 7: #l01, 8: #r04, 11: #l07, 12: #r10, 13: #r08, 14: #l05]
  72.     set w to random(3)
  73.     if w = 1 then
  74.       set ganimalsp to ganimal1
  75.     else
  76.       if w = 2 then
  77.         set ganimalsp to ganimal2
  78.       else
  79.         set ganimalsp to ganimal3
  80.       end if
  81.     end if
  82.     puppetSprite(ganimalsp, 1)
  83.     set i to random(4)
  84.     if i = 1 then
  85.       setaProp(animallist, ganimalsp, #okama)
  86.       set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 1
  87.       updateStage()
  88.       set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 2
  89.       updateStage()
  90.       set gset1 to 1
  91.       set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 3
  92.       updateStage()
  93.       hideanimal1()
  94.     else
  95.       set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 1
  96.       updateStage()
  97.       set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 2
  98.       updateStage()
  99.       set gset1 to 1
  100.       set the castNum of sprite ganimalsp to the number of cast string(getaProp(animallist, ganimalsp)) + 3
  101.       updateStage()
  102.       hideanimal1()
  103.     end if
  104.   end if
  105. end
  106.  
  107. on wait t
  108.   set endtime to the ticks + t
  109.   repeat while the ticks <= endtime
  110.     nothing()
  111.   end repeat
  112. end
  113.  
  114. on judge
  115.   if the timer >= (60 * 30) then
  116.     repeat with n = 2 to 23
  117.       puppetSprite(n, 0)
  118.     end repeat
  119.     go("high")
  120.   end if
  121. end
  122.  
  123. on tokuten
  124.   global ghitoketa, gfutaketa
  125.   if gscore < 10 then
  126.     put 0 & gscore into field "tensu"
  127.   else
  128.     put gscore into field "tensu"
  129.   end if
  130.   puppetSprite(20, 1)
  131.   puppetSprite(21, 1)
  132.   set ghitoketa to char 1 of field "tensu"
  133.   set gfutaketa to char 2 of field "tensu"
  134.   set the castNum of sprite 20 to ghitoketa + 100
  135.   set the castNum of sprite 21 to gfutaketa + 100
  136.   updateStage()
  137. end
  138.  
  139. on countdown
  140.   global gthitoketa, gtfutaketa
  141.   if the timer >= (60 * 21) then
  142.     put 0 & 30 - (the timer / 60) into field "time"
  143.   else
  144.     put 30 - (the timer / 60) into field "time"
  145.   end if
  146.   puppetSprite(22, 1)
  147.   puppetSprite(23, 1)
  148.   set gthitoketa to char 1 of field "time"
  149.   set gtfutaketa to char 2 of field "time"
  150.   set the castNum of sprite 22 to gthitoketa + 100
  151.   set the castNum of sprite 23 to gtfutaketa + 100
  152.   updateStage()
  153. end
  154.  
  155. on getpana
  156.   global gphitoketa, gpfutaketa, gpsanketa, gpyonketa, mm
  157.   if gpana < 10 then
  158.     put 0 & 0 & 0 & gpana into field "panatxt"
  159.   else
  160.     if gpana < 100 then
  161.       put 0 & 0 & gpana into field "panatxt"
  162.     else
  163.       if gpana < 1000 then
  164.         put 0 & gpana into field "panatxt"
  165.       else
  166.         put gpana into field "panatxt"
  167.       end if
  168.     end if
  169.   end if
  170.   puppetSprite(29, 1)
  171.   puppetSprite(30, 1)
  172.   puppetSprite(31, 1)
  173.   puppetSprite(32, 1)
  174.   set gphitoketa to char 1 of field "panatxt"
  175.   set gpfutaketa to char 2 of field "panatxt"
  176.   set gpsanketa to char 3 of field "panatxt"
  177.   set gpyonketa to char 4 of field "panatxt"
  178.   set the castNum of sprite 29 to gphitoketa + 100
  179.   set the castNum of sprite 30 to gpfutaketa + 100
  180.   set the castNum of sprite 31 to gpsanketa + 100
  181.   set the castNum of sprite 32 to gpyonketa + 100
  182.   updateStage()
  183. end
  184.