首页 攻略 游戏教程 > 骑马与砍杀系列 > 骑马与砍杀原版 《骑马与砍杀》新增阵营教程详解完全版

热门资讯

《骑马与砍杀》新增阵营教程详解完全版

浏览:1154 评论:0 发表时间:2020-01-03


骑马与砍杀战团添加新阵营“初级教程”上面记载的东西,很遗憾,你按照他去添加后,是行不通的,因为他没考虑很多东西,以至于会产生很多BUG,本着制作群雄割据的热情,现在我就把教程写出来给大家看,所有新手,不要再有困惑,一起体验群雄割据的乐趣。

因为我不做城池的新增和修改,所以适合新手上路,很是方便。

第一步:打开module_constant

找到:(按我的数值修改)

slot_faction_truce_days_with_factions_begin = 120

slot_faction_provocation_days_with_factions_begin = 140

slot_faction_war_damage_inflicted_on_factions_begin = 160

slot_faction_sum_advice_about_factions_begin = 180

我已经改好,原来的是120,130,140之间的间隔=10,对,如果你群雄的割据总数小于10,没问题,但是如果你割据总数大于10,那么问题就来了,你就会发现不停地会出现:“A势力对于B势力的挑衅无动于衷,某某国王威信扫地。。”这句话,为何呢,因为simple_trigger中有这句话:

(store_add,":slot_provocation_days",":faction_2",slot_faction_provocation_days_with_factions_begin),

(val_sub,":slot_provocation_days", kingdoms_begin),

(faction_get_slot,":provocation_days",":faction_1",":slot_provocation_days"),

如果你slot数值间隔总数小于你的割据总数,那么总会有超过第十个的几个势力,一直判定被挑衅,每天判定一次,也就每天显示一次。所以我把间隔改为20,因为我的阵营总共有13个。

那么是不是这样间隔大于10就够了呢,还不够。

第二步:打开module_faction.py

搜索:("culture_6","{!}culture_6", 0, 0.9, [], []),

那么是否把新增的阵营的culture_7添加在下面呢?答案是否。因为你看第一步中的

(val_sub,":slot_provocation_days", kingdoms_begin),如果你添加在culture_6后面,那么kingdoms_begin的序号就不对了,就会产生偏差。

所以把

("culture_7","{!}culture_7", 0, 0.9, [], []),

("culture_8","{!}culture_8", 0, 0.9, [], []),

("culture_9","{!}culture_9", 0, 0.9, [], []),

("culture_10","{!}culture_10", 0, 0.9, [], []),

("culture_11","{!}culture_11", 0, 0.9, [], []),

("culture_12","{!}culture_12", 0, 0.9, [], []),

("culture_13","{!}culture_13", 0, 0.9, [], []),#xinzengshili

添加在最后面。保存。至此,再也不会发生每天跳出一次“威信扫地”的菜单了。耶。这点一定要注意!!!!!!

第三步:打开module_faction.py

搜索("kingdoms_end","{!}kingdoms_end",0, 0,[], []),

在此之前添加:

("kingdom_7","Liang Dynasty", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xFF00FF),

("kingdom_8","Liang Dynasty", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x9C661F),

("kingdom_9","Wu Dynasty", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x990033),

("kingdom_10","Nanyang Dynasty", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xFFC0CB),

("kingdom_11","Qi Dynasty", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0xA020F0),

("kingdom_12","Xu Dynasty", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x000000),

("kingdom_13","Qin Dynasty", 0, 0.9, [("outlaws",-0.05),("peasant_rebels", -0.1),("deserters", -0.02),("mountain_bandits", -0.05),("forest_bandits", -0.05)], [], 0x8B864E),#xinzengshili

后面的颜色如果觉得不太理想,可以自己调节。

第四步:打开factions.csv

新增:

fac_kingdom_7|大 梁 王 朝

fac_kingdom_8|西 凉 王 朝

fac_kingdom_9|吴 王 朝

