home *** CD-ROM | disk | FTP | other *** search
/ Fuji Wa La Te I Ka - Hyakunin Isshu Karuta / KARUTA.bin / wins / lib_st.dir / 00025_Script_25 < prev    next >
Text File  |  1995-11-13  |  3KB  |  139 lines

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