- 好友
- 0
- 在线时间
- 0 小时
- 最后登录
- 2024-12-15
扈从
- UID
- 3193117
- 第纳尔
- 1154
- 精华
- 0
- 互助
- 8
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 20
- 注册时间
- 2020-7-13
鲜花( 13) 鸡蛋( 0)
|
发表于 2023-1-22 18:27:59
|
显示全部楼层
之前试着扒眼珠子吃俘虏的代码,但是没成功,这里只有一个定期巡逻队补兵和清除俘虏的代码,可以试试
(try_for_parties,":var_0"),
(party_get_template_id,":var_1",":var_0"),
(eq,":var_1","#巡逻队部队模板"),
(party_is_active,":var_0"),
(try_begin),
(party_get_num_companions,":var_2",":var_0"),
(neg|gt,":var_2",80),#人数低于此值补兵
(assign,":var_3","#巡逻队补兵模板"),
(1675,":var_0",":var_3"),
(try_end),
(1651,":var_4",":var_0"),#清除俘虏
(try_for_range_backwards,":var_5",0,":var_4"),
(1656,":var_6",":var_0",":var_5"),
(1657,":var_7",":var_0",":var_5"),
(party_remove_prisoners,":var_0",":var_6",":var_7"),
(try_end),
(try_end), |
|