88510051as 发表于 2010-6-23 18:09:49

回 6楼(酆城浪子) 的帖子

是使用后为一位己方队员增加某持续5个回合 可连击出手两次 还有第一回合使用后 第二回合才能攻击敌人两次

88510051as 发表于 2010-6-24 16:30:31

求高手来解决啊 没人啊

secondsen 发表于 2010-6-27 10:02:07

我腾出时间了。。哇卡卡卡,给你写了一个

class Game_Battler
attr_accessor :double_atk               # 二段攻击标志
alias secondsen_initialize initialize
def initialize
    @double_atk = false
    secondsen_initialize
end
alias secondsen_atk_ef attack_effect
def attack_effect(attacker)
    # 判断二段攻击
    if attacker.states.include?(17)
      attacker.double_atk = true
    end
    secondsen_atk_ef(attacker)
end
end

class Scene_Battle
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 6 : 刷新)
#--------------------------------------------------------------------------
def update_phase4_step6
    if @active_battler.double_atk
      for target in @target_battlers
      target.attack_effect(@active_battler)
      end
      @active_battler.double_atk = false
      @phase4_step = 3
    else
      # 清除强制行动对像的战斗者
      $game_temp.forcing_battler = nil
      # 公共事件 ID 有效的情况下
      if @common_event_id > 0
      # 设置事件
      common_event = $data_common_events[@common_event_id]
      $game_system.battle_interpreter.setup(common_event.list, 0)
      end
      # 移至步骤 1
      @phase4_step = 1
    end
end
end

secondsen 发表于 2010-6-27 10:06:37

用法。。。。。

1。状态编号

脚本11行    if attacker.states.include?(17)
17表示的是编号为17的状态是 二段攻击。。如果大家用的是别的编号的话,请自行改正
如果有 多个状态都是二段攻击 比如 1号 和2号都是
if attacker.states.include?(1)|| attacker.states.include?(2)
这样就可以了,以此类推。。

2。用法。。技能加状态,新建状态这些基本的我就不说了,脚本贴在Main前面就可以了,至于状态持续几回合那个是在数据库中自己定义的

3。说明,看名字就知道是二段攻击。也就是有这个状态的队员会对敌人打击两次。但是该队员使用技能的话不会出现二段技能的情况。

secondsen 发表于 2010-6-27 10:14:44

http://www.rpgchina.net/read-htm-tid-38219-page-e.html#a

这个帖子有技能设置的图片

88510051as 发表于 2010-6-27 16:56:29

回 12楼(secondsen) 的帖子

哇卡卡 厉害 感谢啊 大哥

secondsen 发表于 2010-6-27 17:48:41

试验成功了吧,那我把你这个帖子改成“已解决”了哈

88510051as 发表于 2010-6-27 17:55:53

回 16楼(secondsen) 的帖子

恩 谢谢
页: 1 [2]
查看完整版本: 求 新仙剑XP 里的醉仙望月步技能脚本