查看: 7301|回复: 5

[转载] QTE 連技系統漢化

[复制链接]
梦石
0
星屑
50
在线时间
42 小时
注册时间
2012-5-16
回帖
48
发表于 2012-5-29 10:54:37 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 FrozenDen 于 2012-5-29 11:06 编辑

Yanfly Engine Ace - Active Chain Skills v1.01 漢化版
實現連技,配合技能屬性和快物變身,如附加狀態[頭],怪物有[頭]弱點,血量下降到一定水平變身,
可實部位破壞,專攻弱點等等。
[示範影片(YouTube)]
希望幫到大家{:2_275:}
  1. #==============================================================================
  2. #
  3. # ▼ Yanfly Engine Ace - Active Chain Skills v1.01
  4. # -- Last Updated: 2011.12.22
  5. # -- Level: Hard
  6. # -- Requires: n/a
  7. #
  8. #==============================================================================

  9. $imported = {} if $imported.nil?
  10. $imported["YEA-ActiveChainSkills"] = true

  11. #==============================================================================
  12. # ▼ Updates
  13. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  14. # 2011.12.22 - Better updating speed for window.
  15. # 2011.12.18 - Started Script and Finished.
  16. #
  17. #==============================================================================
  18. # ▼ Introduction
  19. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  20. # 這腳本實現了主動連技的可能性,當帶有連技屬性的技能發動時,畫面左下方會出現
  21. # 可以連甚麼技的訊息列表,透過簡單QTE,能立刻發動下一招連技。理論上,只要有足夠
  22. # 的資源(MP, TP) 和連技屬性的設定,是可以無限連技的。
  23. #==============================================================================
  24. # ▼ Instructions
  25. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  26. # To install this script, open up your script editor and copy/paste this script
  27. # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
  28. #
  29. # -----------------------------------------------------------------------------
  30. # 以下是要放進[技能][註]的東東
  31. # -----------------------------------------------------------------------------
  32. # <chain skill L: x>
  33. # <chain skill R: x>
  34. # <chain skill X: x>
  35. # <chain skill Y: x>
  36. # <chain skill Z: x>
  37. # 這個是給予可連技屬性的東東,X 是技能的編號, 013,102 之類的。放了進去就是代表
  38. # 此技能能連去編號XXX 的技能。當沒有設定時,如只設定了Skill X,Y,Z ,L和R 是不
  39. # 會在連技訊息列表中出現。而不夠資源如MP,TP 時,連技訊息列表中該技能就會黑掉。
  40. # <chain only>
  41. # 這個東東是令該技能在正常技能表中不能選擇,只能透過連技去發動。
  42. #==============================================================================
  43. # ▼ Compatibility
  44. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  45. # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
  46. # it will run with RPG Maker VX without adjusting.
  47. #
  48. # While this script doesn't interfere with Input Combo Skills, it will most
  49. # likely be unable to used in conjunction with Input Combo Skills. I will not
  50. # provide support for any errors that may occur from this, nor will I be
  51. # responsible for any damage doing this may cause your game.
  52. #
  53. #==============================================================================

  54. module YEA
  55.   module ACTIVE_CHAIN
  56.    
  57.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  58.     # - Chain Skill Settings -
  59.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  60.     # Adjust general settings here. These settings adjust the sound effect
  61.     # played when an active skill is selected and what the minimum time window
  62.     # is for an active chain skill.
  63.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  64.     # 下面是連技成功時的音效,可改。
  65.     ACTIVE_SKILL_SOUND = RPG::SE.new("Skill2", 80, 100)
  66.    
  67.     # 下面是設定連技訊息列表出現的時間長度,也就是QTE 的限時。
  68.     MINIMUM_TIME = 120
  69.    
  70.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  71.     # - Chain Skill Text -
  72.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  73.     # 這裡是設定連技訊息列表內容的地方,除了Title 外,都可用text codes.
  74.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  75.     CHAIN_TITLE  = "Active Chain Skills"
  76.     TITLE_SIZE   = 20
  77.     L_SKILL_ON   = "\eC[17]Q\eC[0]Chain: "
  78.     L_SKILL_OFF  = "\eC[7]QChain: "
  79.     L_SKILL_ACT  = "\eC[17]QChain: "
  80.     R_SKILL_ON   = "\eC[17]W\eC[0]Chain: "
  81.     R_SKILL_OFF  = "\eC[7]WChain: "
  82.     R_SKILL_ACT  = "\eC[17]WChain: "
  83.     X_SKILL_ON   = "\eC[17]A\eC[0]ttack: "
  84.     X_SKILL_OFF  = "\eC[7]Attack: "
  85.     X_SKILL_ACT  = "\eC[17]Attack: "
  86.     Y_SKILL_ON   = "\eC[17]S\eC[0]trike: "
  87.     Y_SKILL_OFF  = "\eC[7]Strike: "
  88.     Y_SKILL_ACT  = "\eC[17]Strike: "
  89.     Z_SKILL_ON   = "\eC[17]D\eC[0]efend: "
  90.     Z_SKILL_OFF  = "\eC[7]Defend: "
  91.     Z_SKILL_ACT  = "\eC[17]Defend: "
  92.    
  93.   end # ACTIVE_CHAIN
  94. end # YEA

  95. #==============================================================================
  96. # ▼ Editting anything past this point may potentially result in causing
  97. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  98. # halitosis so edit at your own risk.
  99. #==============================================================================

  100. module YEA
  101.   module REGEXP
  102.   module SKILL
  103.    
  104.     CHAIN_ONLY  = /<(?:CHAIN_ONLY|chain only)>/i
  105.     CHAIN_SKILL = /<(?:CHAIN_SKILL|chain skill)[ ]([LRXYZ]):[ ](\d+)>/i
  106.    
  107.   end # SKILL
  108.   end # REGEXP
  109. end # YEA

  110. #==============================================================================
  111. # ■ DataManager
  112. #==============================================================================

  113. module DataManager
  114.   
  115.   #--------------------------------------------------------------------------
  116.   # alias method: load_database
  117.   #--------------------------------------------------------------------------
  118.   class <<self; alias load_database_acs load_database; end
  119.   def self.load_database
  120.     load_database_acs
  121.     load_notetags_acs
  122.   end
  123.   
  124.   #--------------------------------------------------------------------------
  125.   # new method: load_notetags_acs
  126.   #--------------------------------------------------------------------------
  127.   def self.load_notetags_acs
  128.     for skill in $data_skills
  129.       next if skill.nil?
  130.       skill.load_notetags_acs
  131.     end
  132.   end
  133.   
  134. end # DataManager

  135. #==============================================================================
  136. # ■ RPG::Skill
  137. #==============================================================================

  138. class RPG::Skill < RPG::UsableItem
  139.   
  140.   #--------------------------------------------------------------------------
  141.   # public instance variables
  142.   #--------------------------------------------------------------------------
  143.   attr_accessor :chain_only
  144.   attr_accessor :chain_skill
  145.   
  146.   #--------------------------------------------------------------------------
  147.   # common cache: load_notetags_acs
  148.   #--------------------------------------------------------------------------
  149.   def load_notetags_acs
  150.     @chain_only = false
  151.     @chain_skill = {}
  152.     #---
  153.     self.note.split(/[\r\n]+/).each { |line|
  154.       case line
  155.       #---
  156.       when YEA::REGEXP::SKILL::CHAIN_ONLY
  157.         @chain_only = true
  158.       when YEA::REGEXP::SKILL::CHAIN_SKILL
  159.         case $1.upcase
  160.         when "L"; @chain_skill[:L] = $2.to_i
  161.         when "R"; @chain_skill[:R] = $2.to_i
  162.         when "X"; @chain_skill[:X] = $2.to_i
  163.         when "Y"; @chain_skill[:Y] = $2.to_i
  164.         when "Z"; @chain_skill[:Z] = $2.to_i
  165.         else; next
  166.         end
  167.       #---
  168.       end
  169.     } # self.note.split
  170.     #---
  171.   end
  172.   
  173. end # RPG::UsableItem

  174. #==============================================================================
  175. # ■ Game_Action
  176. #==============================================================================

  177. class Game_Action
  178.   
  179.   #--------------------------------------------------------------------------
  180.   # new method: set_active_chain_skill
  181.   #--------------------------------------------------------------------------
  182.   def set_active_chain_skill(skill_id)
  183.     set_skill(skill_id)
  184.     @target_index = subject.current_action.target_index
  185.     @active_chain_skill = true
  186.   end
  187.   
  188.   #--------------------------------------------------------------------------
  189.   # alias method: valid?
  190.   #--------------------------------------------------------------------------
  191.   alias game_action_valid_acs valid?
  192.   def valid?
  193.     subject.enable_active_chain(true) if @active_chain_skill
  194.     result = game_action_valid_acs
  195.     subject.enable_active_chain(false) if @active_chain_skill
  196.     return result
  197.   end
  198.   
  199. end # Game_Action

  200. #==============================================================================
  201. # ■ Game_BattlerBase
  202. #==============================================================================

  203. class Game_BattlerBase
  204.   
  205.   #--------------------------------------------------------------------------
  206.   # alias method: skill_conditions_met?
  207.   #--------------------------------------------------------------------------
  208.   alias game_battlerbase_skill_conditions_met_acs skill_conditions_met?
  209.   def skill_conditions_met?(skill)
  210.     return false if chain_skill_restriction?(skill)
  211.     return game_battlerbase_skill_conditions_met_acs(skill)
  212.   end
  213.   
  214.   #--------------------------------------------------------------------------
  215.   # new method: chain_skill_restriction?
  216.   #--------------------------------------------------------------------------
  217.   def chain_skill_restriction?(skill)
  218.     return false unless actor?
  219.     return false unless $game_party.in_battle
  220.     return false unless skill.chain_only
  221.     return !@active_chain_enabled
  222.   end
  223.   
  224.   #--------------------------------------------------------------------------
  225.   # alias method: hp=
  226.   #--------------------------------------------------------------------------
  227.   alias game_battlerbase_hpequals_acs hp=
  228.   def hp=(value)
  229.     game_battlerbase_hpequals_acs(value)
  230.     return unless SceneManager.scene_is?(Scene_Battle)
  231.     return unless actor?
  232.     return if value == 0
  233.     SceneManager.scene.refresh_active_chain_skill_window(self)
  234.   end
  235.   
  236.   #--------------------------------------------------------------------------
  237.   # alias method: mp=
  238.   #--------------------------------------------------------------------------
  239.   alias game_battlerbase_mpequals_acs mp=
  240.   def mp=(value)
  241.     game_battlerbase_mpequals_acs(value)
  242.     return unless SceneManager.scene_is?(Scene_Battle)
  243.     return unless actor?
  244.     return if value == 0
  245.     SceneManager.scene.refresh_active_chain_skill_window(self)
  246.   end
  247.   
  248.   #--------------------------------------------------------------------------
  249.   # alias method: tp=
  250.   #--------------------------------------------------------------------------
  251.   alias game_battlerbase_tpequals_acs tp=
  252.   def tp=(value)
  253.     game_battlerbase_tpequals_acs(value)
  254.     return unless SceneManager.scene_is?(Scene_Battle)
  255.     return unless actor?
  256.     return if value == 0
  257.     SceneManager.scene.refresh_active_chain_skill_window(self)
  258.   end
  259.   
  260. end # Game_BattlerBase

  261. #==============================================================================
  262. # ■ Game_Battler
  263. #==============================================================================

  264. class Game_Battler < Game_BattlerBase
  265.   
  266.   #--------------------------------------------------------------------------
  267.   # alias method: on_battle_start
  268.   #--------------------------------------------------------------------------
  269.   alias game_battler_on_battle_start_acs on_battle_start
  270.   def on_battle_start
  271.     game_battler_on_battle_start_acs
  272.     @active_chain_enabled = false
  273.   end
  274.   
  275.   #--------------------------------------------------------------------------
  276.   # alias method: on_battle_end
  277.   #--------------------------------------------------------------------------
  278.   alias game_battler_on_battle_end_acs on_battle_end
  279.   def on_battle_end
  280.     game_battler_on_battle_end_acs
  281.     @active_chain_enabled = false
  282.   end
  283.   
  284.   #--------------------------------------------------------------------------
  285.   # new method: enable_active_chain
  286.   #--------------------------------------------------------------------------
  287.   def enable_active_chain(active)
  288.     return unless actor?
  289.     @active_chain_enabled = active
  290.   end
  291.   
  292.   #--------------------------------------------------------------------------
  293.   # new method: add_active_skill_chain
  294.   #--------------------------------------------------------------------------
  295.   def add_active_skill_chain(skill_id)
  296.     chain_skill = Game_Action.new(self)
  297.     chain_skill.set_active_chain_skill(skill_id)
  298.     @actions.insert(1, chain_skill)
  299.   end
  300.   
  301. end # Game_Battler

  302. #==============================================================================
  303. # ■ Window_ChainSkillList
  304. #==============================================================================

  305. class Window_ChainSkillList < Window_Base
  306.   
  307.   #--------------------------------------------------------------------------
  308.   # initialize
  309.   #--------------------------------------------------------------------------
  310.   def initialize
  311.     dw = [Graphics.width/2, 320].max
  312.     super(-standard_padding, 0, dw, fitting_height(6))
  313.     self.z = 200
  314.     self.opacity = 0
  315.     hide
  316.   end
  317.   
  318.   #--------------------------------------------------------------------------
  319.   # reveal
  320.   #--------------------------------------------------------------------------
  321.   def reveal(battler, skill)
  322.     @battler = battler
  323.     @skill = skill
  324.     @chain_skills = []
  325.     for key in skill.chain_skill
  326.       next if key[1].nil?
  327.       next if $data_skills[key[1]].nil?
  328.       next unless @battler.skills.include?($data_skills[key[1]])
  329.       @chain_skills.push($data_skills[key[1]])
  330.     end
  331.     return if @chain_skills == []
  332.     self.y = Graphics.height - fitting_height(4)
  333.     self.y -= fitting_height(@chain_skills.size + 1)
  334.     show
  335.     activate
  336.     @enabled = true
  337.     refresh
  338.   end
  339.   
  340.   #--------------------------------------------------------------------------
  341.   # button=
  342.   #--------------------------------------------------------------------------
  343.   def button=(button)
  344.     @button = button
  345.     @enabled = false
  346.     refresh unless @button.nil?
  347.   end
  348.   
  349.   #--------------------------------------------------------------------------
  350.   # refresh_check
  351.   #--------------------------------------------------------------------------
  352.   def refresh_check(battler)
  353.     return if @battler != battler
  354.     refresh
  355.   end
  356.   
  357.   #--------------------------------------------------------------------------
  358.   # refresh
  359.   #--------------------------------------------------------------------------
  360.   def refresh
  361.     @button = nil if @enabled
  362.     contents.clear
  363.     draw_background_colour
  364.     draw_horz_line(0)
  365.     draw_combo_title
  366.     draw_chain_skills
  367.   end
  368.   
  369.   #--------------------------------------------------------------------------
  370.   # draw_background_colour
  371.   #--------------------------------------------------------------------------
  372.   def draw_background_colour
  373.     dh = line_height * (@chain_skills.size + 1)
  374.     rect = Rect.new(0, 0, contents.width, dh)
  375.     back_colour1 = Color.new(0, 0, 0, 192)
  376.     back_colour2 = Color.new(0, 0, 0, 0)
  377.     contents.gradient_fill_rect(rect, back_colour1, back_colour2)
  378.   end
  379.   
  380.   #--------------------------------------------------------------------------
  381.   # draw_horz_line
  382.   #--------------------------------------------------------------------------
  383.   def draw_horz_line(dy)
  384.     line_y = dy + line_height - 2
  385.     line_colour = normal_color
  386.     line_colour.alpha = 48
  387.     contents.fill_rect(0, line_y, contents.width, 2, line_colour)
  388.   end
  389.   
  390.   #--------------------------------------------------------------------------
  391.   # draw_combo_title
  392.   #--------------------------------------------------------------------------
  393.   def draw_combo_title
  394.     reset_font_settings
  395.     text = YEA::ACTIVE_CHAIN::CHAIN_TITLE
  396.     contents.font.size = YEA::ACTIVE_CHAIN::TITLE_SIZE
  397.     contents.font.bold = true
  398.     contents.font.italic = true
  399.     draw_text(12, 0, contents.width - 12, line_height, text)
  400.     reset_font_settings
  401.   end
  402.   
  403.   #--------------------------------------------------------------------------
  404.   # draw_chain_skills
  405.   #--------------------------------------------------------------------------
  406.   def draw_chain_skills
  407.     button_array = [:L, :R, :X, :Y, :Z]
  408.     dx = 24
  409.     dy = line_height
  410.     for button in button_array
  411.       next if @skill.chain_skill[button].nil?
  412.       chain_skill = $data_skills[@skill.chain_skill[button]]
  413.       next unless @battler.skills.include?(chain_skill)
  414.       text = text_setting(button, chain_skill)
  415.       text += sprintf("\eI[%d]", chain_skill.icon_index)
  416.       text += chain_skill.name
  417.       draw_text_ex(dx, dy, text)
  418.       dy += line_height
  419.     end
  420.   end
  421.   
  422.   #--------------------------------------------------------------------------
  423.   # text_setting
  424.   #--------------------------------------------------------------------------
  425.   def text_setting(button, skill)
  426.     active = button == @button
  427.     text = ""
  428.     case button
  429.     when :L
  430.       if @enabled && @battler.usable?(skill)
  431.         text = YEA::ACTIVE_CHAIN::L_SKILL_ON
  432.       elsif !@enabled && active
  433.         text = YEA::ACTIVE_CHAIN::L_SKILL_ACT
  434.       else
  435.         text = YEA::ACTIVE_CHAIN::L_SKILL_OFF
  436.       end
  437.     when :R
  438.       if @enabled && @battler.usable?(skill)
  439.         text = YEA::ACTIVE_CHAIN::R_SKILL_ON
  440.       elsif !@enabled && active
  441.         text = YEA::ACTIVE_CHAIN::R_SKILL_ACT
  442.       else
  443.         text = YEA::ACTIVE_CHAIN::R_SKILL_OFF
  444.       end
  445.     when :X
  446.       if @enabled && @battler.usable?(skill)
  447.         text = YEA::ACTIVE_CHAIN::X_SKILL_ON
  448.       elsif !@enabled && active
  449.         text = YEA::ACTIVE_CHAIN::X_SKILL_ACT
  450.       else
  451.         text = YEA::ACTIVE_CHAIN::X_SKILL_OFF
  452.       end
  453.     when :Y
  454.       if @enabled && @battler.usable?(skill)
  455.         text = YEA::ACTIVE_CHAIN::Y_SKILL_ON
  456.       elsif !@enabled && active
  457.         text = YEA::ACTIVE_CHAIN::Y_SKILL_ACT
  458.       else
  459.         text = YEA::ACTIVE_CHAIN::Y_SKILL_OFF
  460.       end
  461.     when :Z
  462.       if @enabled && @battler.usable?(skill)
  463.         text = YEA::ACTIVE_CHAIN::Z_SKILL_ON
  464.       elsif !@enabled && active
  465.         text = YEA::ACTIVE_CHAIN::Z_SKILL_ACT
  466.       else
  467.         text = YEA::ACTIVE_CHAIN::Z_SKILL_OFF
  468.       end
  469.     end
  470.     return text
  471.   end
  472.   
  473. end # Window_ChainSkillList

  474. #==============================================================================
  475. # ■ Scene_Battle
  476. #==============================================================================

  477. class Scene_Battle < Scene_Base
  478.   
  479.   #--------------------------------------------------------------------------
  480.   # alias method: create_all_windows
  481.   #--------------------------------------------------------------------------
  482.   alias scene_battle_create_all_windows_acs create_all_windows
  483.   def create_all_windows
  484.     scene_battle_create_all_windows_acs
  485.     create_chain_skill_window
  486.   end
  487.   
  488.   #--------------------------------------------------------------------------
  489.   # new method: create_chain_skill_window
  490.   #--------------------------------------------------------------------------
  491.   def create_chain_skill_window
  492.     @active_chain_skill_window = Window_ChainSkillList.new
  493.     @active_chain_skill_counter = 0
  494.   end
  495.   
  496.   #--------------------------------------------------------------------------
  497.   # alias method: use_item
  498.   #--------------------------------------------------------------------------
  499.   alias scene_battle_use_item_acs use_item
  500.   def use_item
  501.     @subject.enable_active_chain(true)
  502.     item = @subject.current_action.item
  503.     chain_skill_list_appear(true, item)
  504.     start_active_skill_counter(item)
  505.     scene_battle_use_item_acs
  506.     wait_active_skill_counter
  507.     chain_skill_list_appear(false, item)
  508.     @subject.enable_active_chain(false)
  509.   end
  510.   
  511.   #--------------------------------------------------------------------------
  512.   # new method: chain_skill_list_appear
  513.   #--------------------------------------------------------------------------
  514.   def chain_skill_list_appear(visible, skill)
  515.     return if @subject.nil?
  516.     return unless @subject.actor?
  517.     return unless skill.is_a?(RPG::Skill)
  518.     @active_chain_skill = 0
  519.     @current_chain_skill = skill
  520.     @active_chain_skill_window.reveal(@subject, skill) if visible
  521.     @active_chain_skill_window.hide unless visible
  522.   end
  523.   
  524.   #--------------------------------------------------------------------------
  525.   # new method: refresh_active_chain_skill_window
  526.   #--------------------------------------------------------------------------
  527.   def refresh_active_chain_skill_window(battler)
  528.     return unless @active_chain_skill_window.visible
  529.     @active_chain_skill_window.refresh_check(battler)
  530.   end
  531.   
  532.   #--------------------------------------------------------------------------
  533.   # new method: start_active_skill_counter
  534.   #--------------------------------------------------------------------------
  535.   def start_active_skill_counter(skill)
  536.     return unless @active_chain_skill_window.visible
  537.     @active_chain_skill_counter = YEA::ACTIVE_CHAIN::MINIMUM_TIME
  538.   end
  539.   
  540.   #--------------------------------------------------------------------------
  541.   # new method: wait_active_skill_counter
  542.   #--------------------------------------------------------------------------
  543.   def wait_active_skill_counter
  544.     return unless @active_chain_skill_window.visible
  545.     wait(@active_chain_skill_counter)
  546.   end
  547.   
  548.   #--------------------------------------------------------------------------
  549.   # new method: update_active_chain_skill_counter
  550.   #--------------------------------------------------------------------------
  551.   def update_active_chain_skill_counter
  552.     return if @active_chain_skill_counter == 0
  553.     @active_chain_skill_counter -= 1
  554.   end
  555.   
  556.   #--------------------------------------------------------------------------
  557.   # alias method: update_basic
  558.   #--------------------------------------------------------------------------
  559.   alias scene_battle_update_basic_acs update_basic
  560.   def update_basic
  561.     scene_battle_update_basic_acs
  562.     update_active_chain_skill_counter
  563.     update_active_chain_skill_select
  564.   end
  565.   
  566.   #--------------------------------------------------------------------------
  567.   # new method: update_active_chain_skill_select
  568.   #--------------------------------------------------------------------------
  569.   def update_active_chain_skill_select
  570.     return unless @active_chain_skill_window.visible
  571.     return if @active_chain_skill > 0
  572.     if Input.press?(:L)
  573.       check_active_chain_skill(:L)
  574.     elsif Input.press?(:R)
  575.       check_active_chain_skill(:R)
  576.     elsif Input.press?(:X)
  577.       check_active_chain_skill(:X)
  578.     elsif Input.press?(:Y)
  579.       check_active_chain_skill(:Y)
  580.     elsif Input.press?(:Z)
  581.       check_active_chain_skill(:Z)
  582.     end
  583.   end
  584.   
  585.   #--------------------------------------------------------------------------
  586.   # new method: check_active_chain_skill
  587.   #--------------------------------------------------------------------------
  588.   def check_active_chain_skill(button)
  589.     skill_id = @current_chain_skill.chain_skill[button]
  590.     return if skill_id.nil?
  591.     return if $data_skills[skill_id].nil?
  592.     chain_skill = $data_skills[skill_id]
  593.     return unless @subject.usable?(chain_skill)
  594.     return unless @subject.skills.include?(chain_skill)
  595.     @active_chain_skill_counter = 12
  596.     @active_chain_skill = skill_id
  597.     @active_chain_skill_window.button = button
  598.     YEA::ACTIVE_CHAIN::ACTIVE_SKILL_SOUND.play
  599.     @subject.add_active_skill_chain(skill_id)
  600.   end
  601.   
  602. end # Scene_Battle

  603. #==============================================================================
  604. #
  605. # ▼ End of File
  606. #
  607. #==============================================================================
