刚才找到了英雄技能的使用修改,就顺便摸索了一下给将军加上英雄技能。经过反复实验,已经可以成功给所有的初始将军加上想要的技能了。
修改descr_strat.txt文件,找到你想加上技能的将军,比如耶路撒冷的鲍德温,描述如下:
character Baldwin, named character, male, leader, age 16, x 91, y 33
traits Factionleader 1 , GoodCommander 2 , NaturalMilitarySkill 1 , GoodDefender 1 , Intelligent 2 , ReligionStarter 1 , StrategyChivalry 4 , GoodDiplomacy 3 , CrusaderHistory 2 , ChristianHero 1
army
unit NE Bodyguard exp 3 armour 0 weapon_lvl 0
unit Tripolitan Squires exp 0 armour 0 weapon_lvl 0
unit Tripolitan Squires exp 0 armour 0 weapon_lvl 0
unit Tripolitan Squires exp 1 armour 0 weapon_lvl 0
unit Sodeer Archers exp 1 armour 0 weapon_lvl 0
unit Sodeer Archers exp 0 armour 0 weapon_lvl 0
unit Mounted Sergeants exp 0 armour 0 weapon_lvl 0
unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
unit Templar Sergeant exp 0 armour 0 weapon_lvl 0
unit Templar Sergeant exp 0 armour 0 weapon_lvl 0
unit Knights of Jerusalem exp 3 armour 0 weapon_lvl 0
unit Knights of Jerusalem exp 3 armour 0 weapon_lvl 0
unit Knights of Jerusalem exp 3 armour 0 weapon_lvl 0
这些描述的具体意思就不用多解释相信大家都知道了,加上英雄技能的修改就是(红字部分):
character Baldwin, named character, male, leader, age 16, x 91, y 33 , hero_ability Righteousness_of_Faith
traits Factionleader 1 , GoodCommander 2 , NaturalMilitarySkill 1 , GoodDefender 1 , Intelligent 2 , ReligionStarter 1 , StrategyChivalry 4 , GoodDiplomacy 3 , CrusaderHistory 2 , ChristianHero 1
army
unit NE Bodyguard exp 3 armour 0 weapon_lvl 0
unit Tripolitan Squires exp 0 armour 0 weapon_lvl 0
unit Tripolitan Squires exp 0 armour 0 weapon_lvl 0
unit Tripolitan Squires exp 1 armour 0 weapon_lvl 0
unit Sodeer Archers exp 1 armour 0 weapon_lvl 0
unit Sodeer Archers exp 0 armour 0 weapon_lvl 0
unit Mounted Sergeants exp 0 armour 0 weapon_lvl 0
unit Templar Sergeant exp 1 armour 0 weapon_lvl 0
unit Templar Sergeant exp 0 armour 0 weapon_lvl 0
unit Templar Sergeant exp 0 armour 0 weapon_lvl 0
unit Knights of Jerusalem exp 3 armour 0 weapon_lvl 0
unit Knights of Jerusalem exp 3 armour 0 weapon_lvl 0
unit Knights of Jerusalem exp 3 armour 0 weapon_lvl 0
前面hero_ability 表示这个将军可使用英雄技能,后面的Righteousness_of_Faith表示可以使用的具体英雄技能名字,这样修改后鲍德温就有了撒拉丁的英雄技能了。同样的道理改成The_Heart_of_the_Lion就有了狮子喉了,呵呵。。相关的技能可以到descr_hero_abilities.xml里去找。