Help please! Assigning fiefs as Co-ruler (married Claimant after Rebellion)

正在查看此主题的用户

bakabaka

Recruit
How do I tweak the codes below to allow my character to assign fiefs as Co-ruler (married Lady Isolla)?

插入代码块:
[anyone|plyr, "minister_talk",
[
#(is_between, "$g_player_minister", active_npcs_begin, kingdom_ladies_end),
],
"I wish you to grant one of my vassals a fief.", "minister_grant_fief",
[]],

[anyone|plyr, "minister_talk",
[
(is_between, "$g_player_minister", active_npcs_begin, kingdom_ladies_end),
(assign, ":fief_found", -1),
##diplomacy start+ Handle player is co-ruler of kingdom
(assign, ":alt_faction", "fac_player_supporters_faction"),
(try_begin),
	(is_between, "$players_kingdom", npc_kingdoms_begin, npc_kingdoms_end),
	(call_script, "script_dplmc_get_troop_standing_in_faction", "trp_player", "$players_kingdom"),
	(ge, reg0, DPLMC_FACTION_STANDING_LEADER_SPOUSE),
	(assign, ":alt_faction", "$players_kingdom"),
(try_end),
##diplomacy end+
(try_for_range, ":center", centers_begin, centers_end),
(eq, ":fief_found", -1),
(store_faction_of_party, ":center_faction", ":center"),
##diplomacy start+ Handle player is co-ruler of kingdom
(this_or_next|eq, ":center_faction", ":alt_faction"),
##diploamcy end+
(eq, ":center_faction", "fac_player_supporters_faction"),
(party_get_slot, ":town_lord", ":center", slot_town_lord),
(try_begin),
(ge, ":town_lord", active_npcs_begin),
(store_faction_of_troop, ":town_lord_faction", ":town_lord"),
##diplomacy start+ Handle player is co-ruler of kingdom
(neq, ":town_lord_faction", ":alt_faction"),
##diplomacy end+
(neq, ":town_lord_faction", "fac_player_supporters_faction"),
(assign, ":town_lord", -1),
(try_end),
(lt, ":town_lord", 0),
(assign, ":fief_found", ":center"),
(try_end),
(gt, ":fief_found", -1),
(str_store_party_name, s4, ":fief_found"),
],
"I wish to make myself lord of {s4}.", "minister_grant_self_fief",
[]],

[anyone, "minister_grant_self_fief",
[
],
"As you wish. You shall be lord of {s4}.", "minister_pretalk",
[
(assign, ":fief_found", -1),
##diplomacy start+ Handle player is co-ruler of kingdom
(assign, ":alt_faction", "fac_player_supporters_faction"),
(try_begin),
	(is_between, "$players_kingdom", npc_kingdoms_begin, npc_kingdoms_end),
	(call_script, "script_dplmc_get_troop_standing_in_faction", "trp_player", "$players_kingdom"),
	(ge, reg0, DPLMC_FACTION_STANDING_LEADER_SPOUSE),
	(assign, ":alt_faction", "$players_kingdom"),
(try_end),
##diplomacy end+
(try_for_range, ":center", centers_begin, centers_end),
(eq, ":fief_found", -1),
(store_faction_of_party, ":center_faction", ":center"),
##diplomacy start+ Handle player is co-ruler of kingdom
(this_or_next|eq, ":center_faction", ":alt_faction"),
##diplomacy end+
(eq, ":center_faction", "fac_player_supporters_faction"),
(party_get_slot, ":town_lord", ":center", slot_town_lord),
(try_begin),
(ge, ":town_lord", active_npcs_begin),
(store_faction_of_troop, ":town_lord_faction", ":town_lord"),
##diplomacy start+ Handle player is co-ruler of kingdom
(neq, ":town_lord_faction", ":alt_faction"),
##diplomacy end+
(neq, ":town_lord_faction", "fac_player_supporters_faction"),
(assign, ":town_lord", -1),
(try_end),
(lt, ":town_lord", 0),
(assign, ":fief_found", ":center"),
(try_end),


(call_script, "script_give_center_to_lord", ":fief_found", "trp_player", 0),
(try_begin),
(faction_slot_eq, "$players_kingdom", slot_faction_political_issue, ":fief_found"),
(faction_set_slot, "$players_kingdom", slot_faction_political_issue, -1),
(try_end),
(str_store_party_name, s4, ":fief_found"),

]],

I'm not very good at these  :grin:
Thanx
 
后退
顶部 底部