| 
UID6737帖子442主题23精华0积分579历练0 声望2 人气397 经验549 金钱3247 注册时间2011-12-29最后登录2016-1-15在线时间104 小时阅读权限40
 
 
 TA的每日心情|  | 擦汗 2016-1-15 13:30
 | 
|---|
 签到天数: 280 天 [LV.8]以坛为家I 精华0积分579历练0 声望2 人气397 
 
  | 
| 复制代码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
二段攻击的脚本,用了之后剑神之类的公共事件法术居然会重复发生
 | 
 |