本帖最后由 黑暗路西法 于 2022-8-14 17:21 编辑
搜索script, # script_center_get_food_consumption然后把原本的代码改成
- (store_script_param_1, ":center_no"),
- (assign, ":food_consumption", 0),
- (try_begin),
- (party_slot_eq, ":center_no", slot_party_type, spt_town),
- (store_skill_level,reg1,skl_tactics,"trp_player"),
- (store_skill_level,reg2,skl_persuasion,"trp_player"),
- (store_add,reg3,reg1,reg2),
- (val_mul,reg3,250),
- (val_add,reg3,500),
- (assign, ":food_consumption", reg3),
- (else_try),
- (party_slot_eq, ":center_no", slot_party_type, spt_castle),
- (store_skill_level,reg1,skl_tactics,"trp_player"),
- (store_skill_level,reg2,skl_persuasion,"trp_player"),
- (store_add,reg3,reg1,reg2),
- (val_mul,reg3,15),
- (val_add,reg3,50),
- (assign, ":food_consumption", reg3),
- (try_end),
- (assign, reg0, ":food_consumption"),
复制代码 这个的效果是,玩家的每一级战术和说服力将增加城市粮食消耗250点,城堡粮食消耗15点如果想用队伍中最高技能来决定围城粮食消耗,可以改成- (store_script_param_1, ":center_no"),
- (assign, ":food_consumption", 0),
- (try_begin),
- (party_slot_eq, ":center_no", slot_party_type, spt_town),
- (call_script, "script_get_max_skill_of_player_party", "skl_tactics"),
- (assign,":tactic",reg0),
- (call_script, "script_get_max_skill_of_player_party", "skl_engineer"),
- (assign,":engineer",reg0),
- (store_add,reg3,":tactic",":engineer"),
- (val_mul,reg3,400),
- (val_add,reg3,500),
- (assign, ":food_consumption", reg3),
- (else_try),
- (party_slot_eq, ":center_no", slot_party_type, spt_castle),
- (call_script, "script_get_max_skill_of_player_party", "skl_tactics"),
- (assign,":tactic",reg0),
- (call_script, "script_get_max_skill_of_player_party", "skl_engineer"),
- (assign,":engineer",reg0),
- (store_add,reg3,":tactic",":engineer"),
- (val_mul,reg3,25),
- (val_add,reg3,50),
- (assign, ":food_consumption", reg3),
- (try_end),
- (assign, reg0, ":food_consumption"),
复制代码
效果同上,不过换成了检查玩家队伍中最高的战术和工程
skl是技能,可以参考header_skill来更改(或者直接看汉化也可以)
更正,这个计数器不能用,得换成局部变量,代码已更新
|