首页 骑马与砍杀 骑马与砍杀攻略 正文

骑马与砍杀战团维京征服村庄招募player的bug怎么修复

骑马与砍杀战团维京征服 村庄招募player的bug修复

今天为大家带来的是骑马与砍杀战团维京征服村庄招募player的bug修复,一起来看看吧!

村庄招募player的bug修复

以liberty or death为例,打开scripts.txt,查找cf_village_recruit_volunteers_cond,得到

cf_village_recruit_volunteers_cond -1

12 2147484189 3 144115188075855974 35 2 2147484189 3 144115188075855974 35 1 2147484209 3 144115188075855974 39 1 2204 2 1224979098644774912 144115188075855974 521 3 1224979098644774913 144115188075855974 26 30 2 1224979098644774913 0 1073741854 2 1224979098644774913 5 1073741855 2 1224979098644774912 144115188075856219 31 2 144115188075856219 0 561 3 144115188075855974 93 0 1633 2 1224979098644774914 648518346341351424 30 2 1224979098644774914 1

修改为

cf_village_recruit_volunteers_cond -1

13 2147484189 3 144115188075855972 35 2 2147484189 3 144115188075855972 35 1 2147484209 3 144115188075855972 39 1 2204 2 1224979098644774912 144115188075855972 521 3 1224979098644774913 144115188075855972 26 30 2 1224979098644774913 0 1073741854 2 1224979098644774913 5 1073741855 2 1224979098644774912 144115188075856217 31 2 144115188075856217 0 561 3 144115188075855972 93 0 561 3 144115188075855972 92 1 1633 2 1224979098644774914 648518346341351424 30 2 1224979098644774914 1

原理:

在原版module_scripts.py中,有如下代码:

("cf_village_recruit_volunteers_cond", #村庄征募志愿兵条件

[(neg|party_slot_eq, "$current_town", slot_village_state, svs_looted),

(neg|party_slot_eq, "$current_town", slot_village_state, svs_being_raided),

(neg|party_slot_ge, "$current_town", slot_village_infested_by_bandits, 1),

(store_faction_of_party, ":village_faction", "$current_town"),

(party_get_slot, ":center_relation", "$current_town", slot_center_player_relation),

(ge, ":center_relation", 0),

(this_or_next|ge, ":center_relation", 5),

(this_or_next|eq, ":village_faction", "$players_kingdom"),

(eq, "$players_kingdom", 0),

(party_slot_ge, "$current_town", slot_center_volunteer_troop_amount, 0),

(party_slot_ge, "$current_town", slot_center_volunteer_troop_type, 1), #控制可征兵种类

(party_get_free_companions_capacity, ":free_capacity", "p_main_party"),

(ge, ":free_capacity", 1),

]),

若缺少红色的语句,则出现招募到player的bug,原理不详;

把加粗的1改为2,则可招募到2级兵,估计是控制可征兵种数目,未经严格测试

这样修改后征募2级兵的价格与1级兵相同,问能不能写一段代码,根据等级计算志愿兵价格?




骑马与砍杀战团维京征服村庄招募player的bug怎么修复

点击进入3DM《骑马与砍杀游戏论坛专区


点击进入 骑马与砍杀 专区

相关信息

骑马与砍杀2战马怎么刷 战马刷法介绍
骑马与砍杀2清除间谍任务怎么做 任务完成方法介绍
骑马与砍杀2耐力属性有什么用 属性作用介绍
骑马与砍杀2六级兵种有哪些 兵种升级一览
骑马与砍杀2活力属性有什么用 属性作用介绍
骑马与砍杀2辅助技能有哪些 全部技能一览
骑马与砍杀2指挥作战技巧有哪些 玩法技巧分享
骑马与砍杀2性格怎么培养 性格培养方法介绍
骑马与砍杀2藏身处简易打法 攻打藏身处小技巧分享
骑马与砍杀2卡对话框怎么办 对话框BUG解决方法分享
骑马与砍杀2阴谋怎么阻止 阴谋阻止方法攻略
骑马与砍杀2怎么修复物品 修复装备方法一览
骑马与砍杀2弓骑怎么玩 弓骑流派玩法介绍
骑马与砍杀2滑稽脸旗帜怎么画 滑稽绘制代码分享
骑马与砍杀2锻造怎么赚钱 锻造赚钱流教程一览
骑马与砍杀2攻城怎么降低战损 降低方法介绍
骑马与砍杀2如何使用嘴炮 嘴炮流玩法介绍
骑马与砍杀2怎么碰瓷领主 碰瓷赚钱的技巧介绍
骑马与砍杀2怎么征服地图 全地图快速打通思路分享
骑马与砍杀2怎么开厂断粮 断粮方法介绍