|
本帖最后由 阳光刺破心脏 于 2020-2-1 12:05 编辑
———————————————————————————————————————————
开始新的游戏,城市、城堡、村庄都改成新的图标,让大地图流逝一段时间后,
就会惊讶地发现村庄图标变回战团的,而城市、城堡则不会。可能是什么原因造成的?
———————————————————————————————————————————
问题已经解决,可以作为修改大地图图标参考经验(可能要注意):
引用 2楼 原评论:
村庄会被掠夺,村庄有三种图标,完好的,被掠夺中的,和掠夺后的,在icon里面。村庄也许要一些触发器设定
我专门去查了一下,在map_icon里面确实除了parties直接引用的icon_village_a/b/c之外,还有burnt(焚烧)和deserted(荒废)两种图标。
我们可以在 module_scripts.py 文件里查到 script_process_village_raids 。
虽然村庄parties里引用了图标,在载入地图后还是会重新调用这个脚本,对村庄状态进行实时判断,决定图标的变化。
特别是你更换的村庄图标与战团不同名(即图标命名非 icon_village_a、icon_village_burnt_a、icon_village_deserted_a、icon_village_b ...... 、icon_village_c ......)
先看看这个 script 对村庄图标的定义:
(try_for_range, ":village_no", villages_begin, villages_end), ## 循环所有村庄
##CABA Fix
(try_begin), #如果是:
(this_or_next|is_between, ":village_no", "p_village_16", "p_village_23"), #Shapeshte 村到 Shulus 村 (判断到 Ilvia,不包括Shulus)
(this_or_next|is_between, ":village_no", "p_village_49", "p_village_51"), #Tismirr 村 和 Karindi 村
(this_or_next|eq, ":village_no", "p_village_75"), #Bhulaban 村
(is_between, ":village_no", "p_village_85", "p_village_87"), #Ismirala 村和 Slezkh 村,以上所有村庄——
(assign, ":normal_village_icon", "icon_village_snow_a"), # 定义无掠夺的图标:icon_village_snow_a
(assign, ":burnt_village_icon", "icon_village_snow_burnt_a"), # 定义烧村时的图标:icon_village_snow_burnt_a
(assign, ":deserted_village_icon", "icon_village_snow_deserted_a"), # 定义荒废时的图标:icon_village_snow_deserted_a
(else_try), #如果是:
(is_between, ":village_no", "p_village_91", "p_salt_mine"), #Ayn Assuadi 村到 Rushdigh 村
(assign, ":normal_village_icon", "icon_village_c"), #(结构同上)
(assign, ":burnt_village_icon", "icon_village_burnt_c"),
(assign, ":deserted_village_icon", "icon_village_deserted_c"),
(else_try), ## 其他所有村庄
(assign, ":normal_village_icon", "icon_village_a"), #(结构同上)
(assign, ":burnt_village_icon", "icon_village_burnt_a"),
(assign, ":deserted_village_icon", "icon_village_deserted_a"),
(try_end),
##CABA Fix
总结:图标变回战团的,你可以看看是不是 script_process_village_raids 依然引用的是战团原本的图标。要自己根据情况修改代码。
|
|