本帖最后由 阮声悠悠 于 2018-4-16 00:23 编辑
另外,还找到了状态决定先制攻击的脚本
- #==============================================================================
- class Game_Battler
- INITE_ID = [17,18,19] #<= 先出手的状态ID。
- #--------------------------------------------------------------------------
- # ● 确定动作速度
- #--------------------------------------------------------------------------
- def make_action_speed
- judeg = false
- INITE_ID.each{|i| judeg = true if state?(i)}
- @current_action.speed = agi + rand(10 + agi / 4) + (judeg ? 1000000 : 0)
- end
- end
- #==============================================================================
复制代码
但我希望改成技能id来决定先制效果
所以
- SKILL_ID = [23,24,25] #<= 先出手的状态ID。
- def make_action_speed
- ####先发技能、先制攻击
- judeg = false
- SKILL_ID.each{|i| judeg = true if skill.id(i)}
- @current_action.speed = agi+ (judeg ? 1000000 : 0)
- end
复制代码
然后失败了!!!!!!
没有办法对点评做出回复,总之按照大大的改法亲测成功了
这里也放出代码,替换游戏def make_action_speed里面的脚本就可以了
def make_action_speed xzgj = [23,24,25] #<=先发技能、先制攻击的技能id judeg = false xzgj.each{|i| judeg = true if @current_action.skill_id == i && @current_action.kind == 1} @current_action.speed = agi+ (judeg ? 1000000 : 0) end
def make_action_speed
xzgj = [23,24,25] #<=先发技能、先制攻击的技能id
judeg = false
xzgj.each{|i| judeg = true if @current_action.skill_id == i && @current_action.kind == 1}
@current_action.speed = agi+ (judeg ? 1000000 : 0)
end
|