fac_kingdom_10|南 阳 王 朝

fac_kingdom_11|齐 王 朝

fac_kingdom_12|许 王 朝

fac_kingdom_13|西 秦 王 朝

第五步:打开module_strings.py

新增:

("faction_title_male_7","General {s0}"),

("faction_title_male_8","General {s0}"),

("faction_title_male_9","General {s0}"),

("faction_title_male_10","General {s0}"),

("faction_title_male_11","General {s0}"),

("faction_title_male_12","General {s0}"),

("faction_title_male_13","General {s0}"),

因为如果不这样做,新阵营的君主后缀全部为XX夫人。切记

第六步:打开game_strings.csv

新增:

str_faction_title_male_7|{s0}将 军

str_faction_title_male_8|{s0}将 军

str_faction_title_male_9|{s0}将 军

str_faction_title_male_10|{s0}将 军

str_faction_title_male_11|{s0}将 军

str_faction_title_male_12|{s0}将 军

str_faction_title_male_13|{s0}将 军

第七步:打开script (新阵营招兵用)

找到:

(faction_set_slot,"fac_culture_6", slot_faction_tier_5_troop,"trp_sarranid_mamluke"),在下面添加:

#xinzengshili

(faction_set_slot, "fac_culture_7",slot_faction_tier_1_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_7",slot_faction_tier_2_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_7",slot_faction_tier_3_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_7",slot_faction_tier_4_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_7",slot_faction_tier_5_troop, "trp_hired_blade"),

 

         (faction_set_slot, "fac_culture_8",slot_faction_tier_1_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_8",slot_faction_tier_2_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_8",slot_faction_tier_3_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_8",slot_faction_tier_4_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_8",slot_faction_tier_5_troop, "trp_hired_blade"),

 

         (faction_set_slot, "fac_culture_9",slot_faction_tier_1_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_9",slot_faction_tier_2_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_9",slot_faction_tier_3_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_9",slot_faction_tier_4_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_9",slot_faction_tier_5_troop, "trp_hired_blade"),

 

         (faction_set_slot, "fac_culture_10",slot_faction_tier_1_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_10", slot_faction_tier_2_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_10", slot_faction_tier_3_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_10",slot_faction_tier_4_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_10", slot_faction_tier_5_troop, "trp_hired_blade"),

 

         (faction_set_slot,"fac_culture_11", slot_faction_tier_1_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_11",slot_faction_tier_2_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_11", slot_faction_tier_3_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_11", slot_faction_tier_4_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_11", slot_faction_tier_5_troop, "trp_hired_blade"),

 

         (faction_set_slot,"fac_culture_12", slot_faction_tier_1_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_12", slot_faction_tier_2_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_12", slot_faction_tier_3_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_12", slot_faction_tier_4_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_12", slot_faction_tier_5_troop, "trp_hired_blade"),

 

         (faction_set_slot,"fac_culture_13", slot_faction_tier_1_troop, "trp_hired_blade"),

     (faction_set_slot, "fac_culture_13",slot_faction_tier_2_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_13", slot_faction_tier_3_troop, "trp_hired_blade"),

         (faction_set_slot, "fac_culture_13",slot_faction_tier_4_troop, "trp_hired_blade"),

         (faction_set_slot,"fac_culture_13", slot_faction_tier_5_troop, "trp_hired_blade"),

 

 

假设新阵营招兵全部找职业武士,那么,你要把trp_hired_blade(你为新增实力添加的trp)一定要添加在trp_loot前面(就是进入troop.py里面修改),不然劫狱会出错。

第八步(新阵营招兵用)打开:script

找到:(troop_set_slot,"trp_kingdom_6_lord", slot_troop_renown, 1200),

在下面添加:

#xinzengshili

(新阵营文化设置用,下面紫色的很重要,如果不这样做,会导致永远也触发不了玩家选择旗帜的界面)打开:script

找到:(troop_set_slot,"trp_kingdom_6_lord", slot_troop_renown, 1200),

在下面添加:

#xinzengshili

(faction_set_slot,"fac_kingdom_7", slot_faction_culture,"fac_culture_7"),

(faction_set_slot,"fac_kingdom_7", slot_faction_leader,"trp_town_1_merchant"),

(faction_set_slot,"fac_kingdom_8", slot_faction_culture,"fac_culture_8"),

(faction_set_slot,"fac_kingdom_8", slot_faction_leader,"trp_town_2_merchant"),

(faction_set_slot,"fac_kingdom_9", slot_faction_culture,"fac_culture_9"),

(faction_set_slot,"fac_kingdom_9", slot_faction_leader,"trp_town_3_merchant"),

(faction_set_slot,"fac_kingdom_10", slot_faction_culture,"fac_culture_10"),

(faction_set_slot,"fac_kingdom_10", slot_faction_leader,"trp_town_4_merchant"),

(faction_set_slot,"fac_kingdom_11", slot_faction_culture,"fac_culture_11"),

(faction_set_slot,"fac_kingdom_11", slot_faction_leader,"trp_town_5_merchant"),

(faction_set_slot,"fac_kingdom_12", slot_faction_culture,"fac_culture_12"),

(faction_set_slot,"fac_kingdom_12", slot_faction_leader,"trp_town_6_merchant"),

(faction_set_slot,"fac_kingdom_13", slot_faction_culture,"fac_culture_13"),

(faction_set_slot,"fac_kingdom_13", slot_faction_leader,"trp_town_7_merchant"),

因为如果不先把新阵营的君主改为无关紧要的人的话,那么slot的默认值是0,而玩家ID又恰好是0,导致玩家是所有新阵营的君主。 然后你看script里面这句: (try_for_range,":cur_faction", npc_kingdoms_begin, npc_kingdoms_end),#biaoji (faction_get_slot,":cur_faction_king",":cur_faction", slot_faction_leader), (faction_get_slot,":cur_faction_banner",":cur_faction", slot_faction_banner), (val_sub,":cur_faction_banner", banner_meshes_begin), (val_add,":cur_faction_banner", banner_scene_props_begin), (troop_set_slot,":cur_faction_king", slot_troop_banner_scene_prop,":cur_faction_banner"), 这样的话,就表示玩家的旗帜有问题。 你再看simpletrigger里面的这句: # Banner selection menu (24, [ (eq,"$g_player_banner_granted", 1), (troop_slot_eq,"trp_player", slot_troop_banner_scene_prop, 0),#biaoji (le,"$auto_menu",0), #normal_banner_begin (start_presentation,"prsnt_banner_selection"), #custom_banner_begin # (start_presentation,"prsnt_custom_banner"), ]), 如果玩家旗帜有问题,那么就永远无法触发“你被授予拥有旗帜的权利等等这句话”永远也不出现选择自己旗帜的presentation界面 继续。

然后找到:(faction_set_slot,"fac_culture_6", slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

在下面添加:

##xinzengshili

(faction_set_slot,"fac_culture_7",slot_faction_town_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_7",slot_faction_town_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_7",slot_faction_village_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_7",slot_faction_village_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_7",slot_faction_town_spy_male_troop,"trp_spy_walker_1"),

(faction_set_slot,"fac_culture_7",slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

(faction_set_slot,"fac_culture_8",slot_faction_town_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_8",slot_faction_town_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_8", slot_faction_village_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_8",slot_faction_village_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_8",slot_faction_town_spy_male_troop,"trp_spy_walker_1"),

(faction_set_slot,"fac_culture_8", slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

(faction_set_slot,"fac_culture_9",slot_faction_town_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_9", slot_faction_town_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_9",slot_faction_village_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_9",slot_faction_village_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_9",slot_faction_town_spy_male_troop,"trp_spy_walker_1"),

(faction_set_slot,"fac_culture_9",slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

(faction_set_slot,"fac_culture_10",slot_faction_town_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_10",slot_faction_town_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_10",slot_faction_village_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_10",slot_faction_village_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_10",slot_faction_town_spy_male_troop,"trp_spy_walker_1"),

(faction_set_slot,"fac_culture_10",slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

(faction_set_slot,"fac_culture_11", slot_faction_town_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_11", slot_faction_town_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_11",slot_faction_village_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_11",slot_faction_village_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_11",slot_faction_town_spy_male_troop,"trp_spy_walker_1"),

(faction_set_slot,"fac_culture_11",slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

(faction_set_slot,"fac_culture_12", slot_faction_town_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_12",slot_faction_town_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_12",slot_faction_village_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_12",slot_faction_village_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_12",slot_faction_town_spy_male_troop,"trp_spy_walker_1"),

(faction_set_slot,"fac_culture_12",slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

(faction_set_slot,"fac_culture_13", slot_faction_town_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_13",slot_faction_town_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_13",slot_faction_village_walker_male_troop,"trp_sarranid_townsman"),

(faction_set_slot,"fac_culture_13",slot_faction_village_walker_female_troop,"trp_sarranid_townswoman"),

(faction_set_slot,"fac_culture_13",slot_faction_town_spy_male_troop,"trp_spy_walker_1"),

(faction_set_slot,"fac_culture_13",slot_faction_town_spy_female_troop,"trp_spy_walker_2"),

第九步:(招兵用)打开module_party_templates.py

找到:("kingdom_6_reinforcements_c","{!}kingdom_6_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_sarranid_horseman,3,5)]),

在下面添加:

#xinzengshili

("kingdom_7_reinforcements_a","{!}kingdom_7_reinforcements_a", 0, 0, fac_commoners, 0,[(trp_hired_blade,5,10),(trp_hired_blade,2,4)]),

("kingdom_7_reinforcements_b","{!}kingdom_7_reinforcements_b", 0, 0, fac_commoners, 0,[(trp_hired_blade,2,4),(trp_hired_blade,2,3),(trp_hired_blade,1,3)]),

("kingdom_7_reinforcements_c","{!}kingdom_7_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_hired_blade,3,5)]),

("kingdom_8_reinforcements_a","{!}kingdom_8_reinforcements_a", 0, 0, fac_commoners, 0,[(trp_hired_blade,1,2),(trp_hired_blade,1,2)]),

("kingdom_8_reinforcements_b","{!}kingdom_8_reinforcements_b", 0, 0, fac_commoners, 0,[(trp_hired_blade,2,4),(trp_hired_blade,2,3),(trp_hired_blade,1,3)]),

("kingdom_8_reinforcements_c","{!}kingdom_8_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_hired_blade,3,5)]),

("kingdom_9_reinforcements_a","{!}kingdom_9_reinforcements_a",0, 0, fac_commoners, 0, [(trp_hired_blade,1,2),(trp_hired_blade,1,2)]),

("kingdom_9_reinforcements_b","{!}kingdom_9_reinforcements_b", 0, 0, fac_commoners, 0,[(trp_hired_blade,2,4),(trp_hired_blade,2,3),(trp_hired_blade,1,3)]),

("kingdom_9_reinforcements_c","{!}kingdom_9_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_hired_blade,3,5)]),

("kingdom_10_reinforcements_a","{!}kingdom_10_reinforcements_a", 0, 0, fac_commoners, 0,[(trp_hired_blade,1,2),(trp_hired_blade,1,2)]),

("kingdom_10_reinforcements_b","{!}kingdom_10_reinforcements_b", 0, 0, fac_commoners, 0,[(trp_hired_blade,2,4),(trp_hired_blade,2,3),(trp_hired_blade,1,3)]),

("kingdom_10_reinforcements_c","{!}kingdom_10_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_hired_blade,3,5)]),

("kingdom_11_reinforcements_a","{!}kingdom_11_reinforcements_a", 0, 0, fac_commoners, 0,[(trp_hired_blade,1,2),(trp_hired_blade,1,2)]),

("kingdom_11_reinforcements_b","{!}kingdom_11_reinforcements_b", 0, 0, fac_commoners, 0, [(trp_hired_blade,2,4),(trp_hired_blade,2,3),(trp_hired_blade,1,3)]),

("kingdom_11_reinforcements_c","{!}kingdom_11_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_hired_blade,3,5)]),

("kingdom_12_reinforcements_a","{!}kingdom_12_reinforcements_a", 0, 0, fac_commoners, 0,[(trp_hired_blade,1,2),(trp_hired_blade,1,2)]),

("kingdom_12_reinforcements_b","{!}kingdom_12_reinforcements_b", 0, 0, fac_commoners, 0,[(trp_hired_blade,2,4),(trp_hired_blade,2,3),(trp_hired_blade,1,3)]),

("kingdom_12_reinforcements_c","{!}kingdom_12_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_hired_blade,3,5)]),

("kingdom_13_reinforcements_a","{!}kingdom_13_reinforcements_a", 0, 0, fac_commoners, 0,[(trp_hired_blade,1,2),(trp_hired_blade,1,2)]),

("kingdom_13_reinforcements_b","{!}kingdom_13_reinforcements_b", 0, 0, fac_commoners, 0,[(trp_hired_blade,2,4),(trp_hired_blade,2,3),(trp_hired_blade,1,3)]),

("kingdom_13_reinforcements_c","{!}kingdom_13_reinforcements_c", 0, 0, fac_commoners, 0,[(trp_hired_blade,3,5)]),

假设新阵营全部刷职业武士。

第十步:(招兵用)打开script,

找到:(faction_set_slot,":faction_no", slot_faction_reinforcements_c,"pt_kingdom_6_reinforcements_c"),

在下面添加:

(else_try),#xinzengshili

(this_or_next|faction_slot_eq,":faction_no",slot_faction_culture,"fac_culture_7"),

(this_or_next|faction_slot_eq,":faction_no",slot_faction_culture,"fac_culture_8"),

(this_or_next|faction_slot_eq,":faction_no", slot_faction_culture,"fac_culture_9"),

(this_or_next|faction_slot_eq,":faction_no", slot_faction_culture,"fac_culture_10"),

(this_or_next|faction_slot_eq,":faction_no", slot_faction_culture,"fac_culture_11"),

(this_or_next|faction_slot_eq,":faction_no", slot_faction_culture,"fac_culture_12"),

(faction_slot_eq,":faction_no",slot_faction_culture,"fac_culture_13"),

(faction_set_slot,":faction_no", slot_faction_deserter_troop,"trp_sarranid_deserter"),

(faction_set_slot,":faction_no", slot_faction_guard_troop,"trp_sarranid_castle_guard"),

(faction_set_slot,":faction_no",slot_faction_messenger_troop,"trp_sarranid_messenger"),

(faction_set_slot,":faction_no",slot_faction_prison_guard_troop,"trp_sarranid_prison_guard"),

(faction_set_slot,":faction_no", slot_faction_castle_guard_troop,"trp_sarranid_castle_guard"),

(faction_set_slot,":faction_no", slot_faction_reinforcements_a,"pt_kingdom_7_reinforcements_a"),

(faction_set_slot,":faction_no", slot_faction_reinforcements_b,"pt_kingdom_7_reinforcements_b"),

(faction_set_slot,":faction_no", slot_faction_reinforcements_c,"pt_kingdom_7_reinforcements_c"),

这里假设新阵营全部招募职业武士,不然几个新阵营写几遍。

第十步B:(招兵用)打开MODULE_TROOP.PY

注意:电脑招什么兵是看troop也就是武将的初始阵营是什么,然后再根据你定义的party_template刷的,所以我们假设新增的7个阵营的君主分别是

knight_3_14一直到knight_3_20这7个库吉特人,但是他们的初始国家为KINGDOM_3,所以依次改为kingdom_7至kingdom_13.

好了,至此新阵营招兵部分讲完了。

第十一步:(战场相遇场景用)

打开:module_game_menus.py

找到:(set_background_mesh,"mesh_pic_sarranid_encounter"),

在下面添加:

(else_try),#xinzengshili

(set_background_mesh,"mesh_pic_sea_raiders"),

这样你和新阵营相遇的场景就是海寇,可以根据自己喜好更换场景图片

第十二步:(新阵营国旗专用)打开script

找到:(is_between,":faction_no","fac_kingdom_1", kingdoms_end), #Excludingplayer kingdom

把这句更换为:

(is_between,":faction_no","fac_kingdom_1","fac_kingdom_7"),#xiugai

这样做的好处是,前6大阵营都有图标,比如狼啊,狮子啊,但是你的新阵营如果不会note_mesh的新手,那么好处就是,国家的标志就是国王的旗帜。一步到位。

第十三步:(新阵营国旗专用,假设新国旗都是萨兰的,没关系,因为我的剧本是先有国家后成立国王,所有国旗会自动换成国王的家徽的)打开script

找到:(faction_set_slot,"fac_kingdom_6", slot_faction_banner,"mesh_banner_kingdom_e"),

在下面添加:

(faction_set_slot,"fac_kingdom_7", slot_faction_banner,"mesh_banner_kingdom_e"),

(faction_set_slot,"fac_kingdom_8", slot_faction_banner,"mesh_banner_kingdom_e"),

(faction_set_slot,"fac_kingdom_9",slot_faction_banner,"mesh_banner_kingdom_e"),

(faction_set_slot,"fac_kingdom_10", slot_faction_banner,"mesh_banner_kingdom_e"),

(faction_set_slot,"fac_kingdom_11", slot_faction_banner,"mesh_banner_kingdom_e"),

(faction_set_slot,"fac_kingdom_12", slot_faction_banner,"mesh_banner_kingdom_e"),

(faction_set_slot,"fac_kingdom_13", slot_faction_banner,"mesh_banner_kingdom_e"),

 

 

第十四步:(开局专用)打开script

找到("game_start",

在第一行插入如下:

(faction_set_slot,"fac_kingdom_7", slot_faction_state,sfs_inactive),

(faction_set_slot,"fac_kingdom_8",slot_faction_state, sfs_inactive),

(faction_set_slot,"fac_kingdom_9",slot_faction_state, sfs_inactive),

(faction_set_slot,"fac_kingdom_10", slot_faction_state, sfs_inactive),

(faction_set_slot,"fac_kingdom_11", slot_faction_state, sfs_inactive),

(faction_set_slot,"fac_kingdom_12", slot_faction_state, sfs_inactive),

(faction_set_slot,"fac_kingdom_13", slot_faction_state, sfs_inactive),

这样做的好处是不会让没有激活的国家显示下阵营栏右侧。

第十五步:打开simple_trigger

找到(call_script,"script_calculate_castle_prosperities_by_using_its_villages"),

假设共有13个阵营,把(store_add,":fac_kingdom_6_plus_one", "fac_kingdom_6", 1),

改为如下:

(store_add,":fac_kingdom_6_plus_one", "fac_kingdom_13", 1),

第十六步:(分配城池专用)

打开module_trigger.py

在最后添加:

####xinzengshili

(0.2, 0, ti_once,

[

],

[

(assign,":cur_center","p_town_10"),

(call_script,"script_give_center_to_lord",":cur_center","trp_knight_3_16", 0),

(faction_set_slot,"fac_kingdom_7", slot_faction_state, sfs_active),

(faction_set_slot,"fac_kingdom_7", slot_faction_culture,"fac_culture_7"),

(faction_set_slot,"fac_kingdom_7", slot_faction_leader,"trp_knight_3_16"),

(call_script,"script_change_troop_faction","trp_knight_3_16","fac_kingdom_7"),

(troop_set_slot,"trp_knight_3_16",slot_troop_renown, 1200),

(assign,":cur_center","p_town_11"),

(call_script,"script_give_center_to_lord",":cur_center","trp_knight_3_14", 0),

(faction_set_slot,"fac_kingdom_8", slot_faction_state, sfs_active),

(faction_set_slot,"fac_kingdom_8", slot_faction_culture,"fac_culture_8"),

(faction_set_slot,"fac_kingdom_8", slot_faction_leader,"trp_knight_3_14"),

(call_script,"script_change_troop_faction","trp_knight_3_14","fac_kingdom_8"),

(troop_set_slot,"trp_knight_3_14",slot_troop_renown, 1200),

(assign,":cur_center","p_town_12"),

(call_script,"script_give_center_to_lord",":cur_center","trp_knight_3_15", 0),

(faction_set_slot,"fac_kingdom_9", slot_faction_state, sfs_active),

(faction_set_slot,"fac_kingdom_9", slot_faction_culture,"fac_culture_9"),

(faction_set_slot,"fac_kingdom_9", slot_faction_leader,"trp_knight_3_15"),

(call_script,"script_change_troop_faction","trp_knight_3_15","fac_kingdom_9"),

(troop_set_slot,"trp_knight_3_15",slot_troop_renown, 1200),

(assign,":cur_center","p_town_13"),

(call_script,"script_give_center_to_lord",":cur_center","trp_knight_3_17", 0),

(faction_set_slot,"fac_kingdom_10", slot_faction_state, sfs_active),

(faction_set_slot,"fac_kingdom_10", slot_faction_culture,"fac_culture_10"),

(faction_set_slot,"fac_kingdom_10", slot_faction_leader,"trp_knight_3_17"),

(call_script,"script_change_troop_faction","trp_knight_3_17","fac_kingdom_10"),

(troop_set_slot,"trp_knight_3_17",slot_troop_renown, 1200),

(assign,":cur_center","p_town_14"),

(call_script,"script_give_center_to_lord",":cur_center","trp_knight_3_18", 0),

(faction_set_slot,"fac_kingdom_11", slot_faction_state, sfs_active),

(faction_set_slot,"fac_kingdom_11", slot_faction_culture,"fac_culture_11"),

(faction_set_slot,"fac_kingdom_11", slot_faction_leader,"trp_knight_3_18"),

(call_script,"script_change_troop_faction","trp_knight_3_18","fac_kingdom_11"),

(troop_set_slot,"trp_knight_3_18",slot_troop_renown, 1200),

(assign,":cur_center","p_town_15"),

(call_script,"script_give_center_to_lord",":cur_center","trp_knight_3_19", 0),

(faction_set_slot,"fac_kingdom_12", slot_faction_state, sfs_active),

(faction_set_slot,"fac_kingdom_12", slot_faction_culture,"fac_culture_12"),

(faction_set_slot,"fac_kingdom_12", slot_faction_leader,"trp_knight_3_19"),

(call_script,"script_change_troop_faction","trp_knight_3_19","fac_kingdom_12"),

(troop_set_slot,"trp_knight_3_19",slot_troop_renown, 1200),

(assign,":cur_center","p_town_16"),

(call_script,"script_give_center_to_lord",":cur_center","trp_knight_3_20", 0),

(faction_set_slot,"fac_kingdom_13", slot_faction_state, sfs_active),

(faction_set_slot,"fac_kingdom_13", slot_faction_culture,"fac_culture_13"),

(faction_set_slot,"fac_kingdom_13", slot_faction_leader,"trp_knight_3_20"),

(call_script,"script_change_troop_faction","trp_knight_3_20","fac_kingdom_13"),

(troop_set_slot,"trp_knight_3_20",slot_troop_renown, 1200),

]),
 

可以根据自己的喜好,更改相应的城池。

至此,群雄割据的局面形成了,包括原先6大阵营在内,总共有13个割据势力,AI都相同,

这个就是我开发隋唐剧本的前瞻,方便广大菜鸟py者。


 
 

0相关评论