制造武将法 转自游侠zhouyuxing
本帖最后由 ma6620 于 2009-11-20 11:33 编辑转自游侠zhouyuxing
1、descr_model_battle里:(给刘备势力添加羽林骑)
;羽林骑
type YuLin_Qi
skeleton fs_hc_swordsman
indiv_range 40
texture ostrogoths, bi/data/models_unit/sanguo/textures/YulinJun_Wei.tga
texture empire_east, bi/data/models_unit/sanguo/textures/YulinJun_Wei.tga
model_flexi bi/data/models_unit/sanguo/YuLin_BuBing.cas, 15
model_flexi bi/data/models_unit/sanguo/YuLin_BuBing1.cas, 30
model_flexi bi/data/models_unit/sanguo/YuLin_BuBing2.cas, 40
model_flexi bi/data/models_unit/sanguo/YuLin_BuBing3.cas, max
model_sprite ostrogoths, 60.0, bi/data/sprites/ostrogoths_YuLin_Qi_sprite.spr
model_sprite empire_east, 60.0, bi/data/sprites/ostrogoths_YuLin_Qi_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
2、export_descr_unit里:(用周仓的数据改)
;羽林偏将
type JiangJun_BaShu Aa_0207-ZhouCang2
dictionary JiangJun_BaShu_Aa_0207-ZhouCang2
category cavalry
class heavy
voice_type General_1
soldier YuLin_Qi, 6, 0, 1
officer ShaoNian_general
mount sanguo horse qjzm
mount_effect elephant -4, camel -4
attributes sea_faring, general_unit, hide_forest, hardy, can_swim, no_custom
formation 1.5, 4, 3, 6, 4, square, wedge
stat_health 2, 0
stat_pri 12, 8, no, 0, 0, melee, blade, piercing, spear, 25 ,1
stat_pri_attr no
stat_sec 0, 0, no, 0, 0, no, no, no, none, 25 ,1
stat_sec_attr no
stat_pri_armour12, 12, 3, leather
stat_sec_armour0, 6, flesh
stat_heat 0
stat_ground 2, 0, 1, 0
stat_mental 7, disciplined, trained
stat_charge_dist 50
stat_fire_delay0
stat_food 60, 300
stat_cost 1, 1503, 1, 140, 210, 1370
ownership empire_east
3、export_descr_buildings里:(在学院设施里添将军)
building academic
{
levels academy scriptorium ludus_magnus
{
academy requires hidden_resource AA01-Gov and factions { ostrogoths, sarmatians, roxolani, vandals, empire_east, empire_east_rebels, sassanids, celts, empire_west, empire_west_rebels, lombardi, saxons, berbers, slave, } or factions { goths, slavs, romano_british, alemanni, burgundii, } and resource purple_dye
{
capability
{
religious_belief christianity 1 requires factions { empire_east, empire_east_rebels, empire_west, roxolani, }
law_bonus bonus 1
recruit "JiangJun_BaShu Aa_0207-ZhouCang2"0requires factions { empire_east, } }
construction3
cost1600
settlement_min city
upgrades
{
scriptorium
}
}
scriptorium requires factions { ostrogoths, roxolani, empire_east, sassanids, empire_west, lombardi, berbers, slave, } or factions { sarmatians, vandals, empire_east_rebels, celts, empire_west_rebels, saxons, } and resource purple_dye
{
capability
{
religious_belief christianity 2 requires factions { empire_east, empire_east_rebels, empire_west, roxolani, }
law_bonus bonus 2
recruit "JiangJun_BaShu Aa_0207-ZhouCang2"1requires factions { empire_east, }
}
construction5
cost3200
settlement_min large_city
upgrades
{
ludus_magnus
}
}
ludus_magnus requires factions { roxolani, empire_west, berbers, slave, } or factions { ostrogoths, empire_east, sassanids, lombardi, } and resource purple_dye
{
capability
{
religious_belief christianity 3 requires factions { empire_east, empire_east_rebels, empire_west, roxolani, }
law_bonus bonus 3
recruit "JiangJun_BaShu Aa_0207-ZhouCang2"2requires factions { empire_east, }
}
construction6
cost6400
settlement_min huge_city
upgrades
{
}
}
}
plugins
{
}
}
4、在text里的export_units加入说明:
{JiangJun_BaShu_Aa_0207-ZhouCang2}羽林偏將
{JiangJun_BaShu_Aa_0207-ZhouCang2_descr}羽林重騎將軍\n\n羽林重騎將軍\n將軍麾下的精銳親兵。
{JiangJun_BaShu_Aa_0207-ZhouCang2_descr_short}羽林重騎將軍\n\n將軍麾下的精銳親兵。
5、在ui里的unit_info内的empire_east加入图片(找人自已喜欢的图替换)
JiangJun_BaShu_Aa_0207-ZhouCang2_info.tga
就改了以上的地方,ok~ 晕。。。。能不能说详细点看不怎么懂 造哪个势力的,就添加到哪个势力后
各个势力代码不一样
如吕布是goths,刘备是empire_east, 够费劲的有点麻烦 麻烦一次之后,就可以像招兵一样招将军了 招将军??????这么拉风!!!招出来的将军有属性没有??? 当然有,不然还怎么叫将军,不过属性都是随机的 哇,那可是太爽了哪。将军的名字从哪儿来呢?也是从names文件里随机挑吗? 这样就可以有大量的文官当太守了 说白了就是自己在export_escr_unit里面添加一个兵种,atributes中添加一个general_unit特性造出来的都是任职的将军!!想放在哪个建筑都行,不一定要放在学院,像我的我就放在兵营里面!! 能造文官吗?专当太守提高治安 可以造,但是属性是随机的,说不准
有时间可能出武将 建议这个方法建议2.0版本中加入啊! 说实话!我没看懂!理解能力差点! 感谢楼主分享!辛苦了! 我菜鸟,看不懂 太麻烦了,实在不懂! 2.0加入的话会影响平衡的 看不懂! 感谢楼主提供的办法
我觉得这个办法好
因为我按照楼主的方法添加了
虽然将军的能力我没办法选择不过将军卫队
我却可以自己决定
再来就是将军的属性是任职将军
这麽说来是不是就可以摆脱势力栋梁的将军人数限制了?
如果是那真是完美啊哈哈
页:
[1]
2