- 好友
- 1
- 在线时间
- 0 小时
- 最后登录
- 2026-8-23
扈从
 
- UID
- 3319238
- 第纳尔
- 700
- 精华
- 0
- 互助
- 2
- 荣誉
- 1
- 贡献
- 10
- 魅力
- 231
- 注册时间
- 2022-1-28
 鲜花( 20)  鸡蛋( 0)
|
本帖最后由 殇垣 于 2026-8-12 08:24 编辑
让小阵营兵在战场头顶圆环显示家纹为其的组织的旗帜,以前求问过各位大佬,这是曾经宁静指导的,本应让他来发。
今天翻到了,为避免需要的人重复造轮子。故此提一句。有需要的人正需要,不需要的人用不着。取决于你的设定。你们随意。
找到脚本("agent_troop_get_banner_mesh",
#script_agent_troop_get_banner_mesh 玩家部队 得到 旗帜图
# INPUT: agent_no, troop_no agent和troop获取旗帜模组
# OUTPUT: banner_mesh
("agent_troop_get_banner_mesh",
在此脚本中,搜索到这段
(try_begin),
(eq, ":party_template", "pt_deserters"),#逃兵
(assign, ":banner_mesh", "mesh_banners_default_c"),#旗帜默认c
(else_try),
在此后面添加你想显示的小组织阵营的兵的 旗帜国徽家徽帮徽团徽等,就像这样
(try_begin),
(eq, ":party_template", "pt_deserters"),#逃兵
(assign, ":banner_mesh", "mesh_banners_default_c"),#旗帜默认c
(else_try),
(store_troop_faction,":troop_faction",":troop_no"), # 宁静指导 ccccbore
(eq,":troop_faction","fac_red_order"), #如果是 红衣骑士团 等
(assign,":banner_mesh","mesh_banner_h16"), #########cccccc 我想给战场部队的盾牌和纹章甲 赋予旗帜
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_bright_brh"), #光明兄弟会
(assign,":banner_mesh","mesh_banner_h21"), #
(else_try),
(store_troop_faction,":troop_faction",":troop_no"), #搜寻兵种的阵营 CCCC bore
(eq,":troop_faction","fac_grail_order"),#圣杯骑士团 #当等于该阵营时
(assign,":banner_mesh","mesh_banner_g02"), #野外的遇部队的头顶环、盾牌和纹章甲 赋予此旗帜
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_thorn_order"), #荆冠修道会
(assign,":banner_mesh","mesh_banner_g13"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_seamon_companion"),#海怪战友团
(assign,":banner_mesh","mesh_banner_g04"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_hunter_brotherhood"),#猎手兄弟会
(assign,":banner_mesh","mesh_banner_g15"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_ranger"),#护林游侠会
(assign,":banner_mesh","mesh_banner_g05"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_ashashin"),#阿萨辛派
(assign,":banner_mesh","mesh_banner_g01"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_black_khergits"),#黑旗库吉特
(assign,":banner_mesh","mesh_banner_h18"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_dark_knights"),#暗黑骑士
(assign,":banner_mesh","mesh_banner_h20"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_beast"),#野人 野兽
(assign,":banner_mesh","mesh_banner_h17"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_outlaws"),#强盗 不法之徒
(assign,":banner_mesh","mesh_banner_h19"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_savages"),#南下的野人
(assign,":banner_mesh","mesh_banner_h17"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_taiga_bandits"),#雪原强盗
(assign,":banner_mesh","mesh_banner_g15"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_yiletan"),#依勒坦部落
(assign,":banner_mesh","mesh_banner_g16"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_forest_bandits"),#绿林强盗
(assign,":banner_mesh","mesh_banner_g12"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_golden_boar_leg"),#金豨军团
(assign,":banner_mesh","mesh_banner_g21"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_rat_lake_gang"),#泽鼠帮
(assign,":banner_mesh","mesh_banner_g06"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_secret_hand"),#隐秘之手
(assign,":banner_mesh","mesh_banner_g07"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_ember_cult"),#余烬教团
(assign,":banner_mesh","mesh_banner_g09"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_grace"),#神恩派 高格瑞斯派
(assign,":banner_mesh","mesh_banner_g20"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_advent"),#降临派 阿德万特派
(assign,":banner_mesh","mesh_banner_g14"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_epiphany"),#显灵派 伊沛芬尼派
(assign,":banner_mesh","mesh_banner_g17"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_resting"), #安息派 瑞斯汀派
(assign,":banner_mesh","mesh_banner_g19"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_sacrificial"),#献祭派 赛克非修派
(assign,":banner_mesh","mesh_banner_g10"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_para_aboriginal"),#怕拉人土著
(assign,":banner_mesh","mesh_banner_g11"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_kan"), # 坎族人
(assign,":banner_mesh","mesh_banner_g01"),
(else_try),
(store_troop_faction,":troop_faction",":troop_no"),
(eq,":troop_faction","fac_masa_hillman"),# 马萨人
(assign,":banner_mesh","mesh_banner_g08"),
(else_try),
|
或者可以这样,我改进的方案,方案2,分两步走,先定义阵营旗帜,再让兵种使用阵营旗帜。
先找到游戏开局运行一次的脚本,在脚本第一个
scripts = [
#script_game_start:
# This script is called when a new game is started
# INPUT: none
("game_start",
[
在这里搜到
# Troops: 兵种
# Assign banners and renown. 分配横幅和声望。
# We assume there are enough banners for all kingdom heroes. 我们假设所有王国英雄都有足够的旗帜。
#faction banners
(faction_set_slot, "fac_kingdom_1", slot_faction_banner, "mesh_banner_kingdom_f"),
(faction_set_slot, "fac_kingdom_2", slot_faction_banner, "mesh_banner_kingdom_b"),
(faction_set_slot, "fac_kingdom_3", slot_faction_banner, "mesh_banner_kingdom_c"),
(faction_set_slot, "fac_kingdom_4", slot_faction_banner, "mesh_banner_kingdom_a"),
(faction_set_slot, "fac_kingdom_5", slot_faction_banner, "mesh_banner_kingdom_d"),
(faction_set_slot, "fac_kingdom_6", slot_faction_banner, "mesh_banner_kingdom_e"),
#cc
(faction_set_slot, "fac_kingdom_7", slot_faction_banner, "mesh_banner_kingdom_g"), #CCCCC
(faction_set_slot, "fac_kingdom_8", slot_faction_banner, "mesh_banner_kingdom_o"), #CCCCC
然后在下面插入这段
# # 宁静指导 cccc bore
(faction_set_slot, "fac_red_order", slot_faction_banner, "mesh_banner_h16"), # CCCCC红衣骑士团
(faction_set_slot, "fac_outlaws", slot_faction_banner, "mesh_banner_h19"), # CCCCC强盗 不法之徒
(faction_set_slot, "fac_beast", slot_faction_banner, "mesh_banner_h17"), # CCCCC野兽 巨魔
(faction_set_slot, "fac_savages", slot_faction_banner, "mesh_banner_h17"), # CCCCC南下的野人
(faction_set_slot, "fac_dark_knights", slot_faction_banner, "mesh_banner_h20"), # CCCCC暗黑骑士
(faction_set_slot, "fac_black_khergits", slot_faction_banner, "mesh_banner_h18"), # CCCCC黑旗库吉特
(faction_set_slot, "fac_ashashin", slot_faction_banner, "mesh_banner_g01"), # CCCCC 阿萨辛派木剌夷
(faction_set_slot, "fac_ranger", slot_faction_banner, "mesh_banner_g05"), # CCCCC#护林游侠会
(faction_set_slot, "fac_hunter_brotherhood", slot_faction_banner, "mesh_banner_g15"), # CCCCC猎手兄弟会
(faction_set_slot, "fac_taiga_bandits", slot_faction_banner, "mesh_banner_g15"), # CCCCC雪原强盗
(faction_set_slot, "fac_vulcan_morimin", slot_faction_banner, "mesh_banner_g15"), # CCCCC瓦肯森民
(faction_set_slot, "fac_seamon_companion", slot_faction_banner, "mesh_banner_g04"), # CCCCC海怪战友团
(faction_set_slot, "fac_shields_hood", slot_faction_banner, "mesh_banner_g04"), # CCCCC# 护盾兄弟会
(faction_set_slot, "fac_jumne", slot_faction_banner, "mesh_banner_g04"), # CCCCC# 朱麦人
(faction_set_slot, "fac_thorn_order", slot_faction_banner, "mesh_banner_g13"), # CCCCC # 荆冠修道会
(faction_set_slot, "fac_grail_order", slot_faction_banner, "mesh_banner_g02"), # CCCCC # 圣 杯 骑 士 团
(faction_set_slot, "fac_bright_brh", slot_faction_banner, "mesh_banner_h21"), # CCCCC# 光明兄弟会
(faction_set_slot, "fac_yiletan", slot_faction_banner, "mesh_banner_g18"), # CCCCC# 依勒坦部落
(faction_set_slot, "fac_forest_bandits", slot_faction_banner, "mesh_banner_g12"), # CCCCC#绿林强盗
(faction_set_slot, "fac_golden_boar_leg", slot_faction_banner, "mesh_banner_g21"), # CCCCC# 金豨军团
(faction_set_slot, "fac_rat_lake_gang", slot_faction_banner, "mesh_banner_g06"), # CCCCC# 泽鼠帮
(faction_set_slot, "fac_secret_hand", slot_faction_banner, "mesh_banner_g07"), # CCCCC# 隐秘之手
(faction_set_slot, "fac_ember_cult", slot_faction_banner, "mesh_banner_g09"), # CCCCC# 余烬教团
(faction_set_slot, "fac_grace", slot_faction_banner, "mesh_banner_g20"), # CCCCC# #神恩派 高格瑞斯派
(faction_set_slot, "fac_advent", slot_faction_banner, "mesh_banner_g14"), # CCCCC# #降临派 阿德万特派
(faction_set_slot, "fac_epiphany", slot_faction_banner, "mesh_banner_g17"), # CCCCC# #显灵派 伊沛芬尼派
(faction_set_slot, "fac_resting", slot_faction_banner, "mesh_banner_g19"), # CCCCC# #安息派 瑞斯汀派
(faction_set_slot, "fac_sacrificial", slot_faction_banner, "mesh_banner_g10"), # CCCCC# 献祭派 赛克非修派
(faction_set_slot, "fac_para_aboriginal", slot_faction_banner, "mesh_banner_g11"), # CCCCC# 怕拉人土著
(faction_set_slot, "fac_kan", slot_faction_banner, "mesh_banner_g01"), # CCCCC# 坎族人
(faction_set_slot, "fac_masa_hillman", slot_faction_banner, "mesh_banner_g08"), # CCCCC# 马萨人
#cc++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#原版内容:
(try_for_range, ":cur_faction", npc_kingdoms_begin, npc_kingdoms_end),
(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"),
(try_end),
然后找到这个脚本
#script_agent_troop_get_banner_mesh 玩家部队 得到 旗帜图
# INPUT: agent_no, troop_no agent和troop获取旗帜模组
# OUTPUT: banner_mesh
("agent_troop_get_banner_mesh",
搜到其中的这段:
(try_begin),
(eq, ":party_template", "pt_deserters"),#逃兵
(assign, ":banner_mesh", "mesh_banners_default_c"),#旗帜默认c
(else_try),
在此后面添加你想显示的小组织阵营的兵的定义,就像这样
#原版
(try_begin),
(eq, ":party_template", "pt_deserters"),#逃兵
(assign, ":banner_mesh", "mesh_banners_default_c"),#旗帜默认c
(else_try),
#原版
#+++++++++++++++++++++++++++++++++++++++++++++
(store_troop_faction,":troop_faction",":troop_no"), # 宁静指导 cccc bore
(this_or_next|eq,":troop_faction","fac_red_order"),
(this_or_next|eq,":troop_faction","fac_bright_brh"),
(this_or_next|eq,":troop_faction","fac_grail_order"),
(this_or_next|eq,":troop_faction","fac_thorn_order"),
(this_or_next|eq,":troop_faction","fac_seamon_companion"),
(this_or_next|eq,":troop_faction","fac_hunter_brotherhood"),
(this_or_next|eq,":troop_faction","fac_ranger"),
(this_or_next|eq,":troop_faction","fac_ashashin"),
(this_or_next|eq,":troop_faction","fac_black_khergits"),
(this_or_next|eq,":troop_faction","fac_dark_knights"),
(this_or_next|eq,":troop_faction","fac_beast"),
(this_or_next|eq,":troop_faction","fac_savages"),
(this_or_next|eq,":troop_faction","fac_taiga_bandits"),
(this_or_next|eq,":troop_faction","fac_yiletan"),
(this_or_next|eq,":troop_faction","fac_forest_bandits"),
(this_or_next|eq,":troop_faction","fac_rat_lake_gang"),
(this_or_next|eq,":troop_faction","fac_golden_boar_leg"),
(this_or_next|eq,":troop_faction","fac_secret_hand"),
(this_or_next|eq,":troop_faction","fac_ember_cult"),
(this_or_next|eq,":troop_faction","fac_grace"),
(this_or_next|eq,":troop_faction","fac_advent"),
(this_or_next|eq,":troop_faction","fac_epiphany"),
(this_or_next|eq,":troop_faction","fac_resting"),
(this_or_next|eq,":troop_faction","fac_sacrificial"),
(this_or_next|eq,":troop_faction","fac_para_aboriginal"),
(this_or_next|eq,":troop_faction","fac_kan"),
(this_or_next|eq,":troop_faction","fac_masa_hillman"),
(this_or_next|eq,":troop_faction","fac_shields_hood"),
(eq,":troop_faction","fac_outlaws"),
(faction_get_slot, ":cur_faction_banner", ":troop_faction", slot_faction_banner),#获取阵营旗帜
(assign, ":banner_mesh", ":cur_faction_banner"), #使用阵营旗帜
#+++++++++++++++++++++++++++++++++++++++++++++
(else_try),
……………………后面省略
|
这样就可以了。
我的方案2感觉更简洁,然而因为涉及开局执行一次的脚本,故而若没其他操作就得要 重开存档 生效。
|
|