Tweaks for Viking Conquest (one for 2.028, others for 2.021, 2.012, 2.010 etc)

Users who are viewing this thread

JuJu70 said:
100 and 500 is the range for the loot. Change to something else like 1000 and 5000 and you will get 10x the cash loot.

Why not 1000000 to 5000000? :party:

LOL  :smile: that would be a awesome raid indeed! I could retire after it!

--> if you give us the modules then we can do cool stuff instead of this minor balance things *hint hint*  :mrgreen:
 
I wondered when you'd show up here JuJu :grin:.

JuJu70 said:
I guess because people get replaced overnight?

Exactly! It's like how if you bring villagers 6 sacks of wheat and 9 cows then they suddenly decide to have the 10,000 pening armour and years of fighting experience! Same magic at work.
U-k4u.jpg
:razz:
 
kraggrim said:
I wondered when you'd show up here JuJu :grin:.

JuJu70 said:
I guess because people get replaced overnight?

Exactly! It's like how if you bring villagers 6 sacks of wheat and 9 cows then they suddenly decide to have the 10,000 pening armour and years of fighting experience! Same magic at work.
U-k4u.jpg
:razz:

Not for long  :shock: Anyways I never liked recruitment in MB because it looked silly (peasant to knight in 10 days). If I had my say the system would've been totally different.
 
kalarhan said:
JuJu70 said:
of this minor balance cheat things

Fixed

c'mon, one person cheat is another person fun. You are just trying to distract us from the modules release topic, right?  :twisted:

You know I always wonder why people want all these "tweaks" that remove all the challenge? Actually, AI doesn't cheat that much in MB, so why handicap it even more by removing the checks on player?
 
JuJu70 said:
You know I always wonder why people want all these "tweaks" that remove all the challenge?

Because not everyone shares the opinion of the devs on what makes the game enjoyable or balanced.

JuJu70 said:
If I had my say the system would've been totally different.

If you had your say armies in M&B would consist 99% of guys with sticks and troop trees/training would be completely redundant. Which they virtually are in VC. :razz:
 
JuJu70 said:
You know I always wonder why people want all these "tweaks" that remove all the challenge? Actually, AI doesn't cheat that much in MB, so why handicap it even more by removing the checks on player?

florinteal said:
Because not everyone shares the opinion of the devs on what makes the game enjoyable or balanced.

We like the game. We respect the devs vision, even when we don’t agree with it. MB was made to be moddable, it is one the main reasons it is still around almost 10 years later.

Games that we cant change, or even cheat, end up in the old list soon or later. Without this we would not have Brytenwalda, nor Viking Conquest, nor Floris, Diplomacy, ACOK, OSP scripts, .... you name it.

Name games from 2006 that you still have installed on your computer  :mrgreen:

Modding/tweaking/cheating to create a specific scenario for a campaign/ are all parts of the game FUN factor.

Now, stop distracting us and tell us about the modules  :wink:
 
Now, stop distracting us and tell us about the modules  :wink:

It's not up to me.
If you had your say armies in M&B would consist 99% of guys with sticks and troop trees/training would be completely redundant. Which they virtually are in VC. :razz:

Actually, no. But there would have been more limitations, and yes troop trees would have been significantly cut, but that is not necessarily a bad thing.
 
JuJu70 said:
there would have been more limitations, and yes troop trees would have been significantly cut, but that is not necessarily a bad thing.

It is if you're coming from native and actually enjoyed the ability to train your men into viable soldiers. No one comes out of the womb knowing how to fight. The fact that native uses time dilation to make this process occur in months rather than years is a concession for the sake of gameplay more than anything else, which a lot of people who play games appreciate.
 
Ok guys, theres plenty of discussions about game balance (and troop xp in particular) on the board, maybe we can just have this thread for the optional tweaks :smile:
 
kraggrim said:
Added "Change the village recruit type of to be based on the faction owning the village" to front page.

Kalarhan, any idea how to do this tweak for towns/castles?

Had a look myself but couldn't find where it is.
 
kraggrim said:
kraggrim said:
Added "Change the village recruit type of to be based on the faction owning the village" to front page.

Kalarhan, any idea how to do this tweak for towns/castles?

Had a look myself but couldn't find where it is.

I will check it out. The script that is called from towns/castle is small anyway:

