游民星空 > 攻略秘籍 > 攻略 > 正文

中世纪2:修改文件方法汇总

2007-07-14 00:04:03 来源:本站原创 作者:佚名 编辑:dsgames568 我要投稿

 

C.添加新武器修改
原版所有的弓箭都是一样的,我们为了区分精锐与非精锐部队就必须设计多种类型的弓箭。
也是在B部分提到的descr_projectile文件,比如我想为英国的舍伍德弓箭手Sherwood Archers添加个专有武器(武器名字随便起)。
先在开头武器延迟那添加如下
delay standard 0.0 (标准延迟)
delay flaming 15.0
delay gunpowder 0.0
delay sherwoodarrow -15(越小越快,这里我要设计比标准快点)
然后复制段弓箭arrow的数据,随便在两段武器数据中间插入粘贴兵做如下修改
projectile sherwoodarrow(更换名字) 

effect arrows_new_set
end_effect arrow_impact_ground_set
end_man_effect man_impact_tiny_set
end_package_effect arrow_impact_wall_set
end_shatter_effect arrow_impact_ground_set
end_shatter_man_effect man_impact_tiny_set
end_shatter_package_effect arrow _impact_wall_seteffect_offset -1.5(效果抵销) 
damage 0(对建筑伤害) 
radius 0.1(发射物体积) 
mass 0.1(也可以改弹药的冲撞质量) 
accuracy_vs_units 0.01(跟火枪的比较下设计个独特的命中率) 
min_angle -75(最低射角) 
max_angle 65(最高射角) 
velocity 20 48(出膛速度,小的话弹道高但射程近,大则反之) 
display aimed
effect_only
红色部分是必改,紫色部分是做个例子改给你看,你可以根据所掌握的知识对其它数据修改。但是弓箭,炮弹类武器别忘了另再设计个火箭数据,否则就不能射火箭啦!如上面新武器的火箭武器命名为sherwoodarrow _fiery,添加方法如下
复制火箭arrow_fiery的数据
projectile arrow_fiery

flaming sherwoodarrow _fiery
effect arrows_fire_new_set
end_effect arrow_flaming_impact_ground_set
end_man_effect man_impact_tiny_set
end_package_effect arrow_flaming_impact_wall_set
end_shatter_effect arrow_flaming_impact_ground_set
end_shatter_man_effect man_impact_tiny_set
end_shatter_package_effect arrow_flaming_impact_wall_seteffect_offset -1.3
damage 0
radius 0.1
mass 0.5
accuracy_vs_units 0.04
fiery
min_angle -80
max_angle 60
velocity 30 48
display aimed
effect_only
修改方法跟前面改弓箭的一样,数据也是自定义。以上新的弓箭数据做好了,下面我们把它应用到英国的“罗宾汉”身上吧,
打开data下的export_descr_unit文件,查找Sherwood Archers舍伍德弓箭手数据如下
type Sherwood Archers
dictionary Sherwood_Archers ; Sherwood Archers
category infantry
class missile
voice_type Light
banner faction main_missile
banner holy crusade
soldier Sherwood_Archers, 24, 0, 0.8
attributes sea_faring, hide_improved_forest, very_hardy, can_withdraw
formation 1.2, 1.2, 2.4, 2.4, 2, square
stat_health 2, 0
stat_pri 13, 3, sherwoodarrow, 160, 30, missile, missile_mechanical, piercing, none, 25, 1
;stat_pri_ex 0, 0, 0
stat_pri_attr ap
stat_sec 16, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 0, 9, 0, flesh
;stat_armour_ex 0, 0, 0, 0, 9, 0, 0, flesh
stat_sec_armour 0, 0, flesh
stat_heat 2
stat_ground 1, -2, 3, 2
stat_mental 11, normal, untrained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 510, 250, 110, 85, 510, 4, 120
armour_ug_levels 0
armour_ug_models Sherwood_Archers
ownership england
era 0 england
;unit_info 16, 13, 18
在红字位置把原来的arrow替换成sherwoodarrow就可以了。
模仿以上修改方法,你还可以设计其它新武器,例如弓骑专用武器,新火枪,新火炮……….
就算你做个“原子弹”也不是不可能的事了。

 

更多相关内容请关注:中世纪2:全面战争专区

上一页 31 32 33 34 35 36 37 38 39 40 41 下一页
友情提示:支持键盘左右键“← →”翻页
标签:攻略
游民星空APP
随手浏览游戏攻略
code
常见问题
?
我要提问
    没有任何记录
    没有任何记录
    没有任何记录
单机游戏下载
休闲娱乐
综合热点资讯
游民星空联运游戏