Command for removing a party from existence?

Users who are viewing this thread

Ailan

Veteran
I was wondering if there is a command for removing a party from the worldmap? I was trying to make a script for retrieving a fief given to a companion and having them return to your group.  I've got the fief being returned and the companion back in the group, but there is a ghost party of the Lord or lady that just sits at the castle given to them.
 
Ahh I see thank you, I was using that but without the right (troop_get_slot, "", "$g_talk_troop", slot_troop_leaded_party), before it.

It all is working but if I use the command to put someone back in my squad, from there on after I get Invalid Map Icon ID errors for create_party and others. :neutral:
 
I know its ugly but heres my code
Code:
  [anyone|plyr,"lord_talk_ask_something_2", [                        (is_between, "$g_talk_troop", companions_begin, companions_end),
  ],
   "I need you to relinquish a fief.", "member_fief_take_1",[]],
  [anyone,"member_fief_take_1", [
        ], "Which fief must I return?", "member_fief_take_2",[]],
		 
  [anyone|plyr|repeat_for_parties,"member_fief_take_2", [
		(store_repeat_object, ":center"),
                (is_between, ":center", centers_begin, centers_end),
		(party_slot_eq, ":center", slot_town_lord, "$g_talk_troop"), #ie, owned by player or unassigned
		(str_store_party_name, s11, ":center"),
		
        ], "{s11}", "member_fief_take_3",[
		(store_repeat_object, "$temp"),
		]],
		 
  [anyone|plyr, "member_fief_take_2", [
        ], "Never mind -- there is no fief I can take.", "lord_pretalk",[
		]],
		
  [anyone,"member_fief_take_3", [
        ], "{s5}", "close_window",[
		(try_begin),
        	(try_for_range, ":center", centers_begin, centers_end),
		(store_faction_of_party, ":center_faction", ":center"),
		(eq, ":center_faction", "fac_player_supporters_faction"),
		(neg|party_slot_eq, ":center", slot_town_lord, "$g_talk_troop"),
        	(troop_get_slot, ":led_party", "$g_talk_troop", slot_troop_leaded_party),
		(remove_party, ":led_party"),
		(troop_set_slot, "$g_talk_troop", slot_troop_leaded_party, -1),	
		(call_script, "script_recruit_troop_as_companion", "$g_talk_troop"),	
	        (troop_set_slot, "$g_talk_troop", slot_troop_banner_scene_prop, -1),          
	        (val_sub, "$g_companions_banner_id", 1), 
		(troop_set_slot, "$g_talk_troop", slot_troop_renown, -1),
		(try_end),		
		(troop_set_slot, "$g_talk_troop", slot_troop_wealth, -1), #represents accumulated loot
		  (troop_set_slot, "$g_talk_troop", slot_troop_original_faction, -1),
		(try_end),	
				
		(call_script, "script_give_center_to_lord", "$temp", "trp_player", 0),
  
		(str_store_party_name, s17, "$temp"),
		(store_sub, ":npc_no", "$g_talk_troop", "trp_npc1"),
		(store_add, ":speech", "str_npc1_fief_relief", ":npc_no"),
        (str_store_string, s5, ":speech"),  		
		]],
 
Back
Top Bottom