A bit better:
Code:
("execute_town_menu_cosequence",
 [
	(store_script_param, <destination> = ":local_0", <script_param_no> = 1),
	(assign, <destination> = "$curr_menu_slot", <value> = 30),
	(try_begin),
		(val_add, <destination> = "$curr_menu_slot", <value> = 1),
		(eq, <value> = ":local_0", <value> = "$curr_menu_slot"),
		(try_begin),
			(this_or_next|eq, <value> = "$all_doors_locked", <value> = 1),
			(eq, <value> = "$sneaked_into_town", <value> = 1),
			(display_message, <string_id> = "str_door_locked", [hex_colour_code] = "maybe_color: 0XFFFFAAAA"),
		(else_try),
			(this_or_next|neg|eq, <value> = "$players_kingdom", <value> = "$g_encountered_party_faction"),
			(neg|troop_slot_ge, <troop_id> = "trp_player", <slot_no> = 7, <value> = 125),
			(neg|eq, <value> = "$campaign_type", <value> = 8),
			(neg|eq, <value> = "$g_player_eligible_feast_center_no", <value> = "$current_town"),
			(faction_slot_eq, <faction_id> = "$g_encountered_party_faction", <slot_no> = 4, <value> = 6),
			(faction_slot_eq, <faction_id> = "$g_encountered_party_faction", <slot_no> = 5, <value> = "$g_encountered_party"),
			(neg|check_quest_active, <quest_id> = "qst_wed_betrothed"),
			(neg|check_quest_active, <quest_id> = "qst_wed_betrothed_female"),
			(neg|troop_slot_ge, <troop_id> = "trp_player", <slot_no> = 30, <value> = "trp_npc1"),
			(jump_to_menu, <menu_id> = "menu_cannot_enter_court"),
		(else_try),
			(assign, <destination> = "$town_entered", <value> = 1),
			(call_script, <script_id> = "script_enter_court", [<script_param>...] = "$current_town"),
		(try_end),
	(else_try),
		(val_add, <destination> = "$curr_menu_slot", <value> = 1),
		(eq, <value> = ":local_0", <value> = "$curr_menu_slot"),
		(call_script, <script_id> = "script_fill_tournament_participants_troop", [<script_param>...] = "$current_town", [<param>...] = 1),
		(assign, <destination> = "$g_tournament_cur_tier", <value> = 0),
		(assign, <destination> = "$g_tournament_player_team_won", <value> = -1),
		(assign, <destination> = "$g_tournament_bet_placed", <value> = 0),
		(assign, <destination> = "$g_tournament_bet_win_amount", <value> = 0),
		(assign, <destination> = "$g_tournament_last_bet_tier", <value> = -1),
		(assign, <destination> = "$g_tournament_next_num_teams", <value> = 0),
		(assign, <destination> = "$g_tournament_next_team_size", <value> = 0),
		(jump_to_menu, <menu_id> = "menu_town_tournament"),
	(else_try),
		(val_add, <destination> = "$curr_menu_slot", <value> = 1),
		(eq, <value> = ":local_0", <value> = "$curr_menu_slot"),
		(try_begin),
			(this_or_next|eq, <value> = "$all_doors_locked", <value> = 1),
			(eq, <value> = "$sneaked_into_town", <value> = 1),
			(display_message, <string_id> = "str_door_locked", [hex_colour_code] = "maybe_color: 0XFFFFAAAA"),
		(else_try),
			(this_or_next|neg|eq, <value> = "$players_kingdom", <value> = "$g_encountered_party_faction"),
			(neg|troop_slot_ge, <troop_id> = "trp_player", <slot_no> = 7, <value> = 125),
			(neg|eq, <value> = "$campaign_type", <value> = 8),
			(neg|eq, <value> = "$g_player_eligible_feast_center_no", <value> = "$current_town"),
			(faction_slot_eq, <faction_id> = "$g_encountered_party_faction", <slot_no> = 4, <value> = 6),
			(faction_slot_eq, <faction_id> = "$g_encountered_party_faction", <slot_no> = 5, <value> = "$g_encountered_party"),
			(neg|check_quest_active, <quest_id> = "qst_wed_betrothed"),
			(neg|check_quest_active, <quest_id> = "qst_wed_betrothed_female"),
			(neg|troop_slot_ge, <troop_id> = "trp_player", <slot_no> = 30, <value> = "trp_npc1"),
			(jump_to_menu, <menu_id> = "menu_cannot_enter_court"),
		(else_try),
			(assign, <destination> = "$town_entered", <value> = 1),
			(call_script, <script_id> = "script_enter_court", [<script_param>...] = "$current_town"),
		(try_end),
	(else_try),
		(val_add, <destination> = "$curr_menu_slot", <value> = 1),
		(eq, <value> = ":local_0", <value> = "$curr_menu_slot"),
		(try_begin),
			(eq, <value> = "$talk_context", <value> = 18),
			(assign, <destination> = "$talk_context", <value> = 19),
			(assign, <destination> = "$g_mt_mode", <value> = 3),
			(store_faction_of_party, <destination> = ":local_1", <party_id> = "$current_town"),
			(faction_get_slot, <destination> = ":local_2", <faction_id> = ":local_1", <slot_no> = 43),
			(faction_get_slot, <destination> = ":local_3", <faction_id> = ":local_1", <slot_no> = 43),
			(faction_get_slot, <destination> = ":local_4", <faction_id> = ":local_1", <slot_no> = 44),
			(party_get_slot, <destination> = ":local_5", <party_id> = "$current_town", <slot_no> = 10),
			(modify_visitors_at_site, <scene_id> = ":local_5"),
			(reset_visitors),
			(try_begin),
				(party_get_slot, <destination> = ":local_6", <party_id> = "$current_town", <slot_no> = 240),
				(store_current_hours, <destination> = ":local_7"),
				(store_add, <destination> = ":local_8", <value> = ":local_6", <value> = 4),
				(neg|is_between, <value> = ":local_7", <lower_bound> = ":local_6", <upper_bound> = ":local_8"),
				(store_time_of_day, <destination> = ":local_9"),
				(try_begin),
					(ge, <value> = ":local_9", <value> = 6),
					(neg|ge, <value> = ":local_9", <value> = 22),
					(set_visitors, <entry_no> = 25, <troop_id> = ":local_2", <number_of_troops> = 2),
					(set_visitors, <entry_no> = 26, <troop_id> = ":local_2", <number_of_troops> = 1),
					(set_visitors, <entry_no> = 27, <troop_id> = ":local_3", <number_of_troops> = 2),
					(set_visitors, <entry_no> = 28, <troop_id> = ":local_4", <number_of_troops> = 1),
				(else_try),
					(set_visitors, <entry_no> = 25, <troop_id> = ":local_2", <number_of_troops> = 1),
					(set_visitors, <entry_no> = 26, <troop_id> = ":local_2", <number_of_troops> = 1),
					(set_visitors, <entry_no> = 27, <troop_id> = ":local_3", <number_of_troops> = 1),
					(set_visitors, <entry_no> = 28, <troop_id> = ":local_4", <number_of_troops> = 1),
				(try_end),
			(else_try),
				(store_time_of_day, <destination> = ":local_9"),
				(try_begin),
					(ge, <value> = ":local_9", <value> = 6),
					(neg|ge, <value> = ":local_9", <value> = 22),
					(set_visitors, <entry_no> = 25, <troop_id> = ":local_2", <number_of_troops> = 1),
					(set_visitors, <entry_no> = 26, <troop_id> = ":local_2", <number_of_troops> = 0),
					(set_visitors, <entry_no> = 27, <troop_id> = ":local_3", <number_of_troops> = 1),
					(set_visitors, <entry_no> = 28, <troop_id> = ":local_4", <number_of_troops> = 0),
				(else_try),
					(set_visitors, <entry_no> = 25, <troop_id> = ":local_2", <number_of_troops> = 1),
					(set_visitors, <entry_no> = 26, <troop_id> = ":local_2", <number_of_troops> = 0),
					(set_visitors, <entry_no> = 27, <troop_id> = ":local_3", <number_of_troops> = 0),
					(set_visitors, <entry_no> = 28, <troop_id> = ":local_4", <number_of_troops> = 0),
				(try_end),
			(try_end),
			(set_jump_mission, <mission_template_id> = "mst_town_center"),
			(jump_to_scene, <scene_id> = ":local_5"),
			(change_screen_mission),
		(else_try),
			(assign, <destination> = "$talk_context", <value> = 0),
			(call_script, <script_id> = "script_cf_enter_center_location_bandit_check"),
		(else_try),
			(party_get_slot, <destination> = ":local_5", <party_id> = "$current_town", <slot_no> = 10),
			(modify_visitors_at_site, <scene_id> = ":local_5"),
			(reset_visitors),
			(assign, <destination> = "$g_mt_mode", <value> = 0),
			(store_faction_of_party, <destination> = ":local_1", <party_id> = "$current_town"),
			(try_begin),
				(neg|eq, <value> = ":local_1", <value> = "fac_player_supporters_faction"),
				(faction_get_slot, <destination> = ":local_10", <faction_id> = "$g_encountered_party_faction", <slot_no> = 51),
				(faction_get_slot, <destination> = ":local_11", <faction_id> = "$g_encountered_party_faction", <slot_no> = 52),
				(faction_get_slot, <destination> = ":local_2", <faction_id> = ":local_1", <slot_no> = 42),
				(faction_get_slot, <destination> = ":local_3", <faction_id> = ":local_1", <slot_no> = 43),
			(else_try),
				(party_get_slot, <destination> = ":local_12", <party_id> = "$current_town", <slot_no> = 61),
				(faction_get_slot, <destination> = ":local_10", <faction_id> = ":local_12", <slot_no> = 51),
				(faction_get_slot, <destination> = ":local_11", <faction_id> = ":local_12", <slot_no> = 52),
				(faction_get_slot, <destination> = ":local_2", <faction_id> = ":local_12", <slot_no> = 42),
				(faction_get_slot, <destination> = ":local_3", <faction_id> = ":local_12", <slot_no> = 43),
			(try_end),
			(try_begin),
				(party_get_slot, <destination> = ":local_6", <party_id> = "$current_town", <slot_no> = 240),
				(store_current_hours, <destination> = ":local_7"),
				(store_add, <destination> = ":local_8", <value> = ":local_6", <value> = 4),
				(neg|is_between, <value> = ":local_7", <lower_bound> = ":local_6", <upper_bound> = ":local_8"),
				(set_visitor, <entry_no> = 23, <troop_id> = ":local_11"),
			(try_end),
			(set_visitor, <entry_no> = 24, <troop_id> = ":local_10"),
			(try_begin),
				(gt, <value> = ":local_2", <value> = 0),
				(assign, <destination> = reg0, <value> = ":local_3"),
				(assign, <destination> = reg1, <value> = ":local_3"),
				(assign, <destination> = reg2, <value> = ":local_2"),
				(assign, <destination> = reg3, <value> = ":local_2"),
			(else_try),
				(assign, <destination> = reg0, <value> = "trp_saxon_level1_landed"),
				(assign, <destination> = reg1, <value> = "trp_saxon_level1_landed"),
				(assign, <destination> = reg2, <value> = "trp_saxon_level1_companion"),
				(assign, <destination> = reg3, <value> = "trp_saxon_level0_landed"),
			(try_end),
			(shuffle_range, <reg_no> = 0, <reg_no> = 4),
			(try_begin),
				(party_get_slot, <destination> = ":local_6", <party_id> = "$current_town", <slot_no> = 240),
				(store_current_hours, <destination> = ":local_7"),
				(store_add, <destination> = ":local_8", <value> = ":local_6", <value> = 4),
				(neg|is_between, <value> = ":local_7", <lower_bound> = ":local_6", <upper_bound> = ":local_8"),
				(set_visitor, <entry_no> = 25, <troop_id> = reg0),
				(set_visitor, <entry_no> = 26, <troop_id> = reg1),
				(set_visitor, <entry_no> = 27, <troop_id> = reg2),
				(set_visitor, <entry_no> = 28, <troop_id> = reg3),
			(try_end),
			(party_get_slot, <destination> = ":local_13", <party_id> = "$current_town", <slot_no> = 22),
			(set_visitor, <entry_no> = 9, <troop_id> = ":local_13"),
			(party_get_slot, <destination> = ":local_13", <party_id> = "$current_town", <slot_no> = 21),
			(set_visitor, <entry_no> = 10, <troop_id> = ":local_13"),
			(party_get_slot, <destination> = ":local_13", <party_id> = "$current_town", <slot_no> = 25),
			(set_visitor, <entry_no> = 11, <troop_id> = ":local_13"),
			(party_get_slot, <destination> = ":local_13", <party_id> = "$current_town", <slot_no> = 24),
			(set_visitor, <entry_no> = 12, <troop_id> = ":local_13"),
			(party_get_slot, <destination> = ":local_13", <party_id> = "$current_town", <slot_no> = 342),
			(set_visitor, <entry_no> = 16, <troop_id> = ":local_13"),
			(try_begin),
				(party_slot_eq, <party_id> = "$current_town", <slot_no> = 241, <value> = 1),
				(set_visitor, <entry_no> = 13, <troop_id> = "trp_port_crew"),
				(party_get_slot, <destination> = reg0, <party_id> = "$current_town", <slot_no> = 343),
				(set_visitor, <entry_no> = 14, <troop_id> = reg0),
				(set_visitor, <entry_no> = 15, <troop_id> = "trp_port_pirate"),
			(try_end),
			(call_script, <script_id> = "script_init_town_walkers"),
			(set_jump_mission, <mission_template_id> = "mst_town_center"),
			(assign, <destination> = ":local_14", <value> = 256),
			(try_begin),
				(eq, <value> = "$sneaked_into_town", <value> = 1),
				(assign, <destination> = ":local_14", <value> = 447),
			(try_end),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_center", <entry_no> = 0, <value> = ":local_14"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_center", <entry_no> = 2, <value> = ":local_14"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_center", <entry_no> = 3, <value> = ":local_14"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_center", <entry_no> = 4, <value> = ":local_14"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_center", <entry_no> = 5, <value> = ":local_14"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_center", <entry_no> = 6, <value> = ":local_14"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_center", <entry_no> = 7, <value> = ":local_14"),
			(try_begin),
				(eq, <value> = "$vc_menu_active", <value> = 0),
				(eq, <value> = "$town_entered", <value> = 0),
				(assign, <destination> = "$town_entered", <value> = 1),
				(eq, <value> = "$town_nighttime", <value> = 0),
				(set_jump_entry, <entry_no> = 1),
				(try_begin),
					(party_slot_ge, <party_id> = "$current_town", <slot_no> = 301, <value> = 1),
					(set_jump_entry, <entry_no> = 8),
				(try_end),
			(try_end),
			(jump_to_scene, <scene_id> = ":local_5"),
			(change_screen_mission),
		(try_end),
	(else_try),
		(val_add, <destination> = "$curr_menu_slot", <value> = 1),
		(eq, <value> = ":local_0", <value> = "$curr_menu_slot"),
		(try_begin),
			(eq, <value> = "$all_doors_locked", <value> = 1),
			(display_message, <string_id> = "str_door_locked", [hex_colour_code] = "maybe_color: 0XFFFFAAAA"),
		(else_try),
			(call_script, <script_id> = "script_cf_enter_center_location_bandit_check"),
		(else_try),
			(assign, <destination> = "$town_entered", <value> = 1),
			(set_jump_mission, <mission_template_id> = "mst_town_default"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_default", <entry_no> = 0, <value> = 256),
			(try_begin),
				(eq, <value> = "$sneaked_into_town", <value> = 1),
				(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_default", <entry_no> = 0, <value> = 447),
			(try_end),
			(party_get_slot, <destination> = ":local_15", <party_id> = "$current_town", <slot_no> = 13),
			(jump_to_scene, <scene_id> = ":local_15"),
			(scene_set_slot, <scene_id> = ":local_15", <slot_no> = 0, <value> = 1),
			(assign, <destination> = "$talk_context", <value> = 14),
			(call_script, <script_id> = "script_initialize_tavern_variables"),
			(store_random_in_range, <destination> = ":local_16", <range_low> = 0, <range_high> = 4),
			(modify_visitors_at_site, <scene_id> = ":local_15"),
			(reset_visitors),
			(assign, <destination> = ":local_17", <value> = 17),
			(try_begin),
				(eq, <value> = "$cheat_mode", <value> = 1),
				(troop_get_slot, <destination> = ":local_18", <troop_id> = "trp_belligerent_drunk", <slot_no> = 12),
				(try_begin),
					(eq, <value> = "$cheat_mode", <value> = 0),
				(else_try),
					(is_between, <value> = ":local_18", <lower_bound> = "p_town_1", <upper_bound> = "p_salt_mine"),
					(str_store_party_name, <string_register> = 4, <party_id> = ":local_18"),
					(display_message, <string_id> = "str_belligerent_drunk_in_s4"),
				(else_try),
					(display_message, <string_id> = "str_belligerent_drunk_not_found"),
				(try_end),
				(troop_get_slot, <destination> = ":local_19", <troop_id> = "trp_fight_promoter", <slot_no> = 12),
				(try_begin),
					(eq, <value> = "$cheat_mode", <value> = 0),
				(else_try),
					(is_between, <value> = ":local_19", <lower_bound> = "p_town_1", <upper_bound> = "p_salt_mine"),
					(str_store_party_name, <string_register> = 4, <party_id> = ":local_19"),
					(display_message, <string_id> = "str_roughlooking_character_in_s4"),
				(else_try),
					(display_message, <string_id> = "str_roughlooking_character_not_found"),
				(try_end),
			(try_end),
			(try_begin),
				(store_current_hours, <destination> = ":local_20"),
				(store_sub, <destination> = ":local_21", <value> = ":local_20", <value> = "$g_last_assassination_attempt_time"),
				(gt, <value> = ":local_21", <value> = 168),
				(try_for_range, <destination> = ":local_22", <lower_bound> = "trp_npc1", <upper_bound> = "trp_knight_1_1_wife"),
					(troop_slot_eq, <troop_id> = ":local_22", <slot_no> = 52, <value> = 5),
					(troop_get_slot, <destination> = ":local_23", <troop_id> = ":local_22", <slot_no> = 10),
					(party_is_active, <party_id> = ":local_23"),
					(party_get_attached_to, <destination> = ":local_24", <party_id> = ":local_23"),
					(eq, <value> = ":local_24", <value> = "$g_encountered_party"),
					(call_script, <script_id> = "script_troop_get_relation_with_troop", [<script_param>...] = "trp_player", [<param>...] = ":local_22"),
					(neg|ge, <value> = reg0, <value> = -20),
					(assign, <destination> = "$g_last_assassination_attempt_time", <value> = ":local_20"),
					(troop_set_slot, <troop_id> = "trp_hired_assassin", <slot_no> = 12, <value> = "$g_encountered_party"),
				(try_end),
			(try_end),
			(try_begin),
				(eq, <value> = ":local_16", <value> = 0),
				(call_script, <script_id> = "script_setup_tavern_attacker", [<script_param>...] = ":local_17"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(eq, <value> = 1, <value> = 0),
				(troop_slot_eq, <troop_id> = "trp_fight_promoter", <slot_no> = 12, <value> = "$current_town"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_fight_promoter"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(party_get_slot, <destination> = ":local_25", <party_id> = "$current_town", <slot_no> = 90),
			(party_get_slot, <destination> = ":local_26", <party_id> = "$current_town", <slot_no> = 91),
			(try_begin),
				(gt, <value> = ":local_25", <value> = 0),
				(gt, <value> = ":local_26", <value> = 0),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_25"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(eq, <value> = ":local_16", <value> = 1),
				(call_script, <script_id> = "script_setup_tavern_attacker", [<script_param>...] = ":local_17"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(check_quest_active, <quest_id> = "qst_kennemer_mission_2"),
				(eq, <value> = "$current_town", <value> = "p_town_11"),
				(neg|main_party_has_troop, <troop_id> = "trp_npc8"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_npc8"),
			(else_try),
				(eq, <value> = "$campaign_type", <value> = 8),
				(eq, <value> = "$current_town", <value> = "p_town_10"),
				(neg|main_party_has_troop, <troop_id> = "trp_npc13"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_npc13"),
			(else_try),
				(eq, <value> = "$campaign_type", <value> = 8),
				(eq, <value> = "$current_town", <value> = "p_town_1"),
				(neg|main_party_has_troop, <troop_id> = "trp_npc9"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_npc9"),
			(else_try),
				(eq, <value> = "$campaign_type", <value> = 8),
				(eq, <value> = "$current_town", <value> = "p_town_25"),
				(neg|main_party_has_troop, <troop_id> = "trp_npc4"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_npc4"),
			(else_try),
				(eq, <value> = "$campaign_type", <value> = 8),
				(eq, <value> = "$current_town", <value> = "p_town_26"),
				(neg|main_party_has_troop, <troop_id> = "trp_npc5"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_npc5"),
			(else_try),
				(check_quest_active, <quest_id> = "qst_the_fleet"),
				(quest_slot_eq, <quest_id> = "qst_the_fleet", <slot_no> = 11, <value> = 2),
				(eq, <value> = "$current_town", <value> = "p_town_4"),
				(neg|main_party_has_troop, <troop_id> = "trp_npc12"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_npc12"),
			(else_try),
				(eq, <value> = "$campaign_type", <value> = 9),
				(try_for_range, <destination> = ":local_27", <lower_bound> = "trp_npc1", <upper_bound> = "trp_kingdom_1_lord"),
					(troop_slot_eq, <troop_id> = ":local_27", <slot_no> = 2, <value> = 0),
					(troop_slot_eq, <troop_id> = ":local_27", <slot_no> = 12, <value> = "$current_town"),
					(neg|eq, <value> = ":local_27", <value> = "trp_npc1"),
					(neg|eq, <value> = ":local_27", <value> = "trp_npc7"),
					(neg|troop_slot_ge, <troop_id> = ":local_27", <slot_no> = 8, <value> = "p_town_1"),
					(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_27"),
				(try_end),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(eq, <value> = ":local_16", <value> = 2),
				(call_script, <script_id> = "script_setup_tavern_attacker", [<script_param>...] = ":local_17"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(party_get_slot, <destination> = ":local_28", <party_id> = "$current_town", <slot_no> = 95),
				(gt, <value> = ":local_28", <value> = 0),
				(assign, <destination> = reg0, <value> = ":local_28"),
				(assign, <destination> = reg1, <value> = "$current_town"),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_28"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(else_try),
				(is_between, <value> = "$g_talk_troop", <lower_bound> = "trp_ransom_broker_1", <upper_bound> = "trp_tavern_traveler_1"),
				(store_add, <destination> = ":local_29", <value> = "$current_town", <value> = 9),
				(try_begin),
					(ge, <value> = ":local_29", <value> = "p_castle_1"),
					(val_sub, <destination> = ":local_29", <value> = 22),
				(try_end),
				(try_begin),
					(eq, <value> = "$cheat_mode", <value> = 1),
					(str_store_party_name, <string_register> = 3, <party_id> = "$current_town"),
					(str_store_party_name, <string_register> = 4, <party_id> = ":local_29"),
					(display_message, <string_id> = "@{!}DEBUG_-_Current_town_is_{s3},_but_also_checking_{s4}"),
				(try_end),
				(party_get_slot, <destination> = ":local_28", <party_id> = ":local_29", <slot_no> = 95),
				(gt, <value> = ":local_28", <value> = 0),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_28"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(party_get_slot, <destination> = ":local_30", <party_id> = "$current_town", <slot_no> = 96),
				(gt, <value> = ":local_30", <value> = 0),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_30"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(party_get_slot, <destination> = ":local_31", <party_id> = "$current_town", <slot_no> = 99),
				(gt, <value> = ":local_31", <value> = 0),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_31"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(else_try),
				(store_add, <destination> = ":local_29", <value> = "$current_town", <value> = 9),
				(try_begin),
					(ge, <value> = ":local_29", <value> = "p_castle_1"),
					(val_sub, <destination> = ":local_29", <value> = 22),
				(try_end),
				(party_get_slot, <destination> = ":local_31", <party_id> = ":local_29", <slot_no> = 99),
				(gt, <value> = ":local_31", <value> = 0),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_31"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(party_get_slot, <destination> = ":local_32", <party_id> = "$current_town", <slot_no> = 98),
				(gt, <value> = ":local_32", <value> = 0),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_32"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(eq, <value> = ":local_16", <value> = 3),
				(call_script, <script_id> = "script_setup_tavern_attacker", [<script_param>...] = ":local_17"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(try_begin),
				(neg|check_quest_active, <quest_id> = "qst_eliminate_bandits_infesting_village"),
				(neg|check_quest_active, <quest_id> = "qst_deal_with_bandits_at_lords_village"),
				(assign, <destination> = ":local_33", <value> = "p_salt_mine"),
				(try_for_range, <destination> = ":local_34", <lower_bound> = "p_village_1", <upper_bound> = ":local_33"),
					(party_slot_eq, <party_id> = ":local_34", <slot_no> = 120, <value> = "$current_town"),
					(party_slot_ge, <party_id> = ":local_34", <slot_no> = 39, <value> = 1),
					(neg|party_slot_eq, <party_id> = ":local_34", <slot_no> = 7, <value> = "trp_player"),
					(set_visitor, <entry_no> = ":local_17", <troop_id> = "trp_farmer_from_bandit_village"),
					(val_add, <destination> = ":local_17", <value> = 1),
					(assign, <destination> = ":local_33", <value> = 0),
				(try_end),
			(try_end),
			(try_begin),
				(eq, <value> = "$g_starting_town", <value> = "$current_town"),
				(this_or_next|neg|check_quest_finished, <quest_id> = "qst_collect_men"),
				(this_or_next|neg|check_quest_finished, <quest_id> = "qst_learn_where_merchant_brother_is"),
				(this_or_next|neg|check_quest_finished, <quest_id> = "qst_save_relative_of_merchant"),
				(this_or_next|neg|check_quest_finished, <quest_id> = "qst_save_town_from_bandits"),
				(eq, <value> = "$g_do_one_more_meeting_with_merchant", <value> = 1),
				(assign, <destination> = ":local_35", <value> = 0),
				(try_begin),
					(eq, <value> = "$g_encountered_party_faction", <value> = "fac_kingdom_1"),
					(assign, <destination> = ":local_35", <value> = "trp_swadian_merchant"),
				(else_try),
					(eq, <value> = "$g_encountered_party_faction", <value> = "fac_kingdom_2"),
					(assign, <destination> = ":local_35", <value> = "trp_vaegir_merchant"),
				(else_try),
					(eq, <value> = "$g_encountered_party_faction", <value> = "fac_kingdom_3"),
					(assign, <destination> = ":local_35", <value> = "trp_khergit_merchant"),
				(else_try),
					(eq, <value> = "$g_encountered_party_faction", <value> = "fac_kingdom_4"),
					(assign, <destination> = ":local_35", <value> = "trp_nord_merchant"),
				(else_try),
					(eq, <value> = "$g_encountered_party_faction", <value> = "fac_kingdom_5"),
					(assign, <destination> = ":local_35", <value> = "trp_rhodok_merchant"),
				(else_try),
					(eq, <value> = "$g_encountered_party_faction", <value> = "fac_kingdom_6"),
					(assign, <destination> = ":local_35", <value> = "trp_sarranid_merchant"),
				(try_end),
				(gt, <value> = ":local_35", <value> = 0),
				(set_visitor, <entry_no> = ":local_17", <troop_id> = ":local_35"),
				(val_add, <destination> = ":local_17", <value> = 1),
			(try_end),
			(change_screen_mission),
		(try_end),
	(else_try),
		(val_add, <destination> = "$curr_menu_slot", <value> = 1),
		(eq, <value> = ":local_0", <value> = "$curr_menu_slot"),
		(try_begin),
			(this_or_next|eq, <value> = "$all_doors_locked", <value> = 1),
			(eq, <value> = "$town_nighttime", <value> = 1),
			(display_message, <string_id> = "str_door_locked", [hex_colour_code] = "maybe_color: 0XFFFFAAAA"),
		(else_try),
			(assign, <destination> = "$town_entered", <value> = 1),
			(set_jump_mission, <mission_template_id> = "mst_town_default"),
			(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_default", <entry_no> = 0, <value> = 256),
			(try_begin),
				(eq, <value> = "$sneaked_into_town", <value> = 1),
				(mission_tpl_entry_set_override_flags, <mission_template_id> = "mst_town_default", <entry_no> = 0, <value> = 447),
			(try_end),
			(party_get_slot, <destination> = ":local_15", <party_id> = "$current_town", <slot_no> = 14),
			(jump_to_scene, <scene_id> = ":local_15"),
			(scene_set_slot, <scene_id> = ":local_15", <slot_no> = 0, <value> = 1),
			(change_screen_mission),
		(try_end),
	(else_try),
		(val_add, <destination> = "$curr_menu_slot", <value> = 1),
		(eq, <value> = ":local_0", <value> = "$curr_menu_slot"),
		(try_begin),
			(this_or_next|eq, <value> = "$all_doors_locked", <value> = 1),
			(eq, <value> = "$town_nighttime", <value> = 1),
			(display_message, <string_id> = "str_door_locked", [hex_colour_code] = "maybe_color: 0XFFFFAAAA"),
			(try_begin),
				(neg|eq, <value> = "$g_vc_menu_turned_off", <value> = 1),
				(assign, <destination> = "$vc_menu_active", <value> = "prsnt_vc_menu"),
				(call_script, <script_id> = "script_execute_town_menu_cosequence", [<script_param>...] = 34),
			(try_end),
		(else_try),
			(assign, <destination> = "$g_mt_mode", <value> = 2),
			(assign, <destination> = "$town_entered", <value> = 1),
			(set_jump_mission, <mission_template_id> = "mst_arena_melee_fight"),
			(party_get_slot, <destination> = ":local_36", <party_id> = "$current_town", <slot_no> = 16),
			(modify_visitors_at_site, <scene_id> = ":local_36"),
			(reset_visitors),
			(set_visitor, <entry_no> = 43, <troop_id> = "trp_veteran_fighter"),
			(set_visitor, <entry_no> = 44, <troop_id> = "trp_hired_blade"),
			(set_jump_entry, <entry_no> = 50),
			(jump_to_scene, <scene_id> = ":local_36"),
			(scene_set_slot, <scene_id> = ":local_36", <slot_no> = 0, <value> = 1),
			(change_screen_mission),
		(try_end),


(..... more stuff here ....)

Nothing a few debug messages and stuff cant handle.

Edit: almost there. I left the tags so it is easier to remember the commands/operations. Oh and I fixed the hell_todo too :XD
Edit detail: I had to cut the script cause the forum cant handle more than 40.000 characters  :shock:

solved for 1.04beta
 
kalarhan said:
kraggrim said:
And here I was just using intuition and lucky guesses! Cheers for the explanation, should come in handy.

np. One more:

File:    menus.txt
Menu: menu_saquear_monasterio

360287970189639683 2041 1 360287970189639683 5 0 2136 3 1224979098644774917 100 500

100 and 500 is the range for the loot. Change to something else like 1000 and 5000 and you will get 10x the cash loot.

I didn't even see this until now. Excellent, thank you.
 
kalarhan said:
kraggrim said:
kraggrim said:
Added "Change the village recruit type of to be based on the faction owning the village" to front page.

Kalarhan, any idea how to do this tweak for towns/castles?

Had a look myself but couldn't find where it is.

I will check it out. The script that is called from towns/castle is small anyway:

("execute_town_menu_cosequence",
[
(store_script_param, 1224979098644774912, 1),
(assign, 144115188075856294, 30),
(try_begin),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(this_or_next|eq, 144115188075856251, 1),
(eq, 144115188075856253, 1),
(display_message, 216172782113783943, 4294945450),
(else_try),
(hell_todo|eq, 144115188075856330, 144115188075857180),
(neg|troop_slot_ge, 360287970189639680, 7, 125),
(neg|eq, 144115188075856177, :cool:,
(neg|eq, 144115188075856199, 144115188075856183),
(faction_slot_eq, 144115188075857180, 4, 6),
(faction_slot_eq, 144115188075857180, 5, 144115188075855973),
(neg|check_quest_active, 504403158265495595),
(neg|check_quest_active, 504403158265495596),
(neg|troop_slot_ge, 360287970189639680, 30, 360287970189639975),
(jump_to_menu, 864691128455135391),
(else_try),
(assign, 144115188075856254, 1),
(call_script, 936748722493063536, 144115188075856183),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(call_script, 936748722493063695, 144115188075856183, 1),
(assign, 144115188075856303, 0),
(assign, 144115188075857127, -1),
(assign, 144115188075857128, 0),
(assign, 144115188075857129, 0),
(assign, 144115188075857130, -1),
(assign, 144115188075856301, 0),
(assign, 144115188075856302, 0),
(jump_to_menu, 864691128455135396),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(this_or_next|eq, 144115188075856251, 1),
(eq, 144115188075856253, 1),
(display_message, 216172782113783943, 4294945450),
(else_try),
(hell_todo|eq, 144115188075856330, 144115188075857180),
(neg|troop_slot_ge, 360287970189639680, 7, 125),
(neg|eq, 144115188075856177, :cool:,
(neg|eq, 144115188075856199, 144115188075856183),
(faction_slot_eq, 144115188075857180, 4, 6),
(faction_slot_eq, 144115188075857180, 5, 144115188075855973),
(neg|check_quest_active, 504403158265495595),
(neg|check_quest_active, 504403158265495596),
(neg|troop_slot_ge, 360287970189639680, 30, 360287970189639975),
(jump_to_menu, 864691128455135391),
(else_try),
(assign, 144115188075856254, 1),
(call_script, 936748722493063536, 144115188075856183),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(eq, 144115188075856100, 1:cool:,
(assign, 144115188075856100, 19),
(assign, 144115188075856168, 3),
(store_faction_of_party, 1224979098644774913, 144115188075856183),
(faction_get_slot, 1224979098644774914, 1224979098644774913, 43),
(faction_get_slot, 1224979098644774915, 1224979098644774913, 43),
(faction_get_slot, 1224979098644774916, 1224979098644774913, 44),
(party_get_slot, 1224979098644774917, 144115188075856183, 10),
(modify_visitors_at_site, 1224979098644774917),
(reset_visitors),
(try_begin),
(party_get_slot, 1224979098644774918, 144115188075856183, 240),
(store_current_hours, 1224979098644774919),
(store_add, 1224979098644774920, 1224979098644774918, 4),
(neg|is_between, 1224979098644774919, 1224979098644774918, 1224979098644774920),
(store_time_of_day, 1224979098644774921),
(try_begin),
(ge, 1224979098644774921, 6),
(neg|ge, 1224979098644774921, 22),
(set_visitors, 25, 1224979098644774914, 2),
(set_visitors, 26, 1224979098644774914, 1),
(set_visitors, 27, 1224979098644774915, 2),
(set_visitors, 28, 1224979098644774916, 1),
(else_try),
(set_visitors, 25, 1224979098644774914, 1),
(set_visitors, 26, 1224979098644774914, 1),
(set_visitors, 27, 1224979098644774915, 1),
(set_visitors, 28, 1224979098644774916, 1),
(try_end),
(else_try),
(store_time_of_day, 1224979098644774921),
(try_begin),
(ge, 1224979098644774921, 6),
(neg|ge, 1224979098644774921, 22),
(set_visitors, 25, 1224979098644774914, 1),
(set_visitors, 26, 1224979098644774914, 0),
(set_visitors, 27, 1224979098644774915, 1),
(set_visitors, 28, 1224979098644774916, 0),
(else_try),
(set_visitors, 25, 1224979098644774914, 1),
(set_visitors, 26, 1224979098644774914, 0),
(set_visitors, 27, 1224979098644774915, 0),
(set_visitors, 28, 1224979098644774916, 0),
(try_end),
(try_end),
(set_jump_mission, 792633534417207310),
(jump_to_scene, 1224979098644774917),
(change_screen_mission),
(else_try),
(assign, 144115188075856100, 0),
(call_script, 936748722493063586),
(else_try),
(party_get_slot, 1224979098644774917, 144115188075856183, 10),
(modify_visitors_at_site, 1224979098644774917),
(reset_visitors),
(assign, 144115188075856168, 0),
(store_faction_of_party, 1224979098644774913, 144115188075856183),
(try_begin),
(neg|eq, 1224979098644774913, 432345564227567631),
(faction_get_slot, 1224979098644774922, 144115188075857180, 51),
(faction_get_slot, 1224979098644774923, 144115188075857180, 52),
(faction_get_slot, 1224979098644774914, 1224979098644774913, 42),
(faction_get_slot, 1224979098644774915, 1224979098644774913, 43),
(else_try),
(party_get_slot, 1224979098644774924, 144115188075856183, 61),
(faction_get_slot, 1224979098644774922, 1224979098644774924, 51),
(faction_get_slot, 1224979098644774923, 1224979098644774924, 52),
(faction_get_slot, 1224979098644774914, 1224979098644774924, 42),
(faction_get_slot, 1224979098644774915, 1224979098644774924, 43),
(try_end),
(try_begin),
(party_get_slot, 1224979098644774918, 144115188075856183, 240),
(store_current_hours, 1224979098644774919),
(store_add, 1224979098644774920, 1224979098644774918, 4),
(neg|is_between, 1224979098644774919, 1224979098644774918, 1224979098644774920),
(set_visitor, 23, 1224979098644774923),
(try_end),
(set_visitor, 24, 1224979098644774922),
(try_begin),
(gt, 1224979098644774914, 0),
(assign, 72057594037927936, 1224979098644774915),
(assign, 72057594037927937, 1224979098644774915),
(assign, 72057594037927938, 1224979098644774914),
(assign, 72057594037927939, 1224979098644774914),
(else_try),
(assign, 72057594037927936, 36028797018963974:cool:,
(assign, 72057594037927937, 36028797018963974:cool:,
(assign, 72057594037927938, 360287970189639752),
(assign, 72057594037927939, 360287970189639747),
(try_end),
(shuffle_range, 0, 4),
(try_begin),
(party_get_slot, 1224979098644774918, 144115188075856183, 240),
(store_current_hours, 1224979098644774919),
(store_add, 1224979098644774920, 1224979098644774918, 4),
(neg|is_between, 1224979098644774919, 1224979098644774918, 1224979098644774920),
(set_visitor, 25, 72057594037927936),
(set_visitor, 26, 72057594037927937),
(set_visitor, 27, 7205759403792793:cool:,
(set_visitor, 28, 72057594037927939),
(try_end),
(party_get_slot, 1224979098644774925, 144115188075856183, 22),
(set_visitor, 9, 1224979098644774925),
(party_get_slot, 1224979098644774925, 144115188075856183, 21),
(set_visitor, 10, 1224979098644774925),
(party_get_slot, 1224979098644774925, 144115188075856183, 25),
(set_visitor, 11, 1224979098644774925),
(party_get_slot, 1224979098644774925, 144115188075856183, 24),
(set_visitor, 12, 1224979098644774925),
(party_get_slot, 1224979098644774925, 144115188075856183, 342),
(set_visitor, 16, 1224979098644774925),
(try_begin),
(party_slot_eq, 144115188075856183, 241, 1),
(set_visitor, 13, 360287970189640943),
(party_get_slot, 72057594037927936, 144115188075856183, 343),
(set_visitor, 14, 72057594037927936),
(set_visitor, 15, 360287970189640944),
(try_end),
(call_script, 936748722493063585),
(set_jump_mission, 792633534417207310),
(assign, 1224979098644774926, 256),
(try_begin),
(eq, 144115188075856253, 1),
(assign, 1224979098644774926, 447),
(try_end),
(mission_tpl_entry_set_override_flags, 792633534417207310, 0, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207310, 2, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207310, 3, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207310, 4, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207310, 5, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207310, 6, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207310, 7, 1224979098644774926),
(try_begin),
(eq, 144115188075855904, 0),
(eq, 144115188075856254, 0),
(assign, 144115188075856254, 1),
(eq, 144115188075856246, 0),
(set_jump_entry, 1),
(try_begin),
(party_slot_ge, 144115188075856183, 301, 1),
(set_jump_entry, :cool:,
(try_end),
(try_end),
(jump_to_scene, 1224979098644774917),
(change_screen_mission),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(eq, 144115188075856251, 1),
(display_message, 216172782113783943, 4294945450),
(else_try),
(call_script, 936748722493063586),
(else_try),
(assign, 144115188075856254, 1),
(set_jump_mission, 792633534417207296),
(mission_tpl_entry_set_override_flags, 792633534417207296, 0, 256),
(try_begin),
(eq, 144115188075856253, 1),
(mission_tpl_entry_set_override_flags, 792633534417207296, 0, 447),
(try_end),
(party_get_slot, 1224979098644774927, 144115188075856183, 13),
(jump_to_scene, 1224979098644774927),
(scene_set_slot, 1224979098644774927, 0, 1),
(assign, 144115188075856100, 14),
(call_script, 936748722493063795),
(store_random_in_range, 1224979098644774928, 0, 4),
(modify_visitors_at_site, 1224979098644774927),
(reset_visitors),
(assign, 1224979098644774929, 17),
(try_begin),
(eq, 144115188075856185, 1),
(troop_get_slot, 1224979098644774930, 360287970189640849, 12),
(try_begin),
(eq, 144115188075856185, 0),
(else_try),
(is_between, 1224979098644774930, 648518346341351445, 648518346341351714),
(str_store_party_name, 4, 1224979098644774930),
(display_message, 216172782113786387),
(else_try),
(display_message, 21617278211378638:cool:,
(try_end),
(troop_get_slot, 1224979098644774931, 360287970189640851, 12),
(try_begin),
(eq, 144115188075856185, 0),
(else_try),
(is_between, 1224979098644774931, 648518346341351445, 648518346341351714),
(str_store_party_name, 4, 1224979098644774931),
(display_message, 216172782113786389),
(else_try),
(display_message, 216172782113786390),
(try_end),
(try_end),
(try_begin),
(store_current_hours, 1224979098644774932),
(store_sub, 1224979098644774933, 1224979098644774932, 144115188075857131),
(gt, 1224979098644774933, 16:cool:,
(try_for_range, 1224979098644774934, 360287970189639975, 360287970189640150),
(troop_slot_eq, 1224979098644774934, 52, 5),
(troop_get_slot, 1224979098644774935, 1224979098644774934, 10),
(party_is_active, 1224979098644774935),
(party_get_attached_to, 1224979098644774936, 1224979098644774935),
(eq, 1224979098644774936, 144115188075855973),
(call_script, 936748722493063739, 360287970189639680, 1224979098644774934),
(neg|ge, 72057594037927936, -20),
(assign, 144115188075857131, 1224979098644774932),
(troop_set_slot, 360287970189640850, 12, 144115188075855973),
(try_end),
(try_end),
(try_begin),
(eq, 1224979098644774928, 0),
(call_script, 936748722493063767, 1224979098644774929),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(eq, 1, 0),
(troop_slot_eq, 360287970189640851, 12, 144115188075856183),
(set_visitor, 1224979098644774929, 360287970189640851),
(val_add, 1224979098644774929, 1),
(try_end),
(party_get_slot, 1224979098644774937, 144115188075856183, 90),
(party_get_slot, 1224979098644774938, 144115188075856183, 91),
(try_begin),
(gt, 1224979098644774937, 0),
(gt, 1224979098644774938, 0),
(set_visitor, 1224979098644774929, 1224979098644774937),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(eq, 1224979098644774928, 1),
(call_script, 936748722493063767, 1224979098644774929),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(check_quest_active, 504403158265495615),
(eq, 144115188075856183, 648518346341351455),
(neg|main_party_has_troop, 360287970189639982),
(set_visitor, 1224979098644774929, 360287970189639982),
(else_try),
(eq, 144115188075856177, :cool:,
(eq, 144115188075856183, 648518346341351454),
(neg|main_party_has_troop, 360287970189639987),
(set_visitor, 1224979098644774929, 360287970189639987),
(else_try),
(eq, 144115188075856177, :cool:,
(eq, 144115188075856183, 648518346341351445),
(neg|main_party_has_troop, 360287970189639983),
(set_visitor, 1224979098644774929, 360287970189639983),
(else_try),
(eq, 144115188075856177, :cool:,
(eq, 144115188075856183, 648518346341351469),
(neg|main_party_has_troop, 36028797018963997:cool:,
(set_visitor, 1224979098644774929, 36028797018963997:cool:,
(else_try),
(eq, 144115188075856177, :cool:,
(eq, 144115188075856183, 648518346341351470),
(neg|main_party_has_troop, 360287970189639979),
(set_visitor, 1224979098644774929, 360287970189639979),
(else_try),
(check_quest_active, 504403158265495633),
(quest_slot_eq, 504403158265495633, 11, 2),
(eq, 144115188075856183, 64851834634135144:cool:,
(neg|main_party_has_troop, 360287970189639986),
(set_visitor, 1224979098644774929, 360287970189639986),
(else_try),
(eq, 144115188075856177, 9),
(try_for_range, 1224979098644774939, 360287970189639975, 360287970189639991),
(troop_slot_eq, 1224979098644774939, 2, 0),
(troop_slot_eq, 1224979098644774939, 12, 144115188075856183),
(neg|eq, 1224979098644774939, 360287970189639975),
(neg|eq, 1224979098644774939, 360287970189639981),
(neg|troop_slot_ge, 1224979098644774939, 8, 648518346341351445),
(set_visitor, 1224979098644774929, 1224979098644774939),
(try_end),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(eq, 1224979098644774928, 2),
(call_script, 936748722493063767, 1224979098644774929),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(party_get_slot, 1224979098644774940, 144115188075856183, 95),
(gt, 1224979098644774940, 0),
(assign, 72057594037927936, 1224979098644774940),
(assign, 72057594037927937, 144115188075856183),
(set_visitor, 1224979098644774929, 1224979098644774940),
(val_add, 1224979098644774929, 1),
(else_try),
(is_between, 144115188075855902, 360287970189639912, 360287970189639923),
(store_add, 1224979098644774941, 144115188075856183, 9),
(try_begin),
(ge, 1224979098644774941, 648518346341351474),
(val_sub, 1224979098644774941, 22),
(try_end),
(try_begin),
(eq, 144115188075856185, 1),
(str_store_party_name, 3, 144115188075856183),
(str_store_party_name, 4, 1224979098644774941),
(display_message, 1585267068834415177),
(try_end),
(party_get_slot, 1224979098644774940, 1224979098644774941, 95),
(gt, 1224979098644774940, 0),
(set_visitor, 1224979098644774929, 1224979098644774940),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(party_get_slot, 1224979098644774942, 144115188075856183, 96),
(gt, 1224979098644774942, 0),
(set_visitor, 1224979098644774929, 1224979098644774942),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(party_get_slot, 1224979098644774943, 144115188075856183, 99),
(gt, 1224979098644774943, 0),
(set_visitor, 1224979098644774929, 1224979098644774943),
(val_add, 1224979098644774929, 1),
(else_try),
(store_add, 1224979098644774941, 144115188075856183, 9),
(try_begin),
(ge, 1224979098644774941, 648518346341351474),
(val_sub, 1224979098644774941, 22),
(try_end),
(party_get_slot, 1224979098644774943, 1224979098644774941, 99),
(gt, 1224979098644774943, 0),
(set_visitor, 1224979098644774929, 1224979098644774943),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(party_get_slot, 1224979098644774944, 144115188075856183, 9:cool:,
(gt, 1224979098644774944, 0),
(set_visitor, 1224979098644774929, 1224979098644774944),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(eq, 1224979098644774928, 3),
(call_script, 936748722493063767, 1224979098644774929),
(val_add, 1224979098644774929, 1),
(try_end),
(try_begin),
(neg|check_quest_active, 504403158265495591),
(neg|check_quest_active, 504403158265495556),
(assign, 1224979098644774945, 648518346341351714),
(try_for_range, 1224979098644774946, 648518346341351564, 1224979098644774945),
(party_slot_eq, 1224979098644774946, 120, 144115188075856183),
(party_slot_ge, 1224979098644774946, 39, 1),
(neg|party_slot_eq, 1224979098644774946, 7, 360287970189639680),
(set_visitor, 1224979098644774929, 360287970189639906),
(val_add, 1224979098644774929, 1),
(assign, 1224979098644774945, 0),
(try_end),
(try_end),
(try_begin),
(eq, 144115188075856184, 144115188075856183),
(hell_todo|check_quest_finished, 504403158265495679),
(hell_todo|check_quest_finished, 504403158265495680),
(hell_todo|check_quest_finished, 504403158265495681),
(hell_todo|check_quest_finished, 504403158265495682),
(eq, 144115188075855972, 1),
(assign, 1224979098644774947, 0),
(try_begin),
(eq, 144115188075857180, 432345564227567632),
(assign, 1224979098644774947, 360287970189640904),
(else_try),
(eq, 144115188075857180, 432345564227567633),
(assign, 1224979098644774947, 360287970189640905),
(else_try),
(eq, 144115188075857180, 432345564227567634),
(assign, 1224979098644774947, 360287970189640906),
(else_try),
(eq, 144115188075857180, 432345564227567635),
(assign, 1224979098644774947, 360287970189640907),
(else_try),
(eq, 144115188075857180, 432345564227567636),
(assign, 1224979098644774947, 36028797018964090:cool:,
(else_try),
(eq, 144115188075857180, 432345564227567637),
(assign, 1224979098644774947, 360287970189640909),
(try_end),
(gt, 1224979098644774947, 0),
(set_visitor, 1224979098644774929, 1224979098644774947),
(val_add, 1224979098644774929, 1),
(try_end),
(change_screen_mission),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(this_or_next|eq, 144115188075856251, 1),
(eq, 144115188075856246, 1),
(display_message, 216172782113783943, 4294945450),
(else_try),
(assign, 144115188075856254, 1),
(set_jump_mission, 792633534417207296),
(mission_tpl_entry_set_override_flags, 792633534417207296, 0, 256),
(try_begin),
(eq, 144115188075856253, 1),
(mission_tpl_entry_set_override_flags, 792633534417207296, 0, 447),
(try_end),
(party_get_slot, 1224979098644774927, 144115188075856183, 14),
(jump_to_scene, 1224979098644774927),
(scene_set_slot, 1224979098644774927, 0, 1),
(change_screen_mission),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(this_or_next|eq, 144115188075856251, 1),
(eq, 144115188075856246, 1),
(display_message, 216172782113783943, 4294945450),
(try_begin),
(neg|eq, 144115188075856206, 1),
(assign, 144115188075855904, 1513209474796486716),
(call_script, 936748722493063195, 34),
(try_end),
(else_try),
(assign, 144115188075856168, 2),
(assign, 144115188075856254, 1),
(set_jump_mission, 792633534417207336),
(party_get_slot, 1224979098644774948, 144115188075856183, 16),
(modify_visitors_at_site, 122497909864477494:cool:,
(reset_visitors),
(set_visitor, 43, 360287970189639692),
(set_visitor, 44, 360287970189639717),
(set_jump_entry, 50),
(jump_to_scene, 122497909864477494:cool:,
(scene_set_slot, 1224979098644774948, 0, 1),
(change_screen_mission),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(eq, 144115188075856100, 1:cool:,
(gt, 144115188075855957, 0),
(neg|agent_is_alive, 144115188075855957),
(agent_get_troop_id, 1224979098644774949, 144115188075855957),
(try_begin),
(eq, 144115188075857180, 432345564227567631),
(party_get_slot, 1224979098644774950, 144115188075856183, 61),
(else_try),
(assign, 1224979098644774950, 144115188075857180),
(try_end),
(faction_slot_eq, 1224979098644774950, 51, 1224979098644774949),
(call_script, 936748722493063781),
(call_script, 936748722493063535, 144115188075856183, 792633534417207314),
(else_try),
(eq, 144115188075856251, 1),
(display_message, 216172782113783943, 4294945450),
(else_try),
(this_or_next|party_slot_eq, 144115188075856183, 7, 360287970189639680),
(eq, 144115188075857180, 144115188075856330),
(assign, 144115188075856254, 1),
(call_script, 936748722493063535, 144115188075856183, 792633534417207314),
(else_try),
(display_message, 216172782113783943, 4294945450),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(eq, 144115188075856100, 1:cool:,
(assign, 144115188075856100, 19),
(party_get_slot, 1224979098644774951, 144115188075856183, 10),
(modify_visitors_at_site, 1224979098644774951),
(reset_visitors),
(assign, 1224979098644774952, 40),
(party_get_num_companion_stacks, 1224979098644774953, 144115188075855973),
(try_for_range, 1224979098644774954, 0, 1224979098644774953),
(party_get_slot, 1224979098644774918, 144115188075856183, 240),
(store_current_hours, 1224979098644774919),
(store_add, 1224979098644774920, 1224979098644774918, 4),
(this_or_next|eq, 1224979098644774952, 40),
(neg|is_between, 1224979098644774919, 1224979098644774918, 1224979098644774920),
(neg|ge, 1224979098644774952, 47),
(party_stack_get_troop_id, 1224979098644774955, 144115188075855973, 1224979098644774954),
(neg|troop_is_hero, 1224979098644774955),
(party_stack_get_size, 1224979098644774956, 144115188075855973, 1224979098644774954),
(party_stack_get_num_wounded, 1224979098644774957, 144115188075855973, 1224979098644774954),
(val_sub, 1224979098644774956, 1224979098644774957),
(gt, 1224979098644774956, 0),
(party_stack_get_troop_dna, 1224979098644774958, 144115188075855973, 1224979098644774954),
(set_visitor, 1224979098644774952, 1224979098644774955, 122497909864477495:cool:,
(val_add, 1224979098644774952, 1),
(try_end),
(set_visitor, 7, 144115188075856182),
(set_jump_mission, 792633534417207330),
(jump_to_scene, 1224979098644774951),
(change_screen_mission),
(else_try),
(assign, 144115188075856100, 0),
(assign, 144115188075856168, 0),
(party_get_slot, 1224979098644774951, 144115188075856183, 10),
(modify_visitors_at_site, 1224979098644774951),
(reset_visitors),
(try_begin),
(neg|eq, 144115188075857180, 432345564227567631),
(faction_get_slot, 1224979098644774922, 144115188075857180, 51),
(else_try),
(party_get_slot, 1224979098644774924, 144115188075856183, 61),
(faction_get_slot, 1224979098644774922, 1224979098644774924, 51),
(try_end),
(call_script, 936748722493063585),
(set_visitor, 24, 1224979098644774922),
(assign, 1224979098644774952, 40),
(party_get_num_companion_stacks, 1224979098644774953, 144115188075855973),
(try_for_range, 1224979098644774954, 0, 1224979098644774953),
(party_get_slot, 1224979098644774918, 144115188075856183, 240),
(store_current_hours, 1224979098644774919),
(store_add, 1224979098644774920, 1224979098644774918, 4),
(neg|is_between, 1224979098644774919, 1224979098644774920, 122497909864477491:cool:,
(neg|ge, 1224979098644774952, 47),
(party_stack_get_troop_id, 1224979098644774955, 144115188075855973, 1224979098644774954),
(neg|troop_is_hero, 1224979098644774955),
(party_stack_get_size, 1224979098644774956, 144115188075855973, 1224979098644774954),
(party_stack_get_num_wounded, 1224979098644774957, 144115188075855973, 1224979098644774954),
(val_sub, 1224979098644774956, 1224979098644774957),
(gt, 1224979098644774956, 0),
(party_stack_get_troop_dna, 1224979098644774958, 144115188075855973, 1224979098644774954),
(set_visitor, 1224979098644774952, 1224979098644774955, 122497909864477495:cool:,
(val_add, 1224979098644774952, 1),
(try_end),
(try_begin),
(eq, 144115188075856254, 0),
(assign, 144115188075856254, 1),
(try_end),
(set_jump_entry, 1),
(try_begin),
(party_get_slot, 1224979098644774959, 144115188075856183, 11),
(store_current_scene, 1224979098644774960),
(eq, 1224979098644774960, 1224979098644774959),
(set_jump_entry, 2),
(try_end),
(assign, 1224979098644774926, 256),
(try_begin),
(eq, 144115188075856253, 1),
(assign, 1224979098644774926, 447),
(try_end),
(set_jump_mission, 792633534417207330),
(mission_tpl_entry_set_override_flags, 792633534417207330, 0, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207330, 1, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207330, 2, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207330, 3, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207330, 4, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207330, 5, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207330, 6, 1224979098644774926),
(mission_tpl_entry_set_override_flags, 792633534417207330, 7, 1224979098644774926),
(jump_to_scene, 1224979098644774951),
(change_screen_mission),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(store_sub, 1224979098644774961, 144115188075856183, 648518346341351445),
(store_add, 1224979098644774962, 360287970189640798, 1224979098644774961),
(party_get_slot, 1224979098644774963, 144115188075856183, 14:cool:,
(assign, 1224979098644774964, 720575940379280141),
(try_begin),
(eq, 1224979098644774963, 288230376151711867),
(assign, 1224979098644774964, 720575940379280141),
(else_try),
(eq, 1224979098644774963, 288230376151711855),
(assign, 1224979098644774964, 720575940379280146),
(else_try),
(eq, 1224979098644774963, 28823037615171183:cool:,
(assign, 1224979098644774964, 720575940379280147),
(else_try),
(eq, 1224979098644774963, 288230376151711854),
(assign, 1224979098644774964, 720575940379280140),
(else_try),
(eq, 1224979098644774963, 288230376151711851),
(assign, 1224979098644774964, 720575940379280139),
(else_try),
(eq, 1224979098644774963, 288230376151711843),
(assign, 1224979098644774964, 720575940379280145),
(else_try),
(eq, 1224979098644774963, 288230376151711841),
(assign, 1224979098644774964, 720575940379280144),
(else_try),
(eq, 1224979098644774963, 288230376151711846),
(assign, 1224979098644774964, 720575940379280143),
(else_try),
(eq, 1224979098644774963, 288230376151711849),
(assign, 1224979098644774964, 720575940379280142),
(try_end),
(modify_visitors_at_site, 1224979098644774964),
(reset_visitors),
(try_for_range, 1224979098644774965, 30, 35),
(set_visitor, 1224979098644774965, 36028797018963985:cool:,
(try_end),
(set_visitor, 0, 360287970189639680),
(set_visitor, 17, 1224979098644774962),
(set_jump_mission, 792633534417207296),
(jump_to_scene, 1224979098644774964),
(change_screen_mission),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(jump_to_menu, 864691128455135392),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(call_script, 936748722493063586),
(else_try),
(jump_to_menu, 864691128455135426),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(party_get_slot, 1224979098644774917, 144115188075856183, 10),
(party_get_slot, 1224979098644774966, 144115188075856183, 343),
(modify_visitors_at_site, 1224979098644774917),
(reset_visitors),
(set_visitor, 0, 360287970189639680),
(set_visitor, 14, 1224979098644774966),
(set_jump_mission, 792633534417207297),
(jump_to_scene, 1224979098644774917),
(change_screen_map_conversation, 1224979098644774966),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(assign, 144115188075856219, 864691128455135390),
(jump_to_menu, 864691128455135375),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(jump_to_menu, 864691128455135510),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(change_screen_exchange_members, 1),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(assign, 144115188075856077, 144115188075856183),
(assign, 144115188075856258, 1),
(assign, 144115188075856314, 144115188075856183),
(assign, 144115188075856315, -1),
(rest_for_hours_interactive, 168, 5, 0),
(change_screen_return),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(jump_to_menu, 864691128455135422),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(jump_to_menu, 864691128455135401),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(store_troop_gold, 1224979098644774967, 360287970189639680),
(try_begin),
(gt, 1224979098644774967, 999),
(troop_remove_gold, 360287970189639680, 1000),
(jump_to_menu, 864691128455135496),
(else_try),
(display_message, 216172782113787072),
(try_end),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(try_begin),
(call_script, 936748722493063198, 144115188075856183),
(assign, 144115188075855904, 0),
(call_script, 936748722493063206, 144115188075856183, 648518346341351424),
(party_get_slot, 1224979098644774968, 144115188075856183, 297),
(party_get_position, 2, 122497909864477496:cool:,
(party_set_position, 648518346341351424, 2),
(call_script, 936748722493063197),
(else_try),
(display_message, 216172782113787122),
(assign, 144115188075856077, 144115188075855973),
(try_end),
(change_screen_return, 0),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(assign, 144115188075856101, 0),
(change_screen_map),
(else_try),
(val_add, 144115188075856294, 1),
(eq, 1224979098644774912, 144115188075856294),
(else_try),
(try_end),
]),

Nothing a few debug messages and stuff cant handle

Ow. My brain hurts just looking at that thing.  Thanks man.
 
Reinforcement waves adjustment for a standard battle reforged beta 1/7/15

Make a backup of mission_templates.txt and open it up.

To change the number of defender waves look for the top-most instance of this (line 1361):
0.000000 0.000000 100000000.000000  0  6 2133 2 144115188075856421 0 2133 2 144115188075856404 0 2133 2 144115188075856405 0 1 1 936748722493063705 1 1 936748722493063736 2133 2 144115188075856406 2
That 2 right at the end is the number of waves.

In reforged beta its currently
0.000000 0.000000 100000000.000000  0  6 2133 2 144115188075856421 0 2133 2 144115188075856404 0 2133 2 144115188075856405 0 1 1 936748722493063706 1 1 936748722493063737 2133 2 144115188075856406 2

To change the number of attacker waves look for this (line 1365) a few lines underneath:
1.000000 0.000000 5.000000  5 2147483678 2 144115188075856405 2 2370 1 1224979098644774912 30 2 1224979098644774912 10 2385 2 1224979098644774913 1 2147483678 2 1224979098644774913 30  2 1930 2 3 45 2105 2 144115188075856405 1
The second " 2 " on it's own is the number of waves.
 
kalarhan said:
any script in need of tweaking? I gonna do some modding this weekend and I can add it to my TODO list.

More of debugging  than tweaking, but perhaps you could take a look at the camp dialogs? Some of them trigger as they ought to, others never do. Ones I've gotten to work so far are Brunhild's, Egil's, Bodo's and Dwywei's. Ones that definitely never trigger are Helgi's, Solveig's and Asbjorn's. Others I'm not sure of due to not having boosted their relation up past 20.
 
florinteal said:
More of debugging  than tweaking, but perhaps you could take a look at the camp dialogs? Some of them trigger as they ought to, others never do. Ones I've gotten to work so far are Brunhild's, Egil's, Bodo's and Dwywei's. Ones that definitely never trigger are Helgi's, Solveig's and Asbjorn's. Others I'm not sure of due to not having boosted their relation up past 20.
conversations.txt has 22 dialogs with companions (looking at dlga_conversation_companioncamp:). And many more sub dialogs like dlga_caio_conversationcamp2:caio_conversationcamp3

E.g:
dlga_conversation_companioncamp:bodo_conversationcamp1 4095 91  4 2200 1 144115188075855902 31 2 144115188075855902 360287970189639980 540 3 144115188075855902 161 1 540 3 144115188075855902 162 0 --You_note_that_he_is_impatient,_nervous.--^^Hi_{playername}._We've_been_traveling_together_for_a_while,_and_our_friendship,_at_least_for_me,_is_sincere._In_fact,_I_have_not_trusted_anyone_like_this_for_years.  136  0 NO_VOICEOVER


Script that sets the flag for dialog works with some conditions:
  - sets slot slot_troop_will_join_prison_break to 0 or 1
  - requires relations with player to be > XX for first talk (most are 20, npc15 is 10).
  - may require other npcs in the party (npc16 requires npc15 and npc3)
  - check using slot 162 if it already had the talk or not (it is a counter -> 0, 1, 2, .... always +1 for next dialog)

Example:
Code:
("companions_camp_conversation",
 [
	(try_for_range, ":npc_x", "trp_npc1", "trp_kingdom_1_lord"),
		(troop_set_slot, ":npc_x", slot_troop_will_join_prison_break, 0),
	(try_end),
	(try_for_range, ":npc_x", "trp_npc1", "trp_kingdom_1_lord"),
		(troop_get_slot, ":relation_with_player", ":npc_x", slot_troop_player_relation),
		(lt, "$temp", 1),
		(try_begin),
			(eq, ":npc_x", "trp_npc1"),
			(ge, ":relation_with_player", 20),
			(troop_slot_eq, ":npc_x", 162, 0),
			(troop_set_slot, ":npc_x", slot_troop_will_join_prison_break, 1),
			(assign, "$temp", 1),
		(else_try),
			(eq, ":npc_x", "trp_npc2"),
			(ge, ":relation_with_player", 20),
			(troop_slot_eq, ":npc_x", 162, 0),
			(troop_set_slot, ":npc_x", slot_troop_will_join_prison_break, 1),
			(assign, "$temp", 1),
		(else_try),
			... to the rest of the party

		(try_end),
	(try_end),
 ]),

so make sure you match those conditions.
Edit: I forgot to add: when you enter the camp it calculates a random chance to trigger the conversation (if available). IIRC its like 20%.

Edit2: it seens a bug will prevent the conversation if a companion is not in the party BUT has the conditions to trigger it.:


kalarhan said:
florinteal said:
I think there's something fundamentally wrong with the camp dialog script. Tweaking the flags you mentioned did nothing, so I recruited four more NPCs into my party to see if I could find any pattern in whose dialogs worked and whose didn't, and suddenly Solveig, Helgi, Asbjorn and Agathinos, all of whom I've had in my party for in-game years and who've never said a word to me in the hundreds upon hundred times I've made camp, all initiated their camp dialogs with me one after another. :???:

Reloaded to just before I recruited the four extra guys, spammed camp for several minutes, nothing. They need extra NPCs in the party in order to start dialog even though it's just the main character they're talking to.

Edit: Or maybe not. Maybe they just need other camp dialogs to trigger before theirs will. It was Donnchadh, Morgant, Clovis and Ceawlin I added to my party - Donnchadh and Morgant's dialogs triggered, then a dialog between Clovis and Helgi, and then my old NPCs started chatting; Solveig talked to me twice, then Asbjorn talked to me, then Helgi talked to me twice, and then Agathinos. I dunno, this is confusing.

Additional edit: Yeah, it's this. Has nothing to do with other NPCs being in the party. Some characters' dialogs simply won't trigger before others have. I put the same three characters in my party and the camp dialogs went off in exactly the same order. Dismissed Donnchadh, Morgant and Clovis after their dialogs had occurred and Solveig, Asbjorn, Helgi and Agathinos proceeded to give their camp dialogs. I guess the composition of the script is creating some sort of dependency.

Well if you look at the algorithm it tries to trigger one npc at time, and only one. So lets say :
  - npc1=Caio
  - relations = +80
  - didnt trigger talk yet ((troop_slot_eq, ":npc_x", 162, 0))
  - you told him to beat it (leave party) or he left cause the story itself

That could be a problem. The flag will be set for a talk to Caio and only Caio. But Caio is not in the camp... so it will get stuck with him. It probably needs a test to check if the npc IS IN THE PLAYER PARTY too.

I will test it later today. I gonna create a new game, set the camp chance to 100% (no more luck), edit Caio to loovve me (+100 relations), gonna check if he wants to talk to me... reload save... send him packing... and see what happens with npc2=Egil

If it gets stuck ... well... then we know the issue. I will then add the check if npc is in party and try again.

After results I will remove this post and put the results on my initial one (to not clutter this tweaking thread). It will include the fix if there is indeed a problem.

Cheers

ps.: please do not quote reply this post lol, we want to keep @kraggrim thread clean to all players
How to fix it for 1.03:
          - open scripts.txt

Change this:
Code:
151 6 3 1224979098644774912 360287970189639975 360287970189639991 500 3 1224979098644774912 161 0 3 0 6 3 1224979098644774912 360287970189639975 360287970189639991 520

To this:
Code:
152 6 3 1224979098644774912 360287970189639975 360287970189639991 500 3 1224979098644774912 161 0 3 0 6 3 1224979098644774912 360287970189639975 360287970189639991 110 1 1224979098644774912 520

The change in code:

(try_for_range, ":local_1", "trp_npc1", "trp_kingdom_1_lord"),
(troop_set_slot, ":local_1", slot_troop_will_join_prison_break, 0),
(try_end),
(try_for_range, ":local_1", "trp_npc1", "trp_kingdom_1_lord"),
(main_party_has_troop, ":local_1"),
(troop_get_slot, ":local_2", ":local_1", slot_troop_player_relation),
(neg|eq, "$temp", 1),
(try_begin),
(eq, ":local_1", "trp_npc1"),
(ge, ":local_2", 20),
(troop_slot_eq, ":local_1", 162, 0),
(troop_set_slot, ":local_1", slot_troop_will_join_prison_break, 1),
(assign, "$temp", 1),
(else_try),
(eq, ":local_1", "trp_npc2"),
(ge, ":local_2", 20),
(troop_slot_eq, ":local_1", 162, 0),
(troop_set_slot, ":local_1", slot_troop_will_join_prison_break, 1),
(assign, "$temp", 1),

1.03: If you want to change the chance of a conversation (default is only 20%)

open presentations.txt
change this:
Code:
1 1 2136 3 1224979098644774917 0 100 2133 2 1224979098644774914 0 4 0 30 2 1224979098644774917 80
to this:
Code:
1 1 2136 3 1224979098644774917 0 100 2133 2 1224979098644774914 0 4 0 30 2 1224979098644774917 0
The last number is your change. So for 80 is only 20%. If you put 0 it will be always talk to (100%). Set it between 0 and 99.


Update for 1.04:

The fix is not longer needed if you are using 1.04beta. It is already part of the game code.

For the % chance:
Code:
1 1 2136 3 1224979098644774922 0 100 2133 2 1224979098644774914 0 4 0 30 2 1224979098644774922 80

Change the 80 in the end.

 
Back
Top Bottom