home *** CD-ROM | disk | FTP | other *** search
/ Fuji Wa La Te I Ka - Hyakunin Isshu Karuta / KARUTA.bin / wins / dan256.dir / 00288_Script_288 < prev    next >
Text File  |  1995-11-10  |  3KB  |  144 lines

  1. ON STARTMOVIE
  2.   Global vQ_NO,NGCt,DANBGM,DANSION,DAN_in,¼
  3. gMapPosV,gMapPosH,gCDPosV,gCDPosH,fromkaru
  4.   --  put 3 into vQ_No
  5.   
  6.   put 0 into NGCt
  7.   
  8.   if DANSION = 0 then
  9.     set gMapPosV = 440
  10.     set gMapPosH = 260
  11.     set gCDPosV = 206
  12.     set gCDPosH = 251
  13.     set DAN_in = 0
  14.     set fromkaru = 0
  15.     --    set DANSION = 1
  16.   else
  17.     --    set DANSION = 1
  18.     go to "DoorOpen"
  19.     --    set DAN_in = DAN_in + 1
  20.   end if
  21. END
  22.  
  23. on STOPMOVIE
  24.   global DANBGM
  25.   unLoad
  26.   puppetSound 0
  27.   sound stop 1
  28.   sound stop 2
  29.   sound stop 3
  30.   --  repeat with n = 1 to 4
  31.   --    sound stop n
  32.   --  end repeat
  33.   --  set DANBGM = 0
  34. end
  35.  
  36. on SELECT_QD
  37.   Global vQ_NO,DQlist,vQ
  38.   puppetSprite 1, true
  39.   put getat(DQlist,vQ_NO) into vQ
  40.   --  put item vQ_No of field "DQLIST2" into vQ
  41.   put vQ_No+1 into vQ_No
  42.   play "Q" & vQ
  43. end
  44.  
  45. on PushB
  46.   --puppetSound "MEKURI"
  47.   put item 1 of the name of cast the castNum of sprite clickOn() into cName
  48.   set the castNum of sprite clickOn() = the number of cast (cName & ",DW")
  49.   repeat while stilldown()
  50.     if rollover(clickOn()) then
  51.       set the castNum of sprite clickOn() = the number of cast (cName & ",DW")
  52.     else
  53.       set the castNum of sprite clickon() = the Number of cast (cName & ",UP")
  54.     end if
  55.     updatestage
  56.   end repeat
  57.   --  set the castNum of sprite clickon() = the Number of cast (cName & ",UP")
  58.   --  updatestage 
  59.   return TRUE
  60.   
  61.   puppetSound 0
  62.   
  63. end
  64.  
  65.  
  66. on idle
  67.   global DANBGM
  68.   if DANBGM = 1 then    
  69.     if not soundBusy(3) then 
  70.       SSS
  71.     end if    
  72.   else
  73.     if DANBGM = 0 or DANBGM = -1 or DANBGM = -2 then 
  74.       if not soundBusy(3) then 
  75.         nothing
  76.       end if 
  77.     else
  78.       if DANBGM = 2 then 
  79.         if not soundBusy(3) then 
  80.           sound playFile 3, "\S_DAN\KINMA_M"
  81.         end if  
  82.       end if
  83.     end if
  84.   end if
  85. end
  86.  
  87. on SSS
  88.   if random(4) < 4 then
  89.     put "DJ_1" into vS
  90.   else 
  91.     put "DJ_2" into vS
  92.   end if
  93.   
  94.   sound playFile 3, "\S_DAN\"&vS
  95. end
  96.  
  97. on OUTSTAGE
  98.   repeat with n = 6 to 21
  99.     puppetSprite n, False
  100.   end repeat 
  101.   tell the stage
  102.     repeat with n = 40 to 42
  103.       set the visible of sprite n = FALSE
  104.     end repeat
  105.   end tell
  106.   RETURN_M
  107.   sound stop 3
  108. end
  109.  
  110. on RETURN_M
  111.   global gTeika,GAMEYA_in,gMapPosH,gMapPosV,gCDPosH,¼
  112. gCDPosV,gCDCastNum,DANBGM
  113.   unLoad
  114.   if gTeika = 0 then
  115.     if DANBGM = 1 then
  116.       set DANBGM = -1
  117.     else
  118.       if DANBGM = 2 then
  119.         set DANBGM = -2
  120.       end if
  121.     end if
  122.     sound playFile 1,"\S_GAMEYA\TEIKA_0"
  123.     repeat while soundBusy(1)
  124.       nothing
  125.     end repeat
  126.     set gMapPosH = 256
  127.     set gMapPosV = 8
  128.     set gCDPosH = 250
  129.     set gCDPosV = 262
  130.     set gCDCastNum = 35
  131.     set GAMEYA_in = 1
  132.     go to movie"GAMEYA"
  133.     tell the stage
  134.       go to frame"toMAP"
  135.     end tell
  136.   else
  137.     tell the stage
  138.       TOWN
  139.       go to frame"start"
  140.     end tell
  141.   end if
  142.   
  143. end
  144.