赞 | 0 |
VIP | 0 |
好人卡 | 15 |
积分 | 1 |
经验 | 5333 |
最后登录 | 2022-5-25 |
在线时间 | 66 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 60
- 在线时间
- 66 小时
- 注册时间
- 2011-5-25
- 帖子
- 73
|
很好改
如下红色字体:
def update_phase4_step3
if @active_battler.current_action.basic == 0 and
@active_battler.current_action.kind == 0
@active_battler.startactive = "移动"
@_move_duration = Move_Duration
ox,oy = @active_battler.screen_x,@active_battler.screen_y
@oldxy = [@active_battler.screen_x,@active_battler.screen_y]
while @_move_duration > 0
Graphics.update
Input.update
@spriteset.update
tag = [@target_battlers[0].screen_x,@target_battlers[0].screen_y]
move(@active_battler, tag, ox, oy)
@_move_duration -= 1
@status_window.refresh
@enemy_window.refresh
end
@active_battler.startactive = "待机"
end
# 行动方动画 (ID 为 0 的情况下是白色闪烁)
if @animation1_id == 0
@active_battler.white_flash = true
else
@active_battler.animation_id = @animation1_id
@active_battler.animation_hit = true
end
for target in @target_battlers
target.animation_id = @animation2_id
target.animation_hit = (target.damage != "Miss")
end
# 移至步骤 4
@phase4_step = 4
end
def update_phase4_step5
# 隐藏帮助窗口
@help_window.visible = false
if @active_battler.current_action.basic == 0 and
@active_battler.current_action.kind == 0
@active_battler.startactive = "返回"
@_move_duration = Move_Duration
ox,oy = @active_battler.screen_x - @active_battler.movex,\
@active_battler.screen_y - @active_battler.movey
while @_move_duration > 0
Graphics.update
Input.update
@spriteset.update
move(@active_battler, @oldxy, ox, oy, true)
@_move_duration -= 1
@status_window.refresh
@enemy_window.refresh
end
@active_battler.startactive = "待机"
end
@phase4_step = 6
return
# 显示伤害
for target in @target_battlers
if target.damage != nil
target.damage_pop = true
if target.damage != "Miss"
r = rand(5)+10
for i in 1..r
Graphics.update
Input.update
update
target.cp -= 1
@battler_cp.ttbar[target].y = (142 - (target.cp * 135 / target.maxcp)) + 32-7
end
end
end
end
# 移至步骤 6
@phase4_step = 6
end |
|