Project1
标题:
齐时战斗能用主战那个待机,挨打,防御,倒地动画吗?
[打印本页]
作者:
alonescud
时间:
2008-4-26 10:43
标题:
齐时战斗能用主战那个待机,挨打,防御,倒地动画吗?
如题! [LINE]1,#dddddd[/LINE]
版务信息:本贴由楼主自主结贴~
作者:
lldjjf
时间:
2008-4-26 14:58
提示:
作者被禁止或删除 内容自动屏蔽
作者:
havealook
时间:
2008-4-26 17:21
LZ还是先学学脚本
再看看教程:http://rpg.blue/web/htm/news453.htm
弄懂原理后自己调试
不要直接用脚本
作者:
∮縼葎∮
时间:
2008-4-26 19:09
提示:
作者被禁止或删除 内容自动屏蔽
作者:
alonescud
时间:
2008-4-26 19:44
我试了下,好像不行```我的scene battle 4设置了齐时战斗,是这样,
我只想要挨打和防御动作 , 能不能帮我调一下
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 3 : 行动方动画)
#--------------------------------------------------------------------------
def update_phase4_step3
# 行动方动画 (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
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 4 : 对像方动画)
#--------------------------------------------------------------------------
def update_phase4_step4
# 限制动画长度、最低 8 帧
@wait_count = 8
# 移至步骤 5
@phase4_step = 5
end
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 5 : 显示伤害)
#--------------------------------------------------------------------------
def update_phase4_step5
# 隐藏帮助窗口
@help_window.visible = false
# 刷新状态窗口
@status_window.refresh
# 显示伤害
for target in @target_battlers
if target.damage != nil
target.damage_pop = true
end
end
# 移至步骤 6
@phase4_step = 6
end
代码
复制
作者:
dbshy
时间:
2008-4-26 19:49
可以用,两个不冲突,最好自己先看懂原理
作者:
havealook
时间:
2008-4-26 19:52
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 3 : 行动方动画)
#--------------------------------------------------------------------------
def update_phase4_step3
# 行动方动画 (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")
################################添加的#############################
if target.is_a?(Game_Actor)
target.battler_name = target.battler_name.split(/★/)[0]
if (target.current_action.kind == 0 and target.current_action.basic == 1) or target.damage == "Miss" or target.damage.to_i <= 0
target.battler_name = target.battler_name + "★3"
else
target.battler_name = target.battler_name + "★4"
end
end
end
# 移至步骤 4
@phase4_step = 4
end
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 4 : 对像方动画)
#--------------------------------------------------------------------------
def update_phase4_step4
# 限制动画长度、最低 8 帧
@wait_count = 8
# 移至步骤 5
@phase4_step = 5
end
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 5 : 显示伤害)
#--------------------------------------------------------------------------
def update_phase4_step5
# 隐藏帮助窗口
@help_window.visible = false
# 刷新状态窗口
@status_window.refresh
# 显示伤害
for target in @target_battlers
if target.damage != nil
target.damage_pop = true
end
end
# 移至步骤 6
@phase4_step = 6
end
复制代码
已修改
接着按照教学里面除了
# ● 刷新画面 (主回合步骤 4 : 对像方动画) ★
修改的以外的修改地方进行修改
[LINE]1,#dddddd[/LINE]
版主对此帖的认可:『havealook一直都很熱心,所以稍微獎勵一下吧~』,积分『+200』。
[LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者:
alonescud
时间:
2008-4-26 20:23
非常感谢havealook!
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1