查看: 3048|回复: 5

[已经解决] 哈哈 求帮改个坐标

[复制链接]
梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
回帖
313
发表于 2013-11-9 16:43:05 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 魔力的觉醒 于 2013-11-9 18:30 编辑

请帮我改一下坐标  就差这个了!!!!!!!
  1. #==============================================================================
  2. # +++ MOG - Blitz Commands (v1.1) +++
  3. #==============================================================================
  4. # By Moghunter
  5. # [url]http://www.atelier-rgss.com/[/url]
  6. #==============================================================================
  7. # Permite ativar ações através de sequência de comandos.
  8. #==============================================================================
  9. # UTILIZAÇÃO
  10. #==============================================================================
  11. # No banco de dados de habilidades ou itens, coloque o seguinte comentário na
  12. # caixa de notas.
  13. #
  14. # <Blitz Command>
  15. #
  16. # * Lembre-se de definir a sequência de botões no editor de script antes de
  17. # usar a habilidade
  18. #
  19. # Para definir uma velocidade especifica na sequência de botões use o cometário
  20. # abaixo.
  21. #
  22. # <Blitz Speed = X>
  23. #
  24. #==============================================================================
  25. # Arquivos necessários. Graphics/System/
  26. #==============================================================================
  27. #
  28. # Blitz_Background.png
  29. # Blitz_Flash.png
  30. # Blitz_Layout.png
  31. # Blitz_Meter.png
  32. # Chain_Command.png
  33. #
  34. #==============================================================================

  35. #==============================================================================
  36. # ● Histórico (Version History)
  37. #==============================================================================
  38. # v 1.1 - Melhoria na performance
  39. #==============================================================================

  40. module MOG_BLITZ_COMMANDS
  41.   #Definição do tempo para inserir os comandos. (tempo X quantidade de comandos)
  42.   DEFAULT_INPUT_DURATION = 30
  43. #==============================================================================
  44. # BLITZ_INPUT = { SKILL_ID => [COMMAND] }
  45. #
  46. # SKILL_ID = ID da habilidade no banco de dados.
  47. # COMMANDS = Defina aqui a sequência de botões.
  48. #            (Para fazer a sequência use os comandos abaixo)   
  49. #  
  50. # "Down" ,"Up" ,"Left" ,"Right" ,"Shift" ,"D" ,"S" ,"A" ,"Z" ,"X" ,"Q" ,"W"
  51. #
  52. # Exemplo de utilização
  53. #
  54. # BLITZ_INPUT = {
  55. # 25=>["Down","D","S","Right"],
  56. # 59=>["Down","Up","Left","Right","Shift","D","S","A","Z","X","Q","W"],
  57. # 80=>["Shift","D"]
  58. # }   
  59. #==============================================================================
  60.   BLITZ_INPUT = {
  61.    22=>["Left","Up","Right","Down","Up","Down","Left","Right","Z"],
  62.    51=>["Up","Down","Left","Right","Z"],
  63.    53=>["X","Z","A","S","D"],
  64.    61=>["Z","D","X","Right","Left"],
  65.    62=>["Right","Left","Right","Q","Z","Z","D","X","Right","Left"],
  66.    66=>["Right","Up","Up","Z"],
  67.    69=>["X","Right","Left","Z","Z"],
  68.    141=>["Down","Right","Down","Right","A"],
  69.    999=>["Left","Right","Left","Right","Left","Right","Q","Z","Up","A","S",
  70.         "Down","D","Z","Right","Up","Up","Z","W","Left","Down","D","A","W"]
  71. }  
  72. #Ativar animação da imagem de fundo.
  73. BACKGROUND_ENABLE = false
  74. #Velocidade de deslize da imagem de fundo.
  75. BACKGROUND_SCROLL_SPEED = [30,0]
  76. #Posição do layout.
  77. BLITZ_POSITION = [0,0]
  78. #Posição do botão.
  79. BUTTON_POSITION = [265,170]
  80. #Posição do medidor de tempo.
  81. METER_POSITION = [63,249]
  82. #Posição do sprite Flash.
  83. FLASH_POSITION = [0,146]
  84. #Posição do ícone.
  85. ICON_POSITION = [0,0]
  86. #Posição do nome da skill
  87. SKILL_NAME_POSITION = [180,140]
  88. #Definição das palavras usadas no sistema blitz.
  89. BLITZ_WORDS = ["Missed!", "Timeover", "Success!"]
  90. #Configuração da fonte.
  91. FONT_NAME = "Georgia"
  92. FONT_SIZE = 22
  93. FONT_COLOR = Color.new(255,255,255)
  94. #Prioridade dos sprites.
  95. BLITZ_Z = 100
  96. #Som ao acertar.
  97. RIGHT_SE = "Chime1"
  98. #Som ao errar.
  99. WRONG_SE = "Buzzer1"  
  100. #Definição do som ao ativar o sistema.
  101. BLITZ_START_SE = "Saint9"
  102. end

  103. #==============================================================================
  104. # ■ Game Temp
  105. #==============================================================================
  106. class Game_Temp
  107.   attr_accessor :blitz_commands
  108.   
  109.   #--------------------------------------------------------------------------
  110.   # ● Initialize
  111.   #--------------------------------------------------------------------------      
  112.   alias mog_blits_commands_initialize initialize
  113.   def initialize
  114.       @blitz_commands = [false,0]
  115.       mog_blits_commands_initialize
  116.   end
  117.   
  118. end

  119. #==============================================================================
  120. # ■ Scene_Battle
  121. #==============================================================================
  122. class Scene_Battle < Scene_Base
  123.   
  124.   #--------------------------------------------------------------------------
  125.   # ● Use Item
  126.   #--------------------------------------------------------------------------  
  127.   alias mog_blitz_commands_use_item use_item
  128.   def use_item
  129.       if can_execute_blitz_input?
  130.          execute_blitz_input
  131.          unless $game_temp.blitz_commands[1] == nil
  132.              return if !$game_temp.blitz_commands[0]
  133.          end
  134.       end
  135.       mog_blitz_commands_use_item     
  136.   end
  137.   
  138.   #--------------------------------------------------------------------------
  139.   # ● Can Execute Blitz Input
  140.   #--------------------------------------------------------------------------   
  141.   def can_execute_blitz_input?
  142.       return false if !@subject.is_a?(Game_Actor)
  143.       for i in @subject.states
  144.           return false if i.restriction > 0
  145.       end   
  146.       return true
  147.   end
  148.   
  149.   #--------------------------------------------------------------------------
  150.   # ● Execute Blitz Input
  151.   #--------------------------------------------------------------------------   
  152.   def execute_blitz_input
  153.       $game_temp.blitz_commands[0] = false
  154.       action_id = @subject.current_action.item.note =~ /<Blitz Command>/ ? @subject.current_action.item.id : nil
  155.       $game_temp.blitz_commands[1] = action_id
  156.       return if action_id == nil
  157.       blitz_command_sequence = MOG_BLITZ_COMMANDS::BLITZ_INPUT[action_id]
  158.       if blitz_command_sequence != nil   
  159.          blitz_sq = Blitz_Commands.new(blitz_command_sequence, @subject ,action_id)
  160.          loop do
  161.               unless @spriteset.animation?
  162.                   blitz_sq.update
  163.                   Input.update
  164.               end
  165.               @spriteset.update
  166.               Graphics.update
  167.               break if blitz_sq.phase == 9
  168.          end
  169.          blitz_sq.dispose
  170.       end        
  171.   end
  172.   
  173. end

  174. #==============================================================================
  175. # Game Temp
  176. #==============================================================================
  177. class Game_Temp
  178.   
  179.   attr_accessor :cache_blitz_command
  180.   
  181.   #--------------------------------------------------------------------------
  182.   # ● Initialize
  183.   #--------------------------------------------------------------------------
  184.   alias mog_blitz_command_initialize initialize   
  185.   def initialize
  186.       mog_blitz_command_initialize
  187.       cache_blt_cmd
  188.   end
  189.   
  190.   #--------------------------------------------------------------------------
  191.   # ● Cache Blt Cmd
  192.   #--------------------------------------------------------------------------  
  193.   def cache_blt_cmd
  194.       @cache_blitz_command = []
  195.       @cache_blitz_command.push(Cache.system("Blitz_Background"))
  196.       @cache_blitz_command.push(Cache.system("IconSet"))
  197.       @cache_blitz_command.push(Cache.system("Blitz_Flash"))
  198.       @cache_blitz_command.push(Cache.system("Blitz_Meter"))
  199.       @cache_blitz_command.push(Cache.system("Blitz_Layout"))
  200.       @cache_blitz_command.push(Cache.system("Chain_Battle_Command"))
  201.   end
  202.   
  203. end


  204. #==============================================================================
  205. # ■ Spriteset Battle
  206. #==============================================================================
  207. class Spriteset_Battle
  208.    
  209.   #--------------------------------------------------------------------------
  210.   # ● Initialize
  211.   #--------------------------------------------------------------------------   
  212.   alias mog_blitz_commands_initialize initialize
  213.   def initialize
  214.       $game_temp.cache_blt_cmd
  215.       mog_blitz_commands_initialize     
  216.   end
  217. end  
  218. #==============================================================================
  219. # Blitz Commands
  220. #==============================================================================
  221. class Blitz_Commands
  222.   include MOG_BLITZ_COMMANDS
  223.   attr_accessor :phase
  224.   
  225.   #--------------------------------------------------------------------------
  226.   # ● Initialize
  227.   #--------------------------------------------------------------------------      
  228.   def initialize(sequence, subject,action_id)
  229.       @phase = 0
  230.       [url=home.php?mod=space&uid=95897]@actor[/url] = subject
  231.       [url=home.php?mod=space&uid=260100]@skill[/url] = $data_skills[action_id]
  232.       @skillname = @skill.name
  233.       @action_id = action_id
  234.       @chain_command = sequence
  235.       duration = @skill.note =~ /<Blitz Speed = (\d+)>/i ? $1.to_i : DEFAULT_INPUT_DURATION
  236.       @timer_max = duration * @chain_command.size
  237.       @timer_max = 1 if @timer_max < 1
  238.       @timer = @timer_max
  239.       [url=home.php?mod=space&uid=10462]@Com[/url] = 0
  240.       @com_index = 0
  241.       @new_x = 0
  242.       [url=home.php?mod=space&uid=297884]@END[/url] = false
  243.       Audio.se_play("Audio/SE/" + BLITZ_START_SE, 100, 100) rescue nil
  244.       create_sprites
  245.   end

  246.   #--------------------------------------------------------------------------
  247.   # ● Create Sprites
  248.   #--------------------------------------------------------------------------        
  249.   def create_sprites
  250.       create_background
  251.       create_layout
  252.       create_buttons
  253.       create_meter
  254.       create_flash
  255.       create_skill_name
  256.       create_icon      
  257.   end
  258.   
  259.   #--------------------------------------------------------------------------
  260.   # ● Create Background
  261.   #--------------------------------------------------------------------------        
  262.   def create_background
  263.       @background = Plane.new
  264.       @background.bitmap = $game_temp.cache_blitz_command[0]
  265.       @background.z = BLITZ_Z
  266.       @background.visible = BACKGROUND_ENABLE
  267.       @background.opacity = 0
  268.   end
  269.   
  270.   #--------------------------------------------------------------------------
  271.   # ● Create Icon
  272.   #--------------------------------------------------------------------------      
  273.   def create_icon
  274.       @icon_image = $game_temp.cache_blitz_command[1]
  275.       @icon_sprite = Sprite.new
  276.       @icon_sprite.bitmap = Bitmap.new(24,24)
  277.       @icon_sprite.z = BLITZ_Z + 3
  278.       @org_x2 = 80 + ICON_POSITION[0] - @center + SKILL_NAME_POSITION[0]
  279.       @icon_sprite.x = @org_x2      
  280.       @icon_sprite.y = ICON_POSITION[1] + SKILL_NAME_POSITION[1]     
  281.       icon_rect = Rect.new(@skill.icon_index % 16 * 24, @skill.icon_index / 16 * 24, 24, 24)
  282.       @icon_sprite.bitmap.blt(0,0, @icon_image, icon_rect)
  283.       @icon_sprite.opacity = 0
  284.   end  
  285.   
  286.   #--------------------------------------------------------------------------
  287.   # ● Initialize
  288.   #--------------------------------------------------------------------------      
  289.   def create_skill_name
  290.       @skill_name = Sprite.new
  291.       @skill_name.bitmap = Bitmap.new(200,32)
  292.       @skill_name.bitmap.font.name = FONT_NAME
  293.       @skill_name.bitmap.font.size = FONT_SIZE
  294.       @skill_name.z = BLITZ_Z + 3
  295.       @skill_name.y = SKILL_NAME_POSITION[1]
  296.       @skill_name.opacity = 0
  297.       refresh_skill_name
  298.   end
  299.   
  300.   #--------------------------------------------------------------------------
  301.   # ● Refresh Skill Name
  302.   #--------------------------------------------------------------------------        
  303.   def refresh_skill_name
  304.       cm = @skillname.to_s.split(//).size
  305.       @center = ((200 / @skill_name.bitmap.font.size) * cm / 2) + 5
  306.       @org_x = SKILL_NAME_POSITION[0]
  307.       @skill_name.x = @org_x  
  308.       @skill_name.bitmap.font.color = Color.new(0,0,0)
  309.       @skill_name.bitmap.draw_text(1,1,200,32,@skillname.to_s,1)  
  310.       @skill_name.bitmap.font.color = FONT_COLOR
  311.       @skill_name.bitmap.draw_text(0,0,200,32,@skillname.to_s,1)  
  312.   end  
  313.   
  314.   #--------------------------------------------------------------------------
  315.   # ● Create Flash
  316.   #--------------------------------------------------------------------------         
  317.   def create_flash
  318.       @flash_type = 0
  319.       @flash_image = $game_temp.cache_blitz_command[2]
  320.       @flash_cw = @flash_image.width
  321.       @flash_ch = @flash_image.height / 2
  322.       [url=home.php?mod=space&uid=14082]@Flash[/url] = Sprite.new
  323.       @flash.bitmap = Bitmap.new(@flash_cw,@flash_ch)
  324.       @flash.x = FLASH_POSITION[0]
  325.       @flash.y = FLASH_POSITION[1]
  326.       @flash.z = BLITZ_Z + 2
  327.       @flash.opacity = 0
  328.       @flash.blend_type = 1
  329.       refresh_flash
  330.   end
  331.   
  332.   #--------------------------------------------------------------------------
  333.   # ● Refresh Flash
  334.   #--------------------------------------------------------------------------            
  335.   def refresh_flash
  336.       @flash.bitmap.clear
  337.       f_scr = Rect.new(0,@flash_type * @flash_ch,@flash_cw,@flash_ch)
  338.       @flash.bitmap.blt(0,0,@flash_image,f_scr)
  339.   end

  340.   #--------------------------------------------------------------------------
  341.   # ● Create Meter
  342.   #--------------------------------------------------------------------------         
  343.   def create_meter
  344.       @meter_image = $game_temp.cache_blitz_command[3]
  345.       @meter_cw = @meter_image.width
  346.       @meter_ch = @meter_image.height
  347.       @meter_sprite = Sprite.new
  348.       @meter_sprite.bitmap = Bitmap.new(@meter_cw,@meter_ch)
  349.       @meter_sprite.x = METER_POSITION[0]
  350.       @meter_sprite.y = METER_POSITION[1]
  351.       @meter_sprite.z = BLITZ_Z + 2
  352.       @meter_sprite.opacity = 0
  353.       update_meter
  354.   end
  355.   
  356.   #--------------------------------------------------------------------------
  357.   # ● Update Meter
  358.   #--------------------------------------------------------------------------            
  359.   def update_meter
  360.       return if @meter_sprite == nil
  361.       @meter_sprite.bitmap.clear
  362.       m_width = @meter_cw * @timer / @timer_max
  363.       m_scr = Rect.new(0,0,m_width,@meter_ch)
  364.       @meter_sprite.bitmap.blt(0,0,@meter_image, m_scr)
  365.   end
  366.   
  367.   #--------------------------------------------------------------------------
  368.   # ● Create Layout
  369.   #--------------------------------------------------------------------------         
  370.   def create_layout
  371.       @layout = Sprite.new
  372.       @layout.bitmap = $game_temp.cache_blitz_command[4]
  373.       @layout.x = BLITZ_POSITION[0]
  374.       @layout.y = BLITZ_POSITION[1]
  375.       @layout.z = BLITZ_Z + 1
  376.       @layout.opacity = 0
  377.   end
  378.   
  379.   #--------------------------------------------------------------------------
  380.   # ● Create Buttons
  381.   #--------------------------------------------------------------------------      
  382.   def create_buttons
  383.      @image = $game_temp.cache_blitz_command[5]  
  384.      @image_cw = @image.width / 13
  385.      @image_ch = @image.height  
  386.      @image_cw_max = (@image_cw + 5) * @chain_command.size
  387.      @sprite = Sprite.new
  388.      @sprite.bitmap = Bitmap.new(@image_cw_max,@image_ch * 2)
  389.      if @chain_command.size <= 15
  390.         @sprite.x = (544 / 2) - ((@image_cw + 5) * @chain_command.size) / 2
  391.         @new_x = 0
  392.      else   
  393.         @sprite.x = (544 / 2)
  394.         @new_x = @sprite.x
  395.      end   
  396.      @sprite.x = BUTTON_POSITION[0]
  397.      @sprite.y = BUTTON_POSITION[1]
  398.      @sprite.z = BLITZ_Z + 1
  399.      @sprite.opacity = 0     
  400.      refresh_button
  401.   end  
  402.   
  403.   #--------------------------------------------------------------------------
  404.   # ● Refresh Button
  405.   #--------------------------------------------------------------------------         
  406.   def refresh_button
  407.       return if @sprite == nil
  408.       @sprite.bitmap.clear
  409.       index = 0
  410.       for i in @chain_command
  411.          command_list_check(i)
  412.          bitmap_src_rect = Rect.new(@com * @image_cw, 0, @image_cw, @image_ch)
  413.          if @com_index == index
  414.             @sprite.bitmap.blt(index * (@image_cw + 5) , 0, @image, bitmap_src_rect)
  415.          else
  416.             @sprite.bitmap.blt(index * (@image_cw + 5) , @image_ch, @image, bitmap_src_rect)
  417.          end
  418.          index += 1  
  419.       end        
  420.       @new_x = BUTTON_POSITION[0] - ((@image_cw + 5) * @com_index)
  421.   end

  422.   #--------------------------------------------------------------------------
  423.   # ● Dispose
  424.   #--------------------------------------------------------------------------        
  425.   def dispose
  426.       dispose_background
  427.       dispose_layout
  428.       dispose_buttons
  429.       dispose_meter
  430.       dispose_flash
  431.       dispose_name
  432.       dispose_icon_sprite      
  433.   end
  434.   
  435.   #--------------------------------------------------------------------------
  436.   # ● Dispose Background
  437.   #--------------------------------------------------------------------------         
  438.   def dispose_background
  439.       return if @background == nil
  440.       @background.dispose
  441.       @background = nil
  442.   end  
  443.   
  444.   #--------------------------------------------------------------------------
  445.   # ● Dispose Icon Sprite
  446.   #--------------------------------------------------------------------------        
  447.   def dispose_icon_sprite
  448.       return if @icon_sprite == nil
  449.       @icon_sprite.bitmap.dispose
  450.       @icon_sprite.dispose
  451.       @icon_sprite = nil
  452.   end  
  453.   
  454.   #--------------------------------------------------------------------------
  455.   # ● Dispose Name
  456.   #--------------------------------------------------------------------------        
  457.   def dispose_name
  458.       return if @skill_name == nil
  459.       @skill_name.bitmap.dispose
  460.       @skill_name.dispose
  461.       @skill_name = nil
  462.   end  
  463.   
  464.   #--------------------------------------------------------------------------
  465.   # ● Dispose Flash
  466.   #--------------------------------------------------------------------------            
  467.   def dispose_flash
  468.       return if @flash == nil
  469.       @flash.bitmap.dispose
  470.       @flash.dispose
  471.       @flash = nil
  472.   end   
  473.   
  474.   #--------------------------------------------------------------------------
  475.   # ● Dispose Meter
  476.   #--------------------------------------------------------------------------            
  477.   def dispose_meter
  478.       return if @meter_sprite == nil
  479.       @meter_sprite.bitmap.dispose
  480.       @meter_sprite.dispose
  481.       @meter_sprite = nil
  482.   end  
  483.   
  484.   #--------------------------------------------------------------------------
  485.   # ● Dispose Buttons
  486.   #--------------------------------------------------------------------------         
  487.   def dispose_buttons
  488.       return if @sprite == nil
  489.       @sprite.bitmap.dispose
  490.       @sprite.dispose
  491.       @sprite = nil
  492.   end  
  493.   
  494.   #--------------------------------------------------------------------------
  495.   # ● Dispose Layout
  496.   #--------------------------------------------------------------------------            
  497.   def dispose_layout
  498.       return if @layout == nil
  499.       @layout.dispose
  500.       @layout = nil
  501.   end  
  502.   
  503.   #--------------------------------------------------------------------------
  504.   # ● Update
  505.   #--------------------------------------------------------------------------        
  506.   def update
  507.       if @end and @sprite.x == @new_x
  508.          update_flash
  509.          update_background
  510.          update_end
  511.          return
  512.       end
  513.       update_background
  514.       update_timer
  515.       update_command
  516.       update_slide_command
  517.       update_meter
  518.       update_flash
  519.       update_opacity
  520.   end
  521.   
  522.   #--------------------------------------------------------------------------
  523.   # ● Update Opacity
  524.   #--------------------------------------------------------------------------         
  525.   def update_opacity
  526.       return if @sprite.opacity == nil
  527.       @sprite.opacity += 10
  528.       @layout.opacity += 10
  529.       @meter_sprite.opacity += 10
  530.       @skill_name.opacity += 10
  531.       @background.opacity += 10
  532.       @icon_sprite.opacity += 10   
  533.   end
  534.    
  535.   #--------------------------------------------------------------------------
  536.   # ● Update End
  537.   #--------------------------------------------------------------------------         
  538.   def update_end
  539.       fade_speed = 6
  540.       @icon_sprite.opacity -= fade_speed
  541.       @background.opacity -= fade_speed
  542.       @skill_name.opacity -= fade_speed
  543.       @sprite.opacity -= fade_speed
  544.       @layout.opacity -= fade_speed
  545.       @meter_sprite.opacity -= fade_speed
  546.       @phase = 9 if @background.opacity == 0
  547.   end
  548.   
  549.   #--------------------------------------------------------------------------
  550.   # ● Update Background
  551.   #--------------------------------------------------------------------------         
  552.   def update_background
  553.       return if @background == nil
  554.       @background.ox += BACKGROUND_SCROLL_SPEED[0]
  555.       @background.oy += BACKGROUND_SCROLL_SPEED[1]
  556.   end   
  557.   
  558.   #--------------------------------------------------------------------------
  559.   # ● Update Flash
  560.   #--------------------------------------------------------------------------              
  561.   def update_flash
  562.       return if @flash == nil
  563.       return if @flash.opacity == 0
  564.       @flash.opacity -= 10
  565.   end  
  566.   
  567.   #--------------------------------------------------------------------------
  568.   # ● Update Timer
  569.   #--------------------------------------------------------------------------         
  570.   def update_timer
  571.       return if @timer == 0
  572.       @timer -= 1
  573.       wrong_command(1) if @timer == 0
  574.   end
  575.   
  576.   #--------------------------------------------------------------------------
  577.   # ● Update Slide Command
  578.   #--------------------------------------------------------------------------         
  579.   def update_slide_command
  580.       return if @sprite == nil
  581.       return if @sprite.x == @new_x
  582.       slide_speed = 5 + ((@sprite.x - @new_x).abs / 5)      
  583.       @sprite.x -= slide_speed
  584.       @sprite.x = @new_x if @sprite.x < @new_x
  585.   end
  586.   
  587. end

  588. #==============================================================================
  589. # Blitz Commands
  590. #==============================================================================
  591. class Blitz_Commands
  592.   
  593. #--------------------------------------------------------------------------
  594. # ● Update Command
  595. #--------------------------------------------------------------------------      
  596. def update_command
  597.      return if @end
  598.      if Input.trigger?(Input::X)
  599.         check_command(0)
  600.      elsif Input.trigger?(Input::Z)  
  601.         check_command(1)
  602.      elsif Input.trigger?(Input::Y)  
  603.         check_command(2)
  604.      elsif Input.trigger?(Input::A)   
  605.         check_command(3)
  606.      elsif Input.trigger?(Input::C)           
  607.         check_command(4)
  608.      elsif Input.trigger?(Input::B)        
  609.         check_command(5)
  610.      elsif Input.trigger?(Input::L)        
  611.         check_command(6)
  612.      elsif Input.trigger?(Input::R)        
  613.         check_command(7)        
  614.      elsif Input.trigger?(Input::RIGHT)      
  615.         check_command(8)
  616.      elsif Input.trigger?(Input::LEFT)
  617.         check_command(9)
  618.      elsif Input.trigger?(Input::DOWN)
  619.         check_command(10)
  620.      elsif Input.trigger?(Input::UP)  
  621.         check_command(11)
  622.      end   
  623. end  
  624.    
  625. #--------------------------------------------------------------------------
  626. # ● command_list_check
  627. #--------------------------------------------------------------------------      
  628. def command_list_check(command)
  629.      case command
  630.          when "A"
  631.             @com = 0  
  632.          when "D"
  633.             @com = 1  
  634.          when "S"
  635.             @com = 2
  636.          when "Shift"
  637.             @com = 3
  638.          when "Z"
  639.             @com = 4
  640.          when "X"
  641.             @com = 5
  642.          when "Q"
  643.             @com = 6
  644.          when "W"
  645.             @com = 7            
  646.          when "Right"
  647.             @com = 8
  648.          when "Left"
  649.             @com = 9
  650.          when "Down"
  651.             @com = 10
  652.          when "Up"  
  653.             @com = 11
  654.          else   
  655.             @com = 12           
  656.      end
  657. end   

  658. #--------------------------------------------------------------------------
  659. # ● check_command
  660. #--------------------------------------------------------------------------            
  661. def check_command(com)
  662.      index = 0
  663.      if com != -1
  664.         right_input = false
  665.         for i in @chain_command
  666.            if index == @com_index
  667.               command_list_check(i)
  668.               right_input = true if @com == com
  669.            end  
  670.           index += 1  
  671.        end  
  672.      else  
  673.        command_list_check(@com_index)
  674.        right_input = true
  675.      end  
  676.      if right_input

  677.         next_command
  678.      else  
  679.         wrong_command(0)
  680.      end  
  681. end  
  682.    
  683. #--------------------------------------------------------------------------
  684. # ● Next Command
  685. #--------------------------------------------------------------------------            
  686. def next_command   
  687.      @flash.opacity = 255
  688.      @flash_type = 0
  689.      @com_index += 1   
  690.      Audio.se_play("Audio/SE/" + RIGHT_SE, 100, 100)
  691.      refresh_button
  692.      refresh_flash
  693.      if @com_index == @chain_command.size
  694.         @end = true
  695.         @skill_name.bitmap.clear
  696.         @skill_name.bitmap.draw_text(0,0,200,32,BLITZ_WORDS[2].to_s,1)
  697.         @icon_sprite.visible = false        
  698.         $game_temp.blitz_commands[0] = true
  699.      end
  700. end     

  701. #--------------------------------------------------------------------------
  702. # ● wrong_command
  703. #--------------------------------------------------------------------------              
  704. def wrong_command(type)
  705.      Audio.se_play("Audio/SE/" + WRONG_SE, 100, 100)
  706.      @flash.opacity = 255
  707.      @flash_type = 1
  708.      @skill_name.bitmap.clear
  709.      @end = true
  710.      wname = type == 0 ? BLITZ_WORDS[0] : BLITZ_WORDS[1]
  711.      $game_temp.blitz_commands[0] = false
  712.      @skill_name.bitmap.draw_text(0,0,200,32,wname.to_s,1)
  713.      @icon_sprite.visible = false
  714.      refresh_flash
  715. end
  716.    
  717. end

  718. $mog_rgss3_blitz_commands = true
复制代码

求帮忙!!
S4MK%{F6C2FQFHR30JE2DO9.jpg

点评

连贴,要求不明确!! 来人呀!!!收税金了!  发表于 2013-11-9 16:49

评分

参与人数 1星屑 -30 收起 理由
熊喵酱 -30 伸手+水

查看全部评分

你的意思就是要打架咯?
梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
回帖
313
 楼主| 发表于 2013-11-9 16:43:59 | 显示全部楼层
@tan12345  
你的意思就是要打架咯?
回复

使用道具 举报

梦石
0
星屑
50
在线时间
113 小时
注册时间
2013-8-7
回帖
26
发表于 2013-11-9 16:58:11 | 显示全部楼层
星星!!!!我是耀星!!

评分

参与人数 1星屑 -50 收起 理由
熊喵酱 -50 查水表

查看全部评分

回复

使用道具 举报

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
回帖
313
 楼主| 发表于 2013-11-9 17:09:26 | 显示全部楼层
让那几个字显示出来      还有技能那个图标让左移动一点
你的意思就是要打架咯?
回复

使用道具 举报

梦石
0
星屑
199
在线时间
248 小时
注册时间
2012-4-29
回帖
313
 楼主| 发表于 2013-11-9 17:09:47 | 显示全部楼层
1312017233 发表于 2013-11-9 16:58
星星!!!!我是耀星!!

.......................

评分

参与人数 1星屑 -50 收起 理由
熊喵酱 -50 查水表

查看全部评分

你的意思就是要打架咯?
回复

使用道具 举报

死亡颂唱者

梦石
0
星屑
1159
在线时间
1795 小时
注册时间
2011-10-21
回帖
2205

开拓者

发表于 2013-11-9 18:05:59 | 显示全部楼层
第88, 89行有个
  1. #Posição do nome da skill (技能名称位置)
  2. SKILL_NAME_POSITION = [180,140]
复制代码
把[ ]内的第一个数调大30左右试下

点评

谢谢 自己已经改好了!!!  发表于 2013-11-9 22:24

评分

参与人数 1星屑 +132 收起 理由
熊喵酱 + 132 认可答案

查看全部评分

这家伙很懒,什么也没有留下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部