- 好友
- 16
- 在线时间
- 95 小时
- 最后登录
- 2024-12-18
见习骑士
- UID
- 2462463
- 第纳尔
- 1587
- 精华
- 0
- 互助
- 23
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 83
- 注册时间
- 2015-3-3
鲜花( 58) 鸡蛋( 0)
|
本帖最后由 战争傀儡阿格兰 于 2023-3-21 00:38 编辑
代码环境1.171
【战团】阿格兰魔球修改器——合集https://bbs.mountblade.com.cn/thread-2097734-1-1.html
迟来12年的mod,骑砍都市传说“娶已婚夫人”,今天成为现实了!
代码实际效果:看图。(人妻斩!娶已婚夫人!能婚礼!重婚,母女盖饭,后宫,牛头人,NTR)更多图上传不了,去贴吧看吧
https://tieba.baidu.com/p/828127 ... &cid=0#146953179775
这个求爱系统用了茫茫多脚本判断参数,改起来需要有耐心(如果你有source,还会编py,按照py改比较快)
先试试:
直接conversation.txt整个文件替换,进游戏后不要和别人说话,只找你要的夫妻,等接到任务等宴会后,再把conversation.txt替换回来。
conversation.txt
(843.52 KB, 下载次数: 637)
←native的成品conversation.txt
再试试:
若该mod整个txt替换不成功,只能自己改,共有4行替换,用(1/4)至(4/4)这种标注
1.找到所在行,用回车键把这行孤立起来
2.记好原来mod标红地方的的数字(或者直接留下红色的不复制,只复制替换黑色部分)
3.整行替换,然后再把红色数字替换掉我给的txt码。(红色数字就是线,把对话前前后后穿起来用的,我改的是删除已婚判断)
conversation.txt行替换(1/4)profess_myself_your_most_ardent_admirer
conversation.txt行替换(5/4)(非必须,效果是让男领主适婚对象,选则人妻。因为strings.txt里的str_id不同,会说其他奇怪的话) our_custom_to_seal_any_such_alliances_with_marriage
dlga_lord_talk_ask_marriage_1:lord_pretalk.1 4095 503 22 2133 2 144115188075856070 -1 4 0 1506 2 1224979098644774912 360287970189639680 31 2 1224979098644774912 1 540 3 144115188075855987 30 -1 2133 2 144115188075856070 144115188075855987 5 0 1506 2 1224979098644774912 360287970189639680 31 2 1224979098644774912 0 2133 2 144115188075856070 -1 4 0 560 3 144115188075855987 30 0 520 3 1224979098644774913 144115188075855987 30 1506 2 1224979098644774914 1224979098644774913 31 2 1224979098644774914 1 2133 2 144115188075856070 1224979098644774913 2320 2 11 216172782113783981 2322 2 14 144115188075856070 2320 2 15 216172782113786590 3 0 3 0 31 2 144115188075856070 -1 It_is_our_custom_to_seal_any_such_alliances_with_marriage._Unfortunately,_no_one_in_my_household_is_eligible_to_wed. 154 0 NO_VOICEOVER
conversation.txt整行替换(6/4)(非必须,效果是让国王不再说什么子女安排。因为strings.txt里的str_id不同,会说其他奇怪的话)plans_for_my_children
dlga_lord_talk_ask_marriage_1:lord_pretalk 4095 503 1 542 3 432345564227567618 11 144115188075855987 You_will_not_take_offense_if_I_tell_you_that,_as_a_king,_I_have_other_plans_for_my_children. 154 0 NO_VOICEOVER
[/quote]
conversation.txt整行替换(7/4)(非必须,重婚用,容易mod不兼容,修改中)dlga_lord_talk_ask_something_2:lord_marriage_permission
dlga_lord_talk_ask_something_2:lord_marriage_permission 69631 491 5 200 1 504403158265495593 2147483851 1 504403158265495593 2147483850 1 504403158265495593 546 3 504403158265495593 2 144115188075855987 2320 2 19 216172782113786561 {s19} 496 0 NO_VOICEOVER
修改处用标记“NTR-”
py码(1/4)
[anyone|plyr,"lady_talk",
[
#(troop_get_type, ":is_female", "trp_player"),
#(eq, ":is_female", 0),
(troop_slot_eq, "$g_talk_troop", slot_troop_met, 1),
#(troop_slot_eq, "$g_talk_troop", slot_troop_spouse, -1),#NTR-1
#(neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),#NTR-1
(neq, "$lady_flirtation_location", "$g_encountered_party"),
],
"My lady, I would like to profess myself your most ardent admirer", "lady_profess_admiration",
[#NTR-1
(troop_set_slot, "$g_talk_troop", slot_troop_player_relation, 33),#NTR-1
(troop_set_slot, "$g_talk_troop", slot_troop_met, 2),#NTR-1
(assign, "$g_time_to_spare", 0),
]],
#NTR-1旧版,因为call_script,导致mod兼容性太差,已直接改数值,跳过脚本判断
[anyone|plyr,"lady_talk",
[
(troop_get_type, ":is_female", "trp_player"),
(eq, ":is_female", 0),
(troop_slot_eq, "$g_talk_troop", slot_troop_met, 1),
#(troop_slot_eq, "$g_talk_troop", slot_troop_spouse, -1),#NTR-1
#(neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),#NTR-1
(neq, "$lady_flirtation_location", "$g_encountered_party"),
],
"My lady, I would like to profess myself your most ardent admirer", "lady_profess_admiration",
[
(call_script, "script_troop_get_romantic_chemistry_with_troop", "$g_talk_troop", "trp_player"),
(assign, ":cheat_change", reg0),#NTR-1
(val_add,":cheat_change", 90),#NTR-1
(assign, ":reaction_change",":cheat_change"),
(val_div, ":reaction_change", 2),
(val_max, ":reaction_change", -2),
(call_script, "script_troop_change_relation_with_troop", "$g_talk_troop", "trp_player", ":reaction_change"),
(assign, "$g_time_to_spare", 0),
]],
py码(2/4)
[anyone|plyr,"lady_talk",
[
# (neg|check_quest_active, "qst_formal_marriage_proposal"),#NTR-2
# (neg|troop_slot_ge, "trp_player", slot_troop_betrothed, active_npcs_begin),#NTR-2
#(neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),#NTR-2
(troop_slot_eq, "$g_talk_troop", slot_troop_met, 2),
#(eq, "$talk_context", tc_courtship),#NTR-2
],
"Do you think that we may have a future together, my lady?", "lady_marriage_discussion",[
]],
py码(3/4) [anyone,"lady_marriage_discussion",
[
#(call_script, "script_get_kingdom_lady_social_determinants", "$g_talk_troop"),#NTR-3,skip this
#(assign, ":guardian", reg0),
(troop_slot_ge, ":guardian", slot_lord_granted_courtship_permission, 233),
#(str_store_troop_name, s4, reg0),
#(call_script, "script_troop_get_family_relation_to_troop", ":guardian", "$g_talk_troop"),
],
"Oh {playername}, how happy that would make me! But my {s11} {s4} would never allow it... Perhaps it is best that we part...", "lady_betrothed", []],
py码(4/4)
#no permission
[anyone,"lord_marriage_permission", [
#(neg|troop_slot_eq, "$g_talk_troop", slot_lord_granted_courtship_permission, 1),#NTR-4,skip this
(troop_slot_eq, "$g_talk_troop", slot_lord_granted_courtship_permission, 231),
],
"Great heaven, man -- if I haven't given you permission to see her, do you think I'm going to give you permission to marry her?", "lord_pretalk",[
(call_script, "script_fail_quest", "qst_formal_marriage_proposal"),
(call_script, "script_end_quest", "qst_formal_marriage_proposal"),
]],
py码:(5/4)
[anyone,"lord_talk_ask_marriage_1", [
(assign, "$marriage_candidate", -1),
(try_begin),
(troop_get_type, ":is_female", "trp_player"),
(eq, ":is_female", 1),
(troop_slot_eq, "$g_talk_troop", slot_troop_spouse, -1),
(assign, "$marriage_candidate", "$g_talk_troop"),
(else_try),
(troop_get_type, ":is_female", "trp_player"),
(eq, ":is_female", 0),
(assign, "$marriage_candidate", -1),
(try_begin),#NTR-5
(troop_slot_ge, "$g_talk_troop", slot_troop_spouse, 0),
(troop_get_slot, ":lady", "$g_talk_troop", slot_troop_spouse),
(troop_get_type, ":gender_1", ":lady"),
(eq, ":gender_1", 1),
(assign, "$marriage_candidate", ":lady"),
(str_store_string, s11, "str_wife"),
(str_store_troop_name, s14, "$marriage_candidate"),
(str_store_string, s15, "str_it_is_our_custom_to_seal_any_such_alliances_with_marriage_and_in_fact_we_have_been_looking_for_a_suitable_groom_for_my_s11_s14"),
(try_end),
(try_end),
(eq, "$marriage_candidate", -1),
],
"It is our custom to seal any such alliances with marriage. Unfortunately, no one in my household is eligible to wed.",
"lord_pretalk",[
]],
py码(6/4)
[anyone,"lord_talk_ask_marriage_1", [
#(faction_slot_eq, "$g_talk_troop_faction", slot_faction_leader, "$g_talk_troop"),
(faction_slot_eq, "fac_outlaws", slot_faction_leader, "$g_talk_troop"),
],#NTR-6
"You will not take offense if I tell you that, as a king, I have other plans for my children.",
"lord_pretalk",[
]],
py码(7/4)
#Marriage proposal
[anyone|plyr,"lord_talk_ask_something_2",[
(check_quest_active, "qst_formal_marriage_proposal"),
(neg|check_quest_failed, "qst_formal_marriage_proposal"),
(neg|check_quest_succeeded, "qst_formal_marriage_proposal"),
#(neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),#NTR-7,for bigamous marriage
(quest_slot_eq, "qst_formal_marriage_proposal", slot_quest_target_troop, "$g_talk_troop"),
(quest_get_slot, ":bride", "qst_formal_marriage_proposal", slot_quest_giver_troop),
(str_store_troop_name, s10, ":bride"),
# (call_script, "script_troop_get_family_relation_to_troop", ":bride", "$g_talk_troop"),NTR-7,
# (call_script, "script_troop_get_relation_with_troop", "trp_player", ":bride"),NTR-7,
# (try_begin),NTR-7,
#(gt, reg0, 20),NTR-7,
(str_store_string, s19, "str_i_wish_to_marry_your_s11_s10_i_ask_for_your_blessing"),
#(else_try),NTR-7,
# (str_store_string, s19, "str_i_wish_to_marry_your_s11_s10_i_ask_for_your_help"),NTR-7,
# (try_end),NTR-7,
], "{s19}", "lord_marriage_permission",[
]],
|
评分
-
查看全部评分
鲜花鸡蛋半世尘埃 在2023-2-26 10:56 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 半世尘埃 在2023-2-26 10:56 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下
|