- 好友
- 0
- 在线时间
- 0 小时
- 最后登录
- 2024-12-2
扈从
- UID
- 3193117
- 第纳尔
- 1154
- 精华
- 0
- 互助
- 8
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 20
- 注册时间
- 2020-7-13
鲜花( 13) 鸡蛋( 0)
|
本帖最后由 紫耀石AX 于 2022-12-25 08:40 编辑
她城子mod中,红国完成改革后其领内会产生大量的狮骑士礼堂
从个人情怀上来说,这算是妥妥的违章建筑了,再加上ai时不时还一堆强度不如29龙的fw自建,自己一个个去拆那得累得要死,由此便产生了这段代码
- (try_for_range,":var_0","p_town_1","p_village_1"),
- (party_get_slot,":var_1",":var_0",7),
- (store_faction_of_party,":var_2",":var_0"),
- (this_or_next|eq,":var_2","fac_player_supporters_faction"),
- (eq,":var_1","trp_player"),
- (party_get_slot,":var_3",":var_0",289),
- (gt,":var_3",0),
- (store_troop_faction,":var_4",":var_3"),
- (2190,":var_5","fac_player_faction",":var_4"),
- (2171,":var_6",":var_3"),
- (this_or_next|eq,":var_3","trp_lion_knight"),#黑名单常驻人员
- (neg|ge,":var_6",45), #等级低于45被拉黑
- (neg|ge,":var_5",10), #关系低于10被拉黑
- (neg|eq,":var_3","trp_griffon_knight"),#白名单
- (neg|eq,":var_3","trp_radiant_cross_knight"),
- (neg|eq,":var_3","trp_phoenix_knight"),
- (neg|eq,":var_3","trp_raven_spear_knight"),
- (neg|eq,":var_3","trp_clarion_ranger"),
- (neg|eq,":var_3","trp_silvermist_ranger"),
- (neg|eq,":var_3","trp_shadow_centurion"),#白名单
- (try_begin),
- (eq,":var_1","trp_player"),
- (party_set_slot,":var_0",289,0),
- (else_try),
- (party_set_slot,":var_0",289,"trp_griffon_knight"),
- (try_end),
- (try_end),
复制代码
魔球新建一个触发器,把代码里的东西给复制上去,设定好触发时间即可
可以有效处理ai乱铺违章建筑
具体机制:
如果玩家领地内存在违章建筑,将会被直接拆除。
自立后如果友军领主的领地内存在违章建筑将会被替换狮鹫骑士的礼堂
- 96.000000 0.000000 0.000000 0 27 6 3 1224979098644774912 648518346341351446 648518346341351504 521 3 1224979098644774913 1224979098644774912 7 2204 2 1224979098644774914 1224979098644774912 1073741855 2 1224979098644774914 432345564227567630 31 2 1224979098644774913 360287970189639680 521 3 1224979098644774915 1224979098644774912 289 32 2 1224979098644774915 0 2173 2 1224979098644774916 1224979098644774915 2190 3 1224979098644774917 432345564227567629 1224979098644774916 2171 2 1224979098644774918 1224979098644774915 1073741855 2 1224979098644774915 360287970189640009 2147483678 2 1224979098644774918 45 2147483678 2 1224979098644774917 10 2147483679 2 1224979098644774915 360287970189640013 2147483679 2 1224979098644774915 360287970189640016 2147483679 2 1224979098644774915 360287970189640023 2147483679 2 1224979098644774915 360287970189640015 2147483679 2 1224979098644774915 360287970189640017 2147483679 2 1224979098644774915 360287970189640021 2147483679 2 1224979098644774915 360287970189640020 4 0 31 2 1224979098644774913 360287970189639680 501 3 1224979098644774912 289 0 5 0 501 3 1224979098644774912 289 360287970189640013 3 0 3 0
复制代码
如果你不会用魔球那么打开triggers.txt
将计数器+1(triggersfile version 1下面那个数字,和触发器总数必须对上,对不上可能就进不去游戏了)
然后在文件最底部空行把一下代码粘贴进去(收尾的0背后必须有空格,没了可能就进不去游戏了)
因为txt代码的并不稳定,我不保证日后版本更新后还能不能用。
|
评分
-
查看全部评分
|