加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
使用复活技能的时候,脚本出错,啥情况?
# 受到伤害的情况【改变战斗图位置】 # 排除捕捉和防御的情况 if @active_battler.current_action.kind != 3 and @active_battler.current_action.basic != 1 and target.damage == "Miss" or target.damage.to_i > 0 # 当战斗者为敌人的情况 if @active_battler.is_a?(Game_Enemy) @a = 8 #抖动幅度【往左上挪动】 elsif @active_battler.is_a?(Game_Actor) @a = -8 #抖动幅度【往右下挪动】 end # 【挨打移动】位置 if @target_battlers.size == 1 @target_battlers[0].movex = @a @target_battlers[0].movey = @a else for target in @target_battlers target.movex = @a target.movey = @a end end end
# 受到伤害的情况【改变战斗图位置】
# 排除捕捉和防御的情况
if @active_battler.current_action.kind != 3 and
@active_battler.current_action.basic != 1 and
target.damage == "Miss" or target.damage.to_i > 0
# 当战斗者为敌人的情况
if @active_battler.is_a?(Game_Enemy)
@a = 8 #抖动幅度【往左上挪动】
elsif @active_battler.is_a?(Game_Actor)
@a = -8 #抖动幅度【往右下挪动】
end
# 【挨打移动】位置
if @target_battlers.size == 1
@target_battlers[0].movex = @a
@target_battlers[0].movey = @a
else
for target in @target_battlers
target.movex = @a
target.movey = @a
end
end
end
|