- 好友
- 3
- 在线时间
- 2 小时
- 最后登录
- 2024-2-3
扈从
- UID
- 2978517
- 第纳尔
- 737
- 精华
- 0
- 互助
- 3
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 40
- 注册时间
- 2018-2-1
鲜花( 8) 鸡蛋( 0)
|
发表于 2022-4-2 15:31:08
|
显示全部楼层
想取消城镇上限的话,打开Custom Commander V1.445.1-S1.09\source\module_simple_triggers.py文件,将这一段删掉或者注释掉。
#soldiers run when castle/town garrison exceeds limit
(6,
[
(try_for_range, ":center_no", walled_centers_begin, walled_centers_end),
(call_script, "script_party_get_ideal_size", ":center_no"),
(assign,":garrison_limit",reg0),
(party_get_num_companion_stacks, ":num_companion_stacks", ":center_no"),
(try_for_range_backwards, ":stack_no", 0, ":num_companion_stacks"),
(party_stack_get_troop_id, ":stack_troop", ":center_no", ":stack_no"),
(neg|troop_is_hero, ":stack_troop"),
(party_stack_get_size, ":stack_size", ":center_no", ":stack_no"),
(party_get_num_companions, ":num_companions", ":center_no"),
(gt,":num_companions",":garrison_limit"),
(store_sub, ":number_need_to_move", ":num_companions", ":garrison_limit"),
(val_min, ":number_need_to_move", ":stack_size"),
#(store_character_level, ":stack_troop_level", ":stack_troop"),
#(assign,":move_level_limit",20),
#(lt,":stack_troop_level",":move_level_limit"),
(party_remove_members, ":center_no", ":stack_troop", ":number_need_to_move"),
(try_end),
(try_end),
]),
然后再重新编译txt即可。 |
|