更多
网页游戏
当前位置:攻略首页 > 单机游戏攻略 > 圣域2黄金版 > 正文

《圣域2》加强各个技能的打击感 代码修改方法

2013-07-15 17:02:48 角色扮演RPG 人气值:加载中...

龙法的破坏者

游侠网

游侠网

下面介绍正题

修改方法介绍:

spells.txt(位于圣域2安装目录下的\scripts\shared\)里是对每个技能的参数设置,每个技能对应一个字符串如大妈的破坏冲击是这样写的:

大妈(Dryad )破坏冲击:
mgr.defineSpell( "dr_hu_konzentrierterangriff", {
eiStateName = "cSMDrKonzentrierterAngriff"……
其中dr_hu_konzentrierterangriff就是对应的技能名字,想要加入击飞效果,先要找到对应的技能条目。

在spell里找到相应的技能了,要在这个技能里加入击飞效果,只要在tokens的队列最后加入一个条件即可即是{"et_hurl_enemy", 1000, 0, 0, 9 },例如,现在想把高精的冰冷荆棘加入击飞效果,我们可以打开spells,然后查找文本的(ctrl+F)he_st_eissplitter关键字。

如下就是对冰冷荆棘的描述:
mgr.defineSpell( "he_st_eissplitter", {
eiStateName = "cSpellCast",
fxTypeCast = "FX_HE_EISSPLITTER_C",
fxTypeSpell = "FX_HE_EISSPLITTER",
fxTypeCastSpecial = "FX_HE_CAST_K",
duration = 1.500000,
animType = "ANIM_TYPE_SM07",
animTypeApproach = "ANIM_TYPE_INVALID",
animTypeRide = "ANIM_TYPE_INVALID",
animTypeSpecial = "ANIM_TYPE_RIDESM01-SPECIAL",
causesSpellDamage = 1,
tokens = {entry0 = {"et_maxangle_cone", 180, 2, 0, 8 },
entry1 = {"et_spelldamage_ice", 700, 350, 0, 133 },
entry2 = {"et_spelldamage_physical", 700, 350, 0, 133 },
entry3 = {"et_missile_adapt", 2900, 315, 0, 9 },
entry4 = {"et_missile_adapt", 470, 27, 1, 9 },
entry5 = {"et_spelldamage_ice", 490, 245, 2, 133 },
entry6 = {"et_chance_criticalhit", 98, 2, 3, 5 },
entry7 = {"et_chance_piercing", 334, 2, 4, 5 },
entry8 = {"et_missile_adapt", 470, 27, 5, 9 },
entry9 = {"et_chance_piercing", 334, 2, 6, 5 },
},
fightDistance = 525.000000,
aspect = "EA_HE_STORM",
cooldown = 0.000000,
soundProfile = 0,
cost_level = 250,
cost_base = 500,
focus_skill_name = "skill_HE_storm_focus",
lore_skill_name = "skill_HE_storm_lore",
spellClass = "cSpellHeEissplitter",
spellcontroltype = "eCAtype_a_effect_cone",
sorting_rank = 2,}
)

现在tokens的列表下加入一个触发条件即可!冰冷荆棘最后是entry9,那么我们就要加入entry10效果如下:
mgr.defineSpell( "he_st_eissplitter", {
eiStateName = "cSpellCast",
fxTypeCast = "FX_HE_EISSPLITTER_C",
fxTypeSpell = "FX_HE_EISSPLITTER",
fxTypeCastSpecial = "FX_HE_CAST_K",
duration = 1.500000,
animType = "ANIM_TYPE_SM07",
animTypeApproach = "ANIM_TYPE_INVALID",
animTypeRide = "ANIM_TYPE_INVALID",
animTypeSpecial = "ANIM_TYPE_RIDESM01-SPECIAL",
causesSpellDamage = 1,
tokens = {entry0 = {"et_maxangle_cone", 180, 2, 0, 8 },
entry1 = {"et_spelldamage_ice", 700, 350, 0, 133 },
entry2 = {"et_spelldamage_physical", 700, 350, 0, 133 },
entry3 = {"et_missile_adapt", 2900, 315, 0, 9 },
entry4 = {"et_missile_adapt", 470, 27, 1, 9 },
entry5 = {"et_spelldamage_ice", 490, 245, 2, 133 },
entry6 = {"et_chance_criticalhit", 98, 2, 3, 5 },
entry7 = {"et_chance_piercing", 334, 2, 4, 5 },
entry8 = {"et_missile_adapt", 470, 27, 5, 9 },
entry9 = {"et_chance_piercing", 334, 2, 6, 5 },
entry10 = {"et_hurl_enemy", 1000, 0, 0, 9 },
},
fightDistance = 525.000000,
aspect = "EA_HE_STORM",
cooldown = 0.000000,
soundProfile = 0,
cost_level = 250,
cost_base = 500,
focus_skill_name = "skill_HE_storm_focus",
lore_skill_name = "skill_HE_storm_lore",
spellClass = "cSpellHeEissplitter",
spellcontroltype = "eCAtype_a_effect_cone",
sorting_rank = 2,}
)

注意!如果你是用txt文本编辑器编辑,你直接复制
entry9 = {"et_chance_piercing", 334, 2, 6, 5 },这一整行,包括前面的空格!其实那不是空格而是两个tab的表位。复制后如下:
entry9 = {"et_chance_piercing", 334, 2, 6, 5 },
entry9 = {"et_chance_piercing", 334, 2, 6, 5 },
然后把第二个entry9改成entry10,大括号内容替换为"et_hurl_enemy", 1000, 0, 0, 9 即可(最后一个9之后有1个空格)改完后如下效果:
entry9 = {"et_chance_piercing", 334, 2, 6, 5 },
entry10 = {"et_hurl_enemy", 1000, 0, 0, 9 },
这样he_st_eissplitter技能(就是冰冷荆棘)就有击飞的效果了!这个修改完全不改游戏的平衡只是加入了效果,不会影响游戏的平衡,而带来更好的打击体验

查看圣域2黄金版攻略大全

提示:支持键盘“← →”键翻页
分享至
扫描关注游侠网
圣域2黄金版Sacred 2 Gold Edition
上市时间:2012年12月22日
游戏平台:PC
游戏类型:角色扮演RPG
制作公司:Ascaron
游戏语言:中文
发行公司:Deep Silver
单人单机3D画面不支持手柄中级水平不支持VR
关于游侠 | 广告合作 | 人才招聘 | 联系我们 | 网站地图 | 投诉建议 | 版权保护投诉指引
CopyRight © 1999-2023 ALi213.Net All Right Reserved 游侠网 版权所有 | 苏ICP备2023007791号