复制代码

评分

参与人数 1星屑 +100 收起 理由
无双sxa + 100 感谢分享:)

查看全部评分

梦石
0
星屑
50
在线时间
78 小时
注册时间
2011-9-17
回帖
67
发表于 2012-5-29 20:15:45 | 显示全部楼层
支持一下,意思是可以像格斗游戏一样按出招式?

点评

不太像, 有點像Star Ocean 4的連技系統...就是多按1個鍵就連下去 比起連技連死敵人,這腳本應該是添加點戰術元素給遊戲為主。  发表于 2012-5-30 18:36
回复

使用道具 举报

梦石
0
星屑
50
在线时间
42 小时
注册时间
2012-5-16
回帖
48
 楼主| 发表于 2012-5-30 18:45:58 | 显示全部楼层
例如你把技能分成單體強攻,全體攻擊,或是狀態弱化。
或是技能有不同的附加屬性,例如技能A 有[上] [ 中] [下] 3 個版本
當全部都放在技能列  就會很多= =
透過連技系統,你可以放技能[A連技],再選上中下
回复

使用道具 举报

梦石
0
星屑
50
在线时间
78 小时
注册时间
2011-9-17
回帖
67
发表于 2012-6-2 12:28:10 | 显示全部楼层
FrozenDen 发表于 2012-5-30 18:45
例如你把技能分成單體強攻,全體攻擊,或是狀態弱化。
或是技能有不同的附加屬性,例如技能A 有[上] [ 中]  ...

好像复制不了啊,怎么办?


‘‘──ushiromiya于2012-6-2 23:52补充以下内容:

点了没反应

’’

点评

我貼中那段代碼右上有個' COPY ' 製,按那個就對啦  发表于 2012-6-2 20:03
http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/active-chain-skills/  发表于 2012-6-2 20:02
回复

使用道具 举报

梦石
0
星屑
50
在线时间
86 小时
注册时间
2013-1-7
回帖
62
发表于 2013-2-22 21:31:45 | 显示全部楼层
可不可以做那种有人拉住了你 然后要求连击的QTE 要求连按25下以上的
回复

使用道具 举报

梦石
0
星屑
50
在线时间
10 小时
注册时间
2013-1-23
回帖
4
发表于 2013-3-9 20:57:36 | 显示全部楼层
hanying1703 发表于 2013-2-22 21:31
可不可以做那种有人拉住了你 然后要求连击的QTE 要求连按25下以上的

同问,一直不知道,也找不到方法
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部