Project1
标题:
请问如何制作全体攻击、连续攻击的兵器
[打印本页]
作者:
Eric_the_Red
时间:
2007-7-14 02:21
标题:
请问如何制作全体攻击、连续攻击的兵器
标题可能没问清楚,就是我想设置几种特殊兵器。
第一种:当主角装备它时,在战斗中普通攻击就是对全体敌人的攻击。
第二种:当主角装备它时,在战斗中每次轮到该主角进攻时,该主角的普通攻击都是对敌人的连续两次或两次以上攻击。
实现这两个功能需要如何修改脚本?谢谢。
很抱歉,那个脚本好像不能用,我是完全按照说明进行的脚本复制和系统属性设置,可还是不行,再次请教,谢谢。 [LINE]1,#dddddd[/LINE]
此贴于 2007-8-1 11:59:46 被版主絮儿提醒,请楼主看到后对本贴做出回应。
作者:
Eric_the_Red
时间:
2007-7-14 02:21
标题:
请问如何制作全体攻击、连续攻击的兵器
标题可能没问清楚,就是我想设置几种特殊兵器。
第一种:当主角装备它时,在战斗中普通攻击就是对全体敌人的攻击。
第二种:当主角装备它时,在战斗中每次轮到该主角进攻时,该主角的普通攻击都是对敌人的连续两次或两次以上攻击。
实现这两个功能需要如何修改脚本?谢谢。
很抱歉,那个脚本好像不能用,我是完全按照说明进行的脚本复制和系统属性设置,可还是不行,再次请教,谢谢。 [LINE]1,#dddddd[/LINE]
此贴于 2007-8-1 11:59:46 被版主絮儿提醒,请楼主看到后对本贴做出回应。
作者:
真·ZERO
时间:
2007-7-14 02:26
http://rpg.blue/web/htm/news184.htm
把那个武器勾上全体化就可以实现全体攻击了。
连续攻击用彩虹神剑 [LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者:
Eric_the_Red
时间:
2007-7-14 02:32
谢谢版主
作者:
Eric_the_Red
时间:
2007-7-16 20:42
很抱歉,那个脚本好像不能用,我是完全按照说明进行的脚本复制和系统属性设置,可还是不行,再次请教,谢谢。
作者:
K’
时间:
2007-7-16 21:14
class Scene_Battle
#--------------------------------------------------------------------------
# ● 刷新画面 (角色命令回合 : 基本命令)
#--------------------------------------------------------------------------
def update_phase3_basic_command
# 按下 B 键的情况下
if Input.trigger?(Input::B)
# 演奏取消 SE
$game_system.se_play($data_system.cancel_se)
# 转向前一个角色的指令输入
phase3_prior_actor
return
end
# 按下 C 键的情况下
if Input.trigger?(Input::C)
# 角色指令窗口光标位置分之
case @actor_command_window.index
when 0 # 攻击
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 设置行动
@active_battler.current_action.kind = 0
@active_battler.current_action.basic = 0
if $data_weapons[@active_battler.weapon_id].element_set.include?(17)
phase3_next_actor
else
# 开始选择敌人
start_enemy_select
end
when 1 # 特技
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 设置行动
@active_battler.current_action.kind = 1
# 开始选择特技
start_skill_select
when 2 # 防御
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 设置行动
@active_battler.current_action.kind = 0
@active_battler.current_action.basic = 1
# 转向下一位角色的指令输入
phase3_next_actor
when 3 # 物品
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 设置行动
@active_battler.current_action.kind = 2
# 开始选择物品
start_item_select
end
return
end
end
#--------------------------------------------------------------------------
# ● 生成基本行动结果
#--------------------------------------------------------------------------
def make_basic_action_result
# 攻击的情况下
if @active_battler.current_action.basic == 0
# 设置攻击 ID
@animation1_id = @active_battler.animation1_id
@animation2_id = @active_battler.animation2_id
# 行动方的战斗者是敌人的情况下
if @active_battler.is_a?(Game_Enemy)
if @active_battler.restriction == 3
target = $game_troop.random_target_enemy
elsif @active_battler.restriction == 2
target = $game_party.random_target_actor
else
index = @active_battler.current_action.target_index
target = $game_party.smooth_target_actor(index)
end
end
# 行动方的战斗者是角色的情况下
if @active_battler.is_a?(Game_Actor)
if @active_battler.restriction == 3
target = $game_party.random_target_actor
elsif @active_battler.restriction == 2
target = $game_troop.random_target_enemy
else
index = @active_battler.current_action.target_index
target = $game_troop.smooth_target_enemy(index)
end
end
# 设置对像方的战斗者序列
if @active_battler.is_a?(Game_Actor)
if $data_weapons[@active_battler.weapon_id].element_set.include?(17)
@target_battlers = $game_troop.enemies
else
@target_battlers = [target]
end
else
@target_battlers = [target]
end
# 应用通常攻击效果
for target in @target_battlers
target.attack_effect(@active_battler)
end
return
end
# 防御的情况下
if @active_battler.current_action.basic == 1
# 帮助窗口显示"防御"
@help_window.set_text($data_system.words.guard, 1)
return
end
# 逃跑的情况下
if @active_battler.is_a?(Game_Enemy) and
@active_battler.current_action.basic == 2
# 帮助窗口显示"逃跑"
@help_window.set_text("逃跑", 1)
# 逃跑
@active_battler.escape
return
end
# 什么也不做的情况下
if @active_battler.current_action.basic == 3
# 清除强制行动对像的战斗者
$game_temp.forcing_battler = nil
# 移至步骤 1
@phase4_step = 1
return
end
end
end
复制代码
插入main前面后 设置17号属性 名字随便 只要拿着带这种属性的武器 就会全体攻击了
不保证对所有的战斗系统都有效。
作者:
纯白骑士
时间:
2007-7-28 03:12
提示:
作者被禁止或删除 内容自动屏蔽
作者:
K’
时间:
2007-7-28 03:23
http://rpg.blue/viewthread.php?tid=61396
可以说是完全适合你的问题。。
PS : 这帖子为什么移到这区来?
作者:
gpra8764
时间:
2007-7-28 16:35
提示:
作者被禁止或删除 内容自动屏蔽
作者:
Eric_the_Red
时间:
2007-8-8 09:07
非常感谢各位前辈,我正在尝试。
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1