An interesting coincidence. Earlier today, I "coded" (term used loosely since I mostly just mash scripts together) the ability to edit the equipment of lords through a dialogue option.
In module_dialogs.py, search for this block.
插入代码块:
[anyone|plyr,"lord_talk",[(eq, "$cheat_mode", 1),
],
"CHEAT -- Let's duel (insult)", "lord_respond_to_insult_challenge_duel",
[
]],
Put another block below it, like this.
插入代码块:
[anyone|plyr,"lord_talk", [],
"Let me see your equipment.", "cheat_review_lord_equipment",[]],
[anyone,"cheat_review_lord_equipment", [], "Very well, it's all here...", "lord_pretalk",[(change_screen_equip_other)]],
Edit 1: Already been posted, although not in module format. Give me about 20 minutes and I'll have a version for any NPC.
Edit 2: Maybe this? I couldn't get it working for every NPC at once, and I'm still testing this due to my current character not being married. I'll report back soon on whether it works or not.
Above this block (at the very bottom):
插入代码块:
[anyone|plyr,"free", [[in_meta_mission]], " Good-bye.", "close_window",[]],
[anyone|plyr,"free", [[neg|in_meta_mission]], " [Leave]", "close_window",[]],
Put this:
插入代码块:
[anyone|plyr,"spouse_talk", [],
"Let me see your equipment.", "cheat_review_spouse_equipment",[]],
[anyone,"cheat_review_spouse_equipment", [], "Very well, it's all here...", "close_window",[(change_screen_equip_other)]],