设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3108|回复: 3

[已经解决] 如何制作特殊角色

[复制链接]

Lv2.观梦者

梦石
0
星屑
817
在线时间
85 小时
注册时间
2020-1-8
帖子
66
发表于 2020-2-22 16:23:28 | 显示全部楼层 |阅读模式

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

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

x
rt,怎么做出类似fgo的人物角色,就是攻击带语音,使用技能带语音,受击带语音,死亡带语音这种
钟山老龙,烛龙兎嵐字音苍

Lv4.逐梦者

梦石
1
星屑
14499
在线时间
2086 小时
注册时间
2017-9-28
帖子
662
发表于 2020-2-22 20:11:51 | 显示全部楼层
  1. #==============================================================================
  2. # +++ MOG - 战斗语音 (V1.4) +++
  3. #==============================================================================
  4. # By Moghunter
  5. # https://atelierrgss.wordpress.com/
  6. #==============================================================================
  7. # 战斗时角色/敌人行动、受伤等会播放的语音
  8. #==============================================================================
  9. # ● Histórico (Version History)
  10. #==============================================================================
  11. # v1.4 - Melhoria na compatibilidade.
  12. #==============================================================================
  13. $imported = {} if $imported.nil?
  14. $imported[:mog_battle_cry] = true

  15. module MOG_BATTLE_CRY
  16.   
  17.   # ☢注意!!☢ 以下勿动.^_^
  18.   ACTOR_SKILL = []
  19.   ACTOR_ITEM = []
  20.   ACTOR_GENERAL_ACTION = []
  21.   ACTOR_DAMAGE = []
  22.   ACTOR_RECOVER = []
  23.   ACTOR_DEFEATED = []
  24.   ACTOR_BATTLE_START = []  
  25.   ACTOR_BATTLE_END = []
  26.   ACTOR_BATTLE_ESCAPE = []
  27.   ACTOR_TURN_ACTIVE = []
  28.   ACTOR_LEVEL_UP = []  
  29.   ENEMY_SKILL = []
  30.   ENEMY_GENERAL_ACTION = []
  31.   ENEMY_DAMAGE = []
  32.   ENEMY_RECOVER = []
  33.   ENEMY_DEFEATED = []
  34.   
  35.   # ----------------------------------------------------------------------------
  36.   # 音量设定.
  37.   # ----------------------------------------------------------------------------
  38.   
  39.   VOLUME = 130
  40. #===============================================================================
  41. #  
  42. #  格式:
  43. #  类型[角色id] = ["文件名1","文件名2"……]
  44. #
  45.   #----------------------------------------------------------------------------
  46.   # 战斗开始
  47.   #----------------------------------------------------------------------------  
  48.   ACTOR_BATTLE_START[1] = ["V_ACT1_START_1","V_ACT1_START_2"]
  49.   ACTOR_BATTLE_START[2] = ["V_ACT2_START_1","V_ACT2_START_2","V_ACT2_START_3"]
  50.   ACTOR_BATTLE_START[3] = ["V_ACT3_START_1","V_ACT3_START_2"]
  51.   ACTOR_BATTLE_START[4] = ["V_ACT4_START_1","V_ACT4_START_2","V_ACT4_START_3"]
  52.   
  53.   #----------------------------------------------------------------------------
  54.   # 战斗结束
  55.   #----------------------------------------------------------------------------   
  56.   ACTOR_BATTLE_END[1] = ["V_ACT1_WIN_1","V_ACT1_WIN_2"]
  57.   ACTOR_BATTLE_END[2] = ["V_ACT2_WIN_1","V_ACT2_WIN_2","V_ACT2_WIN_3"]
  58.   ACTOR_BATTLE_END[3] = ["V_ACT3_WIN_1","V_ACT3_WIN_2","V_ACT3_WIN_3"]
  59.   ACTOR_BATTLE_END[4] = ["V_ACT4_WIN_1","V_ACT4_WIN_2"]
  60.   
  61.   #----------------------------------------------------------------------------
  62.   # 撤退
  63.   #----------------------------------------------------------------------------      
  64.   ACTOR_BATTLE_ESCAPE[1] = ["V_ACT1_SKILL_9"]
  65.   ACTOR_BATTLE_ESCAPE[2] = ["V_ACT2_SKILL_4"]
  66.   ACTOR_BATTLE_ESCAPE[3] = ["V_ACT3_SKILL_4"]
  67.   ACTOR_BATTLE_ESCAPE[4] = ["V_ACT4_SKILL_7"]
  68.   
  69.   #----------------------------------------------------------------------------
  70.   # 轮到该角色行动时
  71.   #----------------------------------------------------------------------------
  72.   # Funciona apenas com script MOG AT SYSTEM.
  73.   ACTOR_TURN_ACTIVE[1] = ["V_ACT1_TURN_1","V_ACT1_TURN_2","V_ACT1_TURN_3"]
  74.   ACTOR_TURN_ACTIVE[2] = ["V_ACT2_TURN_1","V_ACT2_TURN_2","V_ACT2_TURN_3"]
  75.   ACTOR_TURN_ACTIVE[3] = ["V_ACT3_TURN_1","V_ACT3_TURN_2","V_ACT3_TURN_3"]
  76.   ACTOR_TURN_ACTIVE[4] = ["V_ACT4_TURN_1","V_ACT4_TURN_2","V_ACT4_TURN_3"]  
  77.   
  78.   #----------------------------------------------------------------------------
  79.   # 升级
  80.   #----------------------------------------------------------------------------  
  81.   ACTOR_LEVEL_UP[1] = ["V_ACT1_TURN_1"]
  82.   ACTOR_LEVEL_UP[2] = ["V_ACT2_TURN_1"]
  83.   ACTOR_LEVEL_UP[3] = ["V_ACT3_TURN_1"]
  84.   ACTOR_LEVEL_UP[4] = ["V_ACT4_TURN_1"]
  85.   
  86.   #----------------------------------------------------------------------------
  87.   # 角色使用技能
  88.   #----------------------------------------------------------------------------
  89.   
  90.   # 通用设定格式:
  91.   #
  92.   # ACTOR_SKILL[ A ] = {  B=>["C","C","C"],
  93.   #
  94.   # A - 角色ID.
  95.   # B - 技能ID.
  96.   # C - 语音文件名.
  97.   
  98.   ACTOR_SKILL[1] = {
  99.   1=>["V_ACT1_ATTACK_1","V_ACT1_ATTACK_2","V_ACT1_ATTACK_3"],
  100.   2=>["V_ACT1_WIN_1","V_ACT1_WIN_2"]
  101.   }  
  102.   
  103.   ACTOR_SKILL[2] = {
  104.   1=>["V_ACT2_ATTACK_1","V_ACT2_ATTACK_2","V_ACT2_ATTACK_3"],
  105.   2=>["V_ACT2_WIN_1","V_ACT2_WIN_2","V_ACT2_WIN_3"],
  106.   26=>["V_ACT2_SKILL_6","V_ACT2_SKILL_7","V_ACT2_SKILL_8"],
  107.   29=>["V_ACT2_SKILL_6","V_ACT2_SKILL_7","V_ACT2_SKILL_8"],
  108.   32=>["V_ACT2_SKILL_6","V_ACT2_SKILL_7","V_ACT2_SKILL_8"],
  109.   33=>["V_ACT2_SKILL_6","V_ACT2_SKILL_7","V_ACT2_SKILL_8"],
  110.   }
  111.   
  112.   ACTOR_SKILL[3] = {
  113.   1=>["V_ACT3_ATTACK_1","V_ACT3_ATTACK_2","V_ACT3_ATTACK_3"],
  114.   2=>["V_ACT3_SKILL_4"],
  115.   26=>["V_ACT3_SKILL_3","V_ACT3_SKILL_6","V_ACT3_SKILL_7"],
  116.   76=>["V_ACT3_SKILL_3","V_ACT3_SKILL_6","V_ACT3_SKILL_7"],
  117.   77=>["V_ACT3_SKILL_3","V_ACT3_SKILL_6","V_ACT3_SKILL_7"],
  118.   78=>["V_ACT3_SKILL_3","V_ACT3_SKILL_6","V_ACT3_SKILL_7"]
  119.   }
  120.   
  121.   ACTOR_SKILL[4] = {
  122.   1=>["V_ACT4_ATTACK_1","V_ACT4_ATTACK_2","V_ACT4_ATTACK_3"],
  123.   2=>["V_ACT4_SKILL_3","V_ACT4_SKILL_8"],
  124.   51=>["V_ACT4_SKILL_1","V_ACT4_SKILL_4","V_ACT4_SKILL_6","V_ACT4_SKILL_9"],
  125.   53=>["V_ACT4_SKILL_1","V_ACT4_SKILL_4","V_ACT4_SKILL_6","V_ACT4_SKILL_9"],
  126.   61=>["V_ACT4_SKILL_1","V_ACT4_SKILL_4","V_ACT4_SKILL_6","V_ACT4_SKILL_9"],
  127.   66=>["V_ACT4_SKILL_1","V_ACT4_SKILL_4","V_ACT4_SKILL_6","V_ACT4_SKILL_9"],
  128.   74=>["V_ACT4_SKILL_1","V_ACT4_SKILL_4","V_ACT4_SKILL_6","V_ACT4_SKILL_9"]
  129.   }
  130.   
  131.   #----------------------------------------------------------------------------
  132.   # 角色使用物品
  133.   #----------------------------------------------------------------------------
  134.   ACTOR_ITEM[1] = {
  135.   1=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"], 2=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"],
  136.   3=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"], 4=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"],
  137.   5=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"], 6=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"],
  138.   7=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"], 8=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"],
  139.   17=>["V_ACT1_SKILL_6","V_ACT1_SKILL_7"]
  140.   }  
  141.   
  142.   ACTOR_ITEM[2] = {
  143.   1=>["V_ACT2_RECOVER_2"],  2=>["V_ACT2_RECOVER_2"],  3=>["V_ACT2_RECOVER_2"],
  144.   4=>["V_ACT2_RECOVER_2"],  5=>["V_ACT2_RECOVER_2"],  6=>["V_ACT2_RECOVER_2"],
  145.   7=>["V_ACT2_RECOVER_2"],  8=>["V_ACT2_RECOVER_2"],  17=>["V_ACT2_RECOVER_2"]
  146.   }
  147.   
  148.   ACTOR_ITEM[3] = {
  149.   1=>["V_ACT3_WIN_2"],  2=>["V_ACT3_WIN_2"],  3=>["V_ACT3_WIN_2"],
  150.   4=>["V_ACT3_WIN_2"],  5=>["V_ACT3_WIN_2"],  6=>["V_ACT3_WIN_2"],
  151.   7=>["V_ACT3_WIN_2"],  8=>["V_ACT3_WIN_2"],  17=>["V_ACT3_WIN_2"]
  152.   }  
  153.    
  154.   ACTOR_ITEM[4] = {
  155.   1=>["V_ACT4_START_3"],  2=>["V_ACT4_START_3"],  3=>["V_ACT4_START_3"],
  156.   4=>["V_ACT4_START_3"],  5=>["V_ACT4_START_3"],  6=>["V_ACT4_START_3"],
  157.   7=>["V_ACT4_START_3"],  8=>["V_ACT4_START_3"],  17=>["V_ACT4_START_3"]
  158.   }  
  159.   
  160.   #----------------------------------------------------------------------------
  161.   # 角色通用行动语音 *( 基础 / 应用于全部技能 / 物品)
  162.   #----------------------------------------------------------------------------  
  163.   # 设定在未特殊指定(默认)情况下角色的技能/物品语音,
  164.   #----------------------------------------------------------------------------
  165.   ACTOR_GENERAL_ACTION[1] = ["V_ACT1_ATTACK_1","V_ACT1_ATTACK_2","V_ACT1_ATTACK_3"]
  166.   ACTOR_GENERAL_ACTION[2] = ["V_ACT2_ATTACK_1","V_ACT2_ATTACK_2","V_ACT2_ATTACK_3"]
  167.   ACTOR_GENERAL_ACTION[3] = ["V_ACT3_ATTACK_1","V_ACT3_ATTACK_2","V_ACT3_ATTACK_3"]
  168.   ACTOR_GENERAL_ACTION[4] = ["V_ACT4_ATTACK_1","V_ACT4_ATTACK_2","V_ACT4_ATTACK_3"]
  169.   
  170.   #----------------------------------------------------------------------------
  171.   # 受到伤害
  172.   #----------------------------------------------------------------------------
  173.   ACTOR_DAMAGE[1] = ["V_ACT1_DAMAGE_1","V_ACT1_DAMAGE_2"]
  174.   ACTOR_DAMAGE[2] = ["V_ACT2_DAMAGE_1","V_ACT2_DAMAGE_2","V_ACT2_DAMAGE_3"]
  175.   ACTOR_DAMAGE[3] = ["V_ACT3_DAMAGE_1","V_ACT3_DAMAGE_2","V_ACT3_DAMAGE_3"]
  176.   ACTOR_DAMAGE[4] = ["V_ACT4_DAMAGE_1","V_ACT4_DAMAGE_2","V_ACT4_DAMAGE_3"]
  177.    
  178.   #----------------------------------------------------------------------------
  179.   # 受到治疗
  180.   #----------------------------------------------------------------------------
  181.   ACTOR_RECOVER[1] = ["V_ACT1_RECOVER_1","V_ACT1_RECOVER_2"]
  182.   ACTOR_RECOVER[2] = ["V_ACT2_RECOVER_1","V_ACT2_RECOVER_2"]
  183.   ACTOR_RECOVER[3] = ["V_ACT3_RECOVER_1","V_ACT3_RECOVER_2"]
  184.   ACTOR_RECOVER[4] = ["V_ACT4_RECOVER_1","V_ACT4_RECOVER_2"]
  185.   
  186.   #----------------------------------------------------------------------------
  187.   # 死亡
  188.   #----------------------------------------------------------------------------
  189.   ACTOR_DEFEATED[1] = ["V_ACT1_DEFEAT_1"]
  190.   ACTOR_DEFEATED[2] = ["V_ACT2_DEFEAT_1"]
  191.   ACTOR_DEFEATED[3] = ["V_ACT3_DEFEAT_1"]
  192.   ACTOR_DEFEATED[4] = ["V_ACT4_DEFEAT_1","V_ACT4_DEFEAT_2"]  
  193.   
  194.   #----------------------------------------------------------------------------
  195.   # 敌人技能
  196.   #----------------------------------------------------------------------------
  197.   ENEMY_SKILL[7] = {
  198.   135=>["V_ENE1_SKILL_3"]
  199.   }   
  200.   ENEMY_SKILL[9] = {
  201.   137=>["Cel_Attack_01","Cel_Attack_02","Cel_Attack_03","Cel_Attack_04"]
  202.   }      
  203.   
  204.   
  205.   #----------------------------------------------------------------------------
  206.   # 敌人通用技能
  207.   #----------------------------------------------------------------------------  
  208.   ENEMY_GENERAL_ACTION[7] = ["V_ENE1_ATTACK_1","V_ENE1_ATTACK_2","V_ENE1_ATTACK_3"]
  209.   ENEMY_GENERAL_ACTION[11] = ["Reimu_A1","Reimu_A2"]
  210.   ENEMY_GENERAL_ACTION[12] = ["Satori_A1","Satori_A2"]
  211.   
  212.   #----------------------------------------------------------------------------
  213.   # 敌人受到伤害
  214.   #----------------------------------------------------------------------------
  215.   ENEMY_DAMAGE[7] = ["V_ENE1_DAMAGE_1","V_ENE1_DAMAGE_2","V_ENE1_DAMAGE_3"]
  216.   ENEMY_DAMAGE[11] = ["Reimu_D1","Reimu_D2"]
  217.   ENEMY_DAMAGE[9] = ["Cel_Damage1","Cel_Damage2"]
  218.   ENEMY_DAMAGE[12] = ["Satori_D1","Satori_D2"]
  219.   
  220.   #----------------------------------------------------------------------------
  221.   # 敌人受到治疗
  222.   #----------------------------------------------------------------------------
  223.   ENEMY_RECOVER[7] = []
  224.   
  225.   #----------------------------------------------------------------------------
  226.   # 敌人死亡
  227.   #----------------------------------------------------------------------------
  228.   ENEMY_DEFEATED[7] =  ["V_ENE1_DEFEAT_1"]
  229.   ENEMY_DEFEATED[11] =  ["Reimu_DF"]
  230.   ENEMY_DEFEATED[12] =  ["Satori_DF"]
  231.   
  232. end

  233. #===============================================================================
  234. # ■ Battle Cry
  235. #===============================================================================
  236. module BATTLE_CRY
  237.   
  238.   include MOG_BATTLE_CRY
  239.   
  240.   #--------------------------------------------------------------------------
  241.   # ● Execute Battle Cry
  242.   #--------------------------------------------------------------------------      
  243.   def execute_battle_cry(type = 0, skill_id = nil, battler = nil)
  244.       @type = type ; @skill_id = skill_id ; @battler = battler
  245.       case @type
  246.          when 0 # START #
  247.            check_members_alive
  248.            voice_list = ACTOR_BATTLE_START[@battler.id] rescue nil         
  249.          when 1 # END   #
  250.             check_members_alive
  251.             voice_list = ACTOR_BATTLE_END[@battler.id] rescue nil
  252.          when 2 # SKILL #
  253.             if @battler.is_a?(Game_Actor)
  254.                voice = ACTOR_SKILL[@battler.id] rescue nil     
  255.             else  
  256.                voice = ENEMY_SKILL[@battler.enemy_id] rescue nil
  257.             end
  258.             voice_list = voice[@skill_id] rescue nil
  259.             if voice_list == nil # GENERAL ACTION
  260.                if @battler.is_a?(Game_Actor)
  261.                   voice_list = ACTOR_GENERAL_ACTION[@battler.id] rescue nil     
  262.                else  
  263.                   voice_list = ENEMY_GENERAL_ACTION[@battler.enemy_id] rescue nil
  264.                end
  265.             end  
  266.          when 3 # DAMAGE #
  267.             if @battler.hp > 0
  268.                if @battler.is_a?(Game_Actor)
  269.                   voice_list = ACTOR_DAMAGE[@battler.id] rescue nil     
  270.                else  
  271.                   voice_list = ENEMY_DAMAGE[@battler.enemy_id] rescue nil
  272.                end            
  273.             else # DEFEATED #
  274.                if @battler.is_a?(Game_Actor)
  275.                   voice_list = ACTOR_DEFEATED[@battler.id] rescue nil     
  276.                else  
  277.                   voice_list = ENEMY_DEFEATED[@battler.enemy_id] rescue nil
  278.                end                        
  279.             end
  280.          when 4 # RECOVER #
  281.               if @battler.is_a?(Game_Actor)
  282.                  voice_list = ACTOR_RECOVER[@battler.id] rescue nil     
  283.               else  
  284.                  voice_list = ENEMY_RECOVER[@battler.enemy_id] rescue nil
  285.               end            
  286.          when 5 # ITEM #
  287.                voice = ACTOR_ITEM[@battler.id] rescue nil     
  288.                voice_list = voice[@skill_id] rescue nil
  289.             if voice_list == nil # GENERAL SKILLS
  290.                voice_list = ACTOR_GENERAL_ACTION[@battler.id] rescue nil     
  291.             end         
  292.          when 6 # START #
  293.                check_members_alive
  294.                voice_list = ACTOR_BATTLE_ESCAPE[@battler.id] rescue nil
  295.          when 7 # TURN #
  296.                voice_list = ACTOR_TURN_ACTIVE[@battler.id] rescue nil            
  297.       end
  298.       play_battle_cry(voice_list) ; check_battle_addons
  299.   end
  300.   
  301.   #--------------------------------------------------------------------------
  302.   # ● Play Battle Cry
  303.   #--------------------------------------------------------------------------      
  304.   def play_battle_cry(voice_list)
  305.       return if voice_list == nil
  306.       voice_id = voice_list[rand(voice_list.size)]
  307.       Audio.se_play("Audio/SE/" + voice_id.to_s,VOLUME,100) rescue nil      
  308.   end
  309.   
  310.   #--------------------------------------------------------------------------
  311.   # ● Check Members Alive
  312.   #--------------------------------------------------------------------------        
  313.   def check_members_alive
  314.       alive_members = []
  315.       for i in $game_party.battle_members
  316.          alive_members.push(i) if i.hp > 0      
  317.       end   
  318.       members_id = rand(alive_members.size)
  319.       alive_members.each_with_index do |i, index|
  320.           if members_id == index
  321.              @battler = i
  322.              break
  323.           end         
  324.       end
  325.       @battler = alive_members[members_id]
  326.   end     
  327.   
  328.   #--------------------------------------------------------------------------
  329.   # ● Check Battle Addons
  330.   #--------------------------------------------------------------------------      
  331.   def check_battle_addons
  332.       if $imported[:mog_battle_hud_ex] and SceneManager.face_battler? and
  333.          @battler != nil and @battler.is_a?(Game_Actor)
  334.          if @type == 0 or @type == 1 or @type == 6
  335.             @battler.face_animation = [50,1,50] unless @battler.low_hp? or @battler.restriction >= 4
  336.          elsif @type == 7
  337.             @battler.face_animation = [50,1,50] unless @battler.low_hp? or @battler.restriction >= 4
  338.          end   
  339.       end  
  340.   end  
  341.   
  342. end

  343. #==============================================================================
  344. # ■ BattleManager
  345. #==============================================================================
  346. class << BattleManager
  347.   include BATTLE_CRY
  348.   
  349.   #--------------------------------------------------------------------------
  350.   # ● Process Victory
  351.   #--------------------------------------------------------------------------   
  352.   alias mog_battle_cry_process_victory process_victory
  353.   def process_victory
  354.       execute_battle_cry(1, nil, nil)         
  355.       mog_battle_cry_process_victory
  356.   end  
  357.   
  358.   #--------------------------------------------------------------------------
  359.   # ● Process Abort
  360.   #--------------------------------------------------------------------------      
  361.   alias mog_battle_cry_process_abort process_abort
  362.   def process_abort
  363.       execute_battle_cry(6, nil, nil)
  364.       mog_battle_cry_process_abort
  365.   end  
  366.   
  367. end

  368. #==============================================================================
  369. # ■ Game Battler
  370. #==============================================================================
  371. class Game_Battler < Game_BattlerBase
  372.   include BATTLE_CRY
  373.   
  374.   #--------------------------------------------------------------------------
  375.   # ● Execute Damage
  376.   #--------------------------------------------------------------------------      
  377.   alias mog_battle_cry_execute_damage execute_damage
  378.   def execute_damage(user)
  379.       mog_battle_cry_execute_damage(user)   
  380.       execute_battle_cry_damage
  381.   end

  382.   #--------------------------------------------------------------------------
  383.   # ● Execute Battle Cry Damage
  384.   #--------------------------------------------------------------------------        
  385.   def execute_battle_cry_damage
  386.       if @result.hp_damage > 0
  387.          execute_battle_cry(3, nil, self)
  388.       elsif @result.hp_damage < 0   
  389.          execute_battle_cry(4, nil, self)
  390.       else
  391.          if @result.hp_damage == 0
  392.             if @result.mp_damage > 0
  393.                execute_battle_cry(3, nil, self)
  394.             elsif @result.mp_damage < 0
  395.                execute_battle_cry(4, nil, self)
  396.             end   
  397.          end   
  398.       end
  399.   end  

  400.   #--------------------------------------------------------------------------
  401.   # ● Item Effect Recover HP
  402.   #--------------------------------------------------------------------------         
  403.   alias mog_battle_cry_item_effect_recover_hp item_effect_recover_hp  
  404.   def item_effect_recover_hp(user, item, effect)
  405.       chp = self.hp
  406.       mog_battle_cry_item_effect_recover_hp(user, item, effect)
  407.       if self.hp > chp
  408.          execute_battle_cry(4, nil, self)
  409.       elsif self.hp < chp
  410.          execute_battle_cry(3, nil, self)
  411.       end  
  412.   end
  413.    
  414.   #--------------------------------------------------------------------------
  415.   # ● Item Effect Reover MP
  416.   #--------------------------------------------------------------------------            
  417.   alias mog_battle_cry_item_effect_recover_mp item_effect_recover_mp
  418.   def item_effect_recover_mp(user, item, effect)
  419.       cmp = self.mp
  420.       mog_battle_cry_item_effect_recover_mp(user, item, effect)
  421.       if self.mp > cmp
  422.          execute_battle_cry(4, nil, self)
  423.       elsif self.mp < cmp
  424.          execute_battle_cry(3, nil, self)
  425.       end        
  426.   end  
  427.   
  428. end

  429. #==============================================================================
  430. # ■ Game Action
  431. #==============================================================================
  432. class Scene_Battle < Scene_Base
  433. include BATTLE_CRY
  434.   
  435.   #--------------------------------------------------------------------------
  436.   # ● Show Animations
  437.   #--------------------------------------------------------------------------     
  438.   alias mog_battle_cry_show_animation show_animation
  439.   def show_animation(targets, animation_id)
  440.       battle_cry(targets, animation_id)
  441.       mog_battle_cry_show_animation(targets, animation_id)
  442.   end
  443.   
  444.   #--------------------------------------------------------------------------
  445.   # ● Battle Cry
  446.   #--------------------------------------------------------------------------     
  447.   def battle_cry(targets, animation_id)
  448.       return if @subject == nil
  449.       return if @subject.current_action == nil
  450.       return if @subject.current_action.item == nil
  451.       if @subject.is_a?(Game_Actor) and @subject.current_action.item.is_a?(RPG::Item)
  452.           execute_battle_cry(5, @subject.current_action.item.id, @subject)
  453.       else   
  454.           execute_battle_cry(2, @subject.current_action.item.id, @subject)
  455.       end   
  456.   end
  457.       
  458.   
  459.   #--------------------------------------------------------------------------
  460.   # ● Process Actor Command
  461.   #--------------------------------------------------------------------------  
  462.   if $imported[:mog_atb_system]
  463.   alias mog_battle_cry_process_actor_command process_actor_command
  464.   def process_actor_command
  465.       mog_battle_cry_process_actor_command
  466.       execute_battle_cry(7, nil, BattleManager.actor) if BattleManager.actor
  467.   end
  468.   end

  469.   #--------------------------------------------------------------------------
  470.   # ● Battle Start
  471.   #--------------------------------------------------------------------------  
  472.   alias mog_battle_cry_update_battle update
  473.   def update
  474.       mog_battle_cry_update_battle
  475.       execute_battle_cry_start
  476.   end   
  477.   
  478.   #--------------------------------------------------------------------------
  479.   # ● Execite Battle Cry Start
  480.   #--------------------------------------------------------------------------   
  481.   def execute_battle_cry_start
  482.       return if @battle_cry_start != nil
  483.       @battle_cry_start = true ; execute_battle_cry(0, nil, nil)
  484.   end

  485. end  
复制代码

评分

参与人数 1星屑 +10 +1 收起 理由
寂静的夜里 + 10 + 1 认可答案

查看全部评分

VA外站脚本汉化群:226308173   |    部分远古文件备份:https://wwzv.lanzoue.com/b02rac5pc  密码:acgm
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
817
在线时间
85 小时
注册时间
2020-1-8
帖子
66
 楼主| 发表于 2020-2-22 22:24:02 | 显示全部楼层

请问怎么设置,是在备注里添加所有的代码么

点评

直接在脚本里设定,认真看字,一行一行看。 脚本里都没出现备注两个字,和备注有啥关系。  发表于 2020-2-23 04:06
钟山老龙,烛龙兎嵐字音苍
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-3-29 07:48

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表