home *** CD-ROM | disk | FTP | other *** search
/ Fuji Wa La Te I Ka - Hyakunin Isshu Karuta / KARUTA.bin / wins / stuff.dir / 00022_Script_22 < prev    next >
Text File  |  1995-11-10  |  4KB  |  151 lines

  1. on RETURN_M
  2.   go to movie "MENU"
  3. end
  4.  
  5. on startmovie 
  6.   global DANBGM
  7. --  set DANBGM = 1
  8.   set the timeoutLength to 25
  9. end
  10.  
  11. on stopmovie
  12.   puppetSound 0
  13.   repeat with n = 1 to 4
  14.     sound stop n
  15.   end repeat
  16.   set the timeoutScript to "Nothing"
  17.   set the mouseDownScript to "Nothing"
  18.   set the mouseUpScript to "Nothing"
  19. end
  20.  
  21. on CHECK_T
  22.   --  put the long time into vTIME
  23.   --  delete char ((the number of chars in vTIME)-2) to the number of chars in (vTIME) of vTIME
  24.   put word 1 of  the long time into vTIME
  25.   if value(vTIME) >= 12 then
  26.     put value(vTIME) - 12 into vHOUR
  27.     delete char 1 to 2 of vTIME
  28.     put vHOUR before vTIME
  29.   else
  30.     nothing
  31.   end if
  32.   put HMStoFrames(vTIME, 60, FALSE, FALSE) into vFrame
  33.   set the movieTime of sprite 2 to vFrame
  34.   put vFrame into field "TIME"
  35. end
  36.  
  37. on HURIKO
  38.   puppetSprite 30, true
  39.   set the timeoutScript to "FURIFURI"
  40. end
  41.  
  42. on FURIFURI
  43.   set the visible of sprite 30 = not the visible of sprite 30
  44.   starttimer
  45. end
  46.  
  47. on PushB
  48.   --   puppetSound "MEKURI"
  49.   put item 1 of the name of cast the castNum of sprite clickOn() into cName
  50.   set the castNum of sprite clickOn() = the number of cast (cName & ",DW")
  51.   repeat while stilldown()
  52.     if rollover(clickOn()) then
  53.       set the castNum of sprite clickOn() = the number of cast (cName & ",DW")
  54.     else
  55.       set the castNum of sprite clickon() = the Number of cast (cName & ",UP")
  56.     end if
  57.     updatestage
  58.   end repeat
  59.   set the castNum of sprite clickon() = the Number of cast (cName & ",UP")
  60.   updatestage 
  61.   if rollover(clickon()) then  return TRUE
  62.   return FALSE
  63.   
  64.   
  65.   puppetSound 0
  66.   
  67. end
  68. on goback
  69.   global gReMovie
  70.   sound stop 1
  71.   sound stop 2
  72.   go to "WAIT" of movie gReMovie
  73.   cursor -1
  74.   set the mouseDownScript to "Nothing"
  75.   set the mouseUpScript to "Nothing"
  76. end
  77.  
  78. on shortcutScript
  79.   cursor 282
  80.   set the mouseDownScript to "cursor 283"
  81.   set the mouseUpScript to "gonext"
  82. end
  83. on shortcutEnd
  84.   cursor -1
  85.   set the mouseDownScript to "Nothing"
  86.   set the mouseUpScript to "Nothing"
  87. end
  88. on gonext
  89.   sound stop 1
  90.   sound stop 2
  91.   go to marker(1)
  92.   cursor -1
  93.   set the mouseDownScript to "Nothing"
  94.   set the mouseUpScript to "Nothing"
  95. end
  96.  
  97.  
  98. on TeikaX
  99.   global gTeika,gTeika2
  100.   Sound playFile 2,"\S_POKALT\COIN"
  101.   if gTeika2 > 1000 then
  102.     set gKake = 100
  103.   else
  104.     if gTeika2 <= 1000 then
  105.       set gKake = 10
  106.     end if
  107.   end if
  108.   
  109.   repeat with Money = 1 to abs(gTeika2) / gKake
  110.     tell the stage
  111.       if gTeika < 0 then
  112.         set gTeika = 0
  113.         put gTeika into field"╔e╔C╔J"
  114.         exit repeat
  115.       else
  116.         if gTeika2 > 0 then
  117.           set gTeika3 = gTeika + Money * gKake
  118.           put gTeika3 into field"╔e╔C╔J"
  119.         else
  120.           if gTeika2 < 0 then
  121.             set gTeika3 = gTeika - Money * gKake
  122.             if gTeika3 < 0 then
  123.               set gTeika3 = 0
  124.               put gTeika3 into field"╔e╔C╔J"
  125.               exit repeat
  126.             end if
  127.             put gTeika3 into field"╔e╔C╔J"
  128.           end if
  129.         end if
  130.       end if
  131.     end tell
  132.   end repeat
  133.   Sound playFile 2,"\S_POKALT\MONEY_"
  134.   set gTeika = gTeika3
  135.   set gTeika2 = 0
  136. end  
  137. on idle
  138.   global DANBGM
  139. --  if DANBGM = 1 or DANBGM = 2 or DANBGM = -1 or DANBGM = -2 then    
  140.     if not soundBusy(1) then 
  141.       puppetsound "CREDITS2"
  142. --    end if    
  143.   else
  144. --    if DANBGM = 0 then 
  145. --      if not soundBusy(1) then 
  146.         nothing
  147.       end if 
  148. --    end if
  149. --  end if
  150. end
  151.