abbrev=""
active_mods="plan_unit_advance"
campaign=""
campaign_define=""
campaign_extra_defines=""
campaign_name=""
campaign_type="multiplayer"
difficulty="NORMAL"
end_credits="yes"
end_text=""
end_text_duration="0"
era_define=""
era_id="ladder_era"
label="2p — Weldyn Channel"
mod_defines=""
mp_game_title="Ladder Tournament RD4 plk2 vs BadHatHarry g1"
oos_debug="no"
random_mode=""
scenario_define=""
version="1.16.0"
[replay]
[upload_log]
[/upload_log]
[/replay]
[scenario]
addon_id="Ladder_Era"
addon_title="Ladder Era"
addon_version="1.0.0"
allow_new_game="no"
description="This vital supply route has played a key role in many of Wesnoth’s greatest battles."
experience_modifier="70"
has_mod_events="yes"
id="multiplayer_Weldyn_Channel_Ladder_Random"
loaded_resources=""
map_data="Ss, Hh, Rp, Ss, Gs^Fp, Hh, Rp, Rp, Hh, Ss, Ss, Gg, Hh, Hh, Gs^Fms, Ss, Gg, Hh, Ww, Ww, Wo, Wo, Ww, Wwf, Hh, Hh, Hh, Hh, Ss, Hh, Hh
Gg^Efm, Gg^Fet, Rp, Mm, Gs^Fp, Ss, Rp, Gs^Fp, Gs^Fet, Gs^Fms, Mm, Gs^Fp, Gg, Gs^Fds, Hh, Gs^Fp, Hh, Gg, Ww, Wo, Wo, Ww, Gs^Fp, Gg^Fet, Gs^Fms, Mm, Ss, Mm, Hh, Gs^Fp, Ss
Gs, Gg, Gg, Rp, Rp, Rp, Gg, Gs^Ve, Gg, Hh, Gg, Gg, Re, Gg, Re, Ch, Mm, Ww, Wo, Wo, Ww, Ww, Mm, Ss, Ss^Vhs, Hh, Gs^Fp, Hh, Gs^Fms, Gg^Fet, Gg^Efm
Gs^Fms, Gs, Gg, Gg, Rp, Gg, Gg, Gg, Re, Mm, Re, Re, Re, Re, Ch, 1 Kh, Ch, Ww, Ww, Ww, Gs^Fp, Hh, Hh, Gs^Fp, Gg, Gg, Gg, Gs, Gg, Hh, Gg^Efm
Hh, Gs^Fp, Rp, Rp, Re^Tf, Gs^Fds, Re, Re, Gg, Re, Gg, Gg, Gg, Kh, Gg, Ch, Wwf, Kh, Ww^Bw\, Gg, Gg, Gg, Gg, Gg, Re, Re^Tf, Mm, Gs, Gs, Gg, Gg
Hh, Hh, Rp, Mm, Gs^Fp, Re, Re, Gg, Gg, Gg, Gs, Gg, Gg, Gg, Gg, Ww, Ww, Wwf, Gg, Gg, Gg, Gg, Gg^Vh, Gg, Re, Ss, Hh, Gs^Fp, Re, Gg, Gg
Gs^Fp, Rp, Mm, Hh, Re, Re, Gg, Gg, Gs, Gs, Gs^Tf, Hh, Hh, Gg^Ve, Ww, Ww, Ww, Gg, Ss, Gs^Fp, Gs, Gg, Gg, Gg, Gs, Re, Re, Re^Tf, Re, Gg, Gg
Rp, Rp, Re, Re, Gg, Gg, Gg^Vh, Gg, Gg, Gs^Fds, Hh, Mm, Gs, Gs^Fp, Ww, Wo, Ww, Gg, Gs^Fp, Ss^Vhs, Ww, Mm, Hh, Gg, Gg^Ve, Gs^Fms, Gs, Re, Gs, Gg, Gg
Re, Re, Gs, Gg, Gs^Fp, Gg, Gg, Gg, Gg, Gs, Gs, Gs, Ww, Ww, Wo, Wo, Wo, Ww, Ww, Ww, Ww, Wwf, Rp, Gg, Gg, Gg, Gs, Gs, Mm, Gs^Tf, Hh
Gg^Fp, Re, Gs, Hh, Ss, Gg^Tf, Gg, Gg, Gs^Fms, Gg^Efm, Gg, Gg, Ww, Ww, Wo, Wo, Mm^Xm, Wo, Wo, Wo, Ww, Wwf, Wwf, Rp, Rp, Gg, Gs^Fp, Hh, Gs^Fet, Hh, Gg
Wwf, Gg, Gg, Gs^Fms, Mm, Hh, Hh, Gg, Gg, Mm, Hh, Ww, Ww, Wo, Wo, Hh, Mm^Xm, Wo, Wo, Wo, Ww, Gs^Fp, Rp, Wwf, Wwf, Gg, Rp, Rp, Rp, Gs, Gg
Rp, Wwf, Wwf, Gg, Wwf, Wwf, Wwf, Rp, Gg, Hh, Ww, Ww, Wo, Ww, Wwr, Mm^Xm, Wwr, Wo, Wo, Ww, Ww, Gg, Gg, Rp, Wwf, Rp, Wwf, Wwf, Wwf, Rp, Rp
Gg, Rp, Rp, Wwf, Rp, Rp, Wwf, Rp, Rp, Gg, Ww, Ww, Wo, Wo, Mm^Xm, Mm^Xm, Wo, Ww, Ww, Ww, Hh, Hh, Gg, Rp, Hh, Wwf, Mm, Gs, Gs, Wwf, Wwf
Gs^Fds, Gg^Efm, Gg^Fet, Rp, Gs^Fms, Gg, Rp, Wwf, Wwf, Gs^Fp, Ww, Wo, Wo, Wo, Mm^Xm, Hh, Wo, Wo, Ww, Ww, Gg, Mm, Gs^Fms, Gg, Gs, Hh, Ss, Gs^Fp, Gs, Gg, Gg^Fp
Hh, Hh, Mm, Hh, Gs, Gg, Gg, Rp, Rp, Wwf, Ww, Wo, Ww, Wo, Wo, Wo, Wo, Ww, Ww, Gg, Gg, Gg^Efm, Gg, Gg, Gg, Gs^Tf, Gg^Fet, Hh, Gs, Re, Re
Gs^Fds, Gs^Tf, Gs, Gs, Gs, Gg, Gg^Ve, Gg, Hh, Wwf, Ww, Ww, Gs^Fp, Ww, Ww, Wo, Ww, Ww, Gg, Gg, Hh, Gg, Gg, Gg, Gg^Vh, Gg, Gg, Gg, Re, Re, Rp
Gg, Gs, Re, Re, Re, Gs^Fms, Gg, Gg, Gg, Mm, Gs, Ss^Vhs, Ss, Gg, Ww, Wo, Ww, Gs^Fp, Hh, Mm, Gs^Tf, Gs^Fp, Gg, Gg, Gg, Gg, Re, Re, Mm, Rp, Gs^Fp
Gg, Gg, Re, Re^Tf, Hh, Re, Re, Gg, Gg^Vh, Gg, Gg, Gs^Fp, Gg, Gg, Ww, Ww, Gg, Gg^Ve, Gg, Hh, Gg, Gg, Gg, Gg, Gg^Efm, Re, Gs^Fds, Hh, Rp, Rp, Hh
Gg, Gg, Gg, Gs^Fp, Mm, Ss, Re, Gg, Gg, Gg, Gg, Gg, Ww^Bw\, Wwf, Wwf, Ww, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Gg, Re, Re, Re^Tf, Mm, Rp, Hh, Hh
Gg^Efm, Gg, Gg, Gg, Gg, Re^Tf, Gs, Gg, Hh, Gs, Gs^Fp, Gg, Ww, Kh, Ch, Ch, Ch, Kh, Gg, Gg, Re, Re, Re, Re, Gg, Gs^Fp, Rp, Rp, Gg, Gs^Fms, Gg
Gs^Fds, Gs, Gs^Fp, Gs, Gs^Fp, Gs, Ss^Vhs, Gs^Fp, Mm, Hh, Ww, Ww, Wo, Ww, Mm, 2 Kh, Re, Re, Re, Re, Gs, Gs^Ve, Gs, Gg, Gg, Gg, Rp, Gg, Gg, Gs, Gg
Ss, Gg^Fet, Ss, Hh, Mm, Hh, Gs^Fms, Ss, Gs^Fp, Ww, Wo, Wo, Ww, Ww, Hh, Ch, Gs^Fds, Gs, Gs^Fms, Mm, Gs^Fet, Hh, Mm, Hh, Rp, Rp, Gs^Fp, Rp, Rp, Gg, Gg
Hh, Hh, Gs^Fms, Gs^Fp, Hh, Ss, Mm, Gg^Fet, Ww, Ww, Wo, Wo, Ww, Hh, Gs^Fp, Gg^Fet, Gs^Fms, Hh, Mm, Hh, Gs^Fp, Ss, Hh, Gs^Fp, Rp, Ss, Ss, Hh, Mm, Rp, Gg
Hh, Gs^Fms, Hh, Ss, Hh, Hh, Wwf, Ww, Wo, Wo, Ww, Ww, Hh, Gg, Hh, Hh, Ss, Hh, Hh, Gs^Fms, Ss, Hh, Rp, Rp, Gg, Hh, Hh, Gs^Fp, Ss, Rp, Hh
"
name="2p — Weldyn Channel"
objectives="<big>Victory:</big>
<span color='#00ff00'>• Defeat enemy leader(s)</span>"
random_start_time="no"
[event]
name="prestart"
[store_side]
variable="new_side"
[has_unit]
id="id1"
[/has_unit]
[/store_side]
[modify_side]
color="$old_side1.color"
side="$new_side.side"
village_gold="$old_side1.village_gold"
[/modify_side]
[set_variable]
name="side$new_side.side|_faction"
value="$old_side1.faction"
[/set_variable]
[clear_variable]
name="new_side"
[/clear_variable]
[store_side]
variable="new_side"
[has_unit]
id="id2"
[/has_unit]
[/store_side]
[modify_side]
color="$old_side2.color"
side="$new_side.side"
village_gold="$old_side2.village_gold"
[/modify_side]
[set_variable]
name="side$new_side.side|_faction"
value="$old_side2.faction"
[/set_variable]
[clear_variable]
name="new_side"
[/clear_variable]
[clear_variable]
name="old_side1,old_side2,next_scenario"
[/clear_variable]
[/event]
[event]
name="prestart"
[set_variable]
name="maps"
[join]
key="name"
separator="
"
variable="map_pool"
[/join]
[/set_variable]
[chat]
message="Map pool:"
speaker=""
[/chat]
[chat]
message="$maps"
speaker=""
[/chat]
[chat]
message="/me ctrl+x to clear"
speaker="Press"
[/chat]
[clear_variable]
name="map_pool,maps"
[/clear_variable]
[/event]
[time]
blue="0"
green="-15"
id="dawn"
image="misc/time-schedules/default/schedule-dawn.png"
name="Dawn"
red="-25"
sound="ambient/morning.ogg"
[/time]
[time]
id="morning"
image="misc/time-schedules/default/schedule-morning.png"
lawful_bonus="25"
name="Morning"
[/time]
[time]
id="afternoon"
image="misc/time-schedules/default/schedule-afternoon.png"
lawful_bonus="25"
name="Afternoon"
[/time]
[time]
blue="-35"
green="-20"
id="dusk"
image="misc/time-schedules/default/schedule-dusk.png"
name="Dusk"
red="10"
sound="ambient/night.ogg"
[/time]
[time]
blue="-13"
green="-45"
id="first_watch"
image="misc/time-schedules/default/schedule-firstwatch.png"
lawful_bonus="-25"
name="First Watch"
red="-75"
[/time]
[time]
blue="-13"
green="-45"
id="second_watch"
image="misc/time-schedules/default/schedule-secondwatch.png"
lawful_bonus="-25"
name="Second Watch"
red="-75"
[/time]
[music]
ms_before="12000"
name="knolls.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="wanderer.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="battle.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="transience.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_king_is_dead.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="knalgan_theme.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_city_falls.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="nunc_dimittis.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="revelation.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="loyalists.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="breaking_the_chains.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="elvish-theme.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="legends_of_the_north.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="traveling_minstrels.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="underground.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="vengeful.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="frantic.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_dangerous_symphony.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="heroes_rite.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="suspense.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_deep_path.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="siege_of_laurelmor.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="casualties_of_war.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="silvan_sanctuary.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="battle-epic.ogg"
[/music]
[event]
name="prestart"
[music]
ms_before="12000"
name="knolls.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="wanderer.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="battle.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="transience.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_king_is_dead.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="knalgan_theme.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_city_falls.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="nunc_dimittis.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="revelation.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="loyalists.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="breaking_the_chains.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="elvish-theme.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="legends_of_the_north.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="traveling_minstrels.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="underground.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="vengeful.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="frantic.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_dangerous_symphony.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="heroes_rite.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="suspense.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="the_deep_path.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="siege_of_laurelmor.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="casualties_of_war.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="silvan_sanctuary.ogg"
[/music]
[music]
append="yes"
ms_before="12000"
name="battle-epic.ogg"
[/music]
[/event]
[event]
first_time_only="no"
name="preload"
[lua]
code="-- pickadvance_dialog

pickadvance = {}
local T = wml.tag
local _ = wesnoth.textdomain ""wesnoth""

function pickadvance.show_dialog_unsynchronized(advance_info, unit)
-- dialog exit codes --
	local cancel_code = -2
	local single_unit_code = -1
--
	local unit_type_options = advance_info.type_advances
	local options = {}
	for _, ut in ipairs(unit_type_options) do
		options[#options + 1] = wesnoth.unit_types[ut]
	end

	local unit_override_one = (advance_info.unit_override or {})[2] == nil
		and (advance_info.unit_override or {})[1] or nil
	local game_override_one = (advance_info.game_override or {})[2] == nil
		and (advance_info.game_override or {})[1] or nil

	local description_row = T.row {
		T.column {
			border = ""all"",
			border_size = 5,
			horizontal_alignment = ""left"",
			T.label {
				definition = ""title"",
				label = _ ""Plan Advancement""
			}
		},
	}

	local list_row_definition = T.grid {
		T.row {
			T.column {
				border = ""all"",
				border_size = 5,
				grow_factor = 0,
				horizontal_alignment = ""left"",
				T.image {
					id = ""the_icon"",
					linked_group = ""image""
				}
			},
			T.column {
				border = ""all"",
				border_size = 5,
				grow_factor = 1,
				horizontal_alignment = ""left"",
				T.label {
					use_markup = true,
					id = ""the_label"",
					linked_group = ""type""
				}
			},
			T.column {
				border = ""all"",
				border_size = 5,
				horizontal_alignment = ""center"",
				vertical_alignment = ""center"",
				T.image {
					id = ""global_icon"",
					linked_group = ""global_icon"",
					label = ""icons/action/editor-tool-unit_30-pressed.png"",
					tooltip = _ ""This advancement is currently the default for all units of the same type""
				}
			}
		}
	}

	local listbox = T.listbox {
		id = ""the_list"",
		has_minimum = true,
		T.list_definition {
			T.row {
				T.column {
					horizontal_grow = true,
					vertical_grow = true,
					T.toggle_panel {
						return_value = single_unit_code,
						list_row_definition
					}
				}
			}
		}
	}

-- main dialog definition
	local dialog = {
		T.tooltip {
			id = ""tooltip""
		},
		T.helptip {
			id = ""tooltip""
		},
		T.linked_group {
			id = ""image"",
			fixed_width = true
		},
		T.linked_group {
			id = ""type"",
			fixed_width = true
		},
		T.linked_group {
			id = ""global_icon"",
			fixed_width = true
		},
		T.grid {
			description_row,
			T.row {
				grow_factor = 1,
				T.column {
					border = ""all"",
					border_size = 5,
					horizontal_grow = true,
					listbox
				}
			},
			T.row {
				grow_factor = 0,
				T.column {
					border = ""all"",
					border_size = 5,
					horizontal_alignment = ""left"",
					T.toggle_button {
						id = ""apply_to_all"",
						label = _ ""Apply to all units of this type""
					}
				}
			},
			T.row {
				T.column {
					horizontal_alignment = ""right"",
					T.grid {
						T.row {
							grow_factor = 0,
							T.column {
								border = ""all"",
								border_size = 5,
								horizontal_alignment = ""right"",
								T.button {
									return_value = single_unit_code,
									label = _ ""Save""
								}
							},
							T.column {
								border = ""all"",
								border_size = 5,
								horizontal_alignment = ""right"",
								T.button {
									id = ""cancel"",
									label = _ ""Cancel""
								}
							}
						}
					}
				}
			}
		}
	}

-- dialog preshow function
	local function preshow(window)
		window.apply_to_all.visible = not unit.canrecruit

		local selection = 0

		local empty_icon_unit = ""misc/blank-hex.png""

		local null_row = window.the_list[1]
		null_row.the_icon.label = empty_icon_unit
		null_row.the_label.label = _ ""No planned advancement""
		null_row.global_icon.visible = false

		for i, advance_type in ipairs(options) do
			local n = i + 1
			local text = advance_type.name
			if advance_type.id == game_override_one or advance_type.id == unit_override_one then
				selection = n
			end
			local this_row = window.the_list[n]
			this_row.the_label.label = text
			local img = advance_type.__cfg.image
			if img then
				img = (""%s~TC(%d,%s)""):format(img, unit.side, advance_type.__cfg.flag_rgb or ""magenta"")
			else
				img = empty_icon_unit
			end
			this_row.the_icon.label = img
			this_row.global_icon.visible = not not (advance_type.id == game_override_one) or ""hidden""
		end

		window.the_list:focus()
		if selection > 0 then
			window.the_list.selected_index = selection
		end
	end

-- dialog postshow function
	local item_result
	local apply_to_all
	local function postshow(window)
		item_result = window.the_list.selected_index - 1
		apply_to_all = window.apply_to_all.selected
	end

	local dialog_exit_code = gui.show_dialog(dialog, preshow, postshow)

	if dialog_exit_code == cancel_code then
		return { ignore = true }
	end

-- determine the choice made
	local is_reset = item_result == 0
	return {
		ignore = false,
		is_unit_override = not apply_to_all,
		unit_override = not is_reset and options[item_result].id or table.concat(unit_type_options, "",""),

		is_game_override = apply_to_all,
		game_override = apply_to_all and (not is_reset and options[item_result].id) or nil,
	}
end

-- "
[/lua]
[lua]
code="-- pick_advance/main.lua

local on_event = wesnoth.require ""on_event""
local F = wesnoth.require ""functional""
local T = wml.tag
local _ = wesnoth.textdomain ""wesnoth""

wesnoth.wml_actions.set_menu_item {
	id = ""pickadvance"",
	description = _ ""Plan Advancement"",
	T.show_if {
		T.lua {
			code = ""return pickadvance.menu_available()""
		},
	},
	T.command {
		T.lua {
			code = ""pickadvance.pick_advance()""
		}
	}
}

-- replace any non-alphanumeric characters with an underscore
local function clean_type_func(unit_type)
	return string.gsub(unit_type, ""[^a-zA-Z0-9]"", ""_"")
end

-- splits a comma delimited string of unit types
-- returns a table of unit types that aren't blank, ""null"", and that exist
local function split_comma_units(string_to_split)
	return F.filter(
		stringx.split(string_to_split or """"),
		function(s) return s ~= """" and s ~= ""null"" and wesnoth.unit_types[s] end
	)
end

-- returns a table of the original unit types
--         a comma delimited string containing the same values
local function original_advances(unit)
	local clean_type = clean_type_func(unit.type)
	local variable = unit.variables[""pickadvance_orig_"" .. clean_type] or """"
	return split_comma_units(variable), clean_type_func(variable)
end

-- replace the unit's current advancements with the new set of units via object/effect
local function set_advances(unit, array)
	unit:add_modification(""object"", {
		pickadvance = true,
		take_only_once = false,
		T.effect {
			apply_to = ""new_advancement"",
			replace = true,
			types = array
		}
	})
end

-- for table ""arr"" containing sets of [index,unit_type]
-- return table containing sets of [unit_type,true]
local function array_to_set(arr)
	local result = {}
	for _, v in ipairs(arr) do
		result[v] = true
	end
	return result
end

-- works as anti-cheat and fixes tricky bugs in [male]/[female]/undead variation overrides
local function filter_overrides(unit, overrides)
	local possible_advances_array = original_advances(unit)
	local possible_advances = array_to_set(possible_advances_array)
	local filtered = F.filter(overrides, function(e) return possible_advances[e] end)
	return #filtered > 0 and filtered or possible_advances_array
end

-- returns a table with the unit's original advancements
--         the unit's currently overridden advancement or nil if not set
--         the unit's currently overridden advancement or nil if not set, but set by some other mechanism from the current game
local function get_advance_info(unit)
	local type_advances, orig_options_sanitized = original_advances(unit)
	local game_override_key = ""pickadvance_side"" .. unit.side .. ""_"" .. orig_options_sanitized
	local game_override = wml.variables[game_override_key]
	local function correct(override)
		return override and #override > 0 and #override < #type_advances and override or nil
	end

	return {
		type_advances = type_advances,
		unit_override = correct(unit.advances_to),
		game_override = correct(split_comma_units(game_override)),
	}
end

-- true if there's a unit at the selected hex
--      the unit has advancements
--      the unit is on a local human controlled side
--      the unit has multiple options in either its original set of advancements or current set of advancements
function pickadvance.menu_available()
	local unit = wesnoth.units.get(wml.variables.x1, wml.variables.y1)
	return unit and
		#unit.advances_to > 0
		and wesnoth.sides[unit.side].is_local and wesnoth.sides[unit.side].controller == ""human""
		and (#original_advances(unit) > 1 or #unit.advances_to > 1)
end

-- if the unit doesn't have a set of original advancements present, remove any existing ""pickadvance"" object
-- set the unit's original advancements in its variables
-- and then set the unit's advancement to either a game-provided override or its default advancements
local function initialize_unit(unit)
	local clean_type = clean_type_func(unit.type)
	if unit.variables[""pickadvance_orig_"" .. clean_type] == nil then
		unit:remove_modifications{
			pickadvance = true
		}
		unit.variables[""pickadvance_orig_"" .. clean_type] = table.concat(unit.advances_to, "","")
		local advance_info = get_advance_info(unit)
		local desired = advance_info.game_override or unit.advances_to
		desired = filter_overrides(unit, desired)
		set_advances(unit, desired)
	end
end

-- let the player select the unit's advancement via dialog
function pickadvance.pick_advance(unit)
	unit = unit or wesnoth.units.get(wml.variables.x1, wml.variables.y1)
	initialize_unit(unit)
	local _, orig_options_sanitized = original_advances(unit)
	local dialog_result = wesnoth.sync.evaluate_single(function()
		local local_result = pickadvance.show_dialog_unsynchronized(get_advance_info(unit), unit)
		return local_result
	end, function() return { is_ai = true } end)
	if dialog_result.ignore or dialog_result.is_ai then
		return
	end
	dialog_result.unit_override = split_comma_units(dialog_result.unit_override)
	dialog_result.game_override = split_comma_units(dialog_result.game_override)
	dialog_result.unit_override = filter_overrides(unit, dialog_result.unit_override)
	dialog_result.game_override = filter_overrides(unit, dialog_result.game_override)
	if dialog_result.is_unit_override then
		set_advances(unit, dialog_result.unit_override)
	end
	if dialog_result.is_game_override then
		local key = ""pickadvance_side"" .. unit.side .. ""_"" .. orig_options_sanitized
		wml.variables[key] = table.concat(dialog_result.game_override, "","")
	end
end

-- make unit advancement tree viewable in the ingame help
local known_units = {}
local function make_unit_known(unit)  -- can be both unit or unit type
	local type = unit.type or unit.id
	if known_units[type] then return end
	known_units[type] = true
	wesnoth.add_known_unit(type)
	for _, advance in ipairs(unit.advances_to) do
		make_unit_known(wesnoth.unit_types[advance])
	end
end

-- initialize a unit for picking an advancement
-- make its advancements viewable
-- force picking an advancement if it has multiple and the force option was specified
local function initialize_unit_x1y1(ctx)
	local unit = wesnoth.units.get(ctx.x1, ctx.y1)
	if not wesnoth.sides[unit.side].__cfg.allow_player then return end
	initialize_unit(unit)
	make_unit_known(unit)
	if #unit.advances_to > 1 and wml.variables.pickadvance_force_choice and unit.side == wesnoth.current.side then
		pickadvance.pick_advance(unit)
	end
end

-- return true if the side can be played and has either a recruit list set or non-leader units
local function humans_can_recruit()
	for _, side in ipairs(wesnoth.sides) do
		local units = wesnoth.units.find_on_map { side = side.side, canrecruit = false }
		if side.__cfg.allow_player and (#side.recruit ~= 0 or #units > 0) then
			return true
		end
	end
end
-- return true if any keeps exist
local function map_has_keeps()
	for x, y in wesnoth.current.map:iter() do
		local terr = wesnoth.current.map[{x, y}]
		local info = wesnoth.terrain_types[terr]
		if info.keep then
			return true
		end
	end
end

-- on start determine whether choosing an advancement is force for each unit
on_event(""start"", function()
	local map_has_recruits = humans_can_recruit() and map_has_keeps()
	wml.variables.pickadvance_force_choice = wml.variables.pickadvance_force_choice or not map_has_recruits
end)

-- set ""fresh_turn"" for the moveto event at the start of each side turn
local fresh_turn = false
on_event(""turn refresh"", function()
	fresh_turn = true
end)

-- the first time a unit moves at the start of each side's turn, check if there are any new units that need to be forced to make an advancement choice
on_event(""moveto"", function()
	if fresh_turn then
		fresh_turn = false
		if not wesnoth.sides[wesnoth.current.side].__cfg.allow_player then return end
		for _, unit in ipairs(wesnoth.units.find_on_map { side = wesnoth.current.side }) do
			if #unit.advances_to > 1 and wml.variables.pickadvance_force_choice and wesnoth.current.turn > 1 then
				pickadvance.pick_advance(unit)
				if #unit.advances_to > 1 then
					local len = #unit.advances_to
					local rand = mathx.random(len)
					unit.advances_to = { unit.advances_to[rand] }
				end
			else
				initialize_unit(unit)
			end
		end
	end
end)

-- initialize units on recruit and after advancing, forcing another advancement choice if required
on_event(""recruit"", initialize_unit_x1y1)
on_event(""post advance"", initialize_unit_x1y1)


-- "
[/lua]
[/event]
[event]
name="prestart"
[chat]
message="/me version 1.0.0"
speaker="Ladder Era"
[/chat]
[/event]
[event]
name="time over"
[lua]
code=" wesnoth.require(""multiplayer/eras.lua"").turns_over_advantage() "
[/lua]
[/event]
[event]
name="prestart"
[lua]
code=" wesnoth.require(""multiplayer/eras.lua"").quick_4mp_leaders(...) "
[args]
[trait]
female_name="female^quick"
help_text="<italic>text='Quick'</italic> units have 1 extra movement point, but 5% less hitpoints than usual." +
							_"

Quick is the most noticeable trait, particularly in slower moving units such as trolls or heavy infantry. Units with the quick trait often have greatly increased mobility in rough terrain, which can be important to consider when deploying your forces. Also, quick units aren’t quite as tough as units without this trait and are subsequently less good at holding contested positions."
id="quick"
male_name="quick"
[effect]
apply_to="movement"
increase="1"
[/effect]
[effect]
apply_to="hitpoints"
increase_total="-5%"
[/effect]
[/trait]
[/args]
[/lua]
[/event]
[event]
name="prestart"
[lua]
code=" wesnoth.require(""~add-ons/Ladder_Era/lua/slow_6mp_leaders.lua"").slow_6mp_leaders(...) "
[args]
[trait]
female_name="female^slow"
help_text="<italic>text='Slow'</italic> units have 1 less movement point but 5% more hitpoints." +
							_"

Thick-bodied and clumsy, slow individuals of goblins and other species take a movement penalty but are compensated for it with a slight increase in endurance."
id="slow"
male_name="slow"
[effect]
apply_to="movement"
increase="-1"
[/effect]
[effect]
apply_to="hitpoints"
increase_total="5%"
[/effect]
[/trait]
[/args]
[/lua]
[/event]
[event]
first_time_only="no"
name="side_turn"
[modify_unit]
resting="yes"
[filter]
side="$side_number"
status="poisoned"
trait="hardy"
[filter_location]
terrain="!,*^V*,*^Do"
[/filter_location]
[not]
[filter_adjacent]
ability_type="heals"
is_enemy="no"
[/filter_adjacent]
[/not]
[/filter]
[/modify_unit]
[/event]
[event]
name="prestart"
[set_menu_item]
description="Ladder Era Summary"
id="0_summary"
[command]
[message]
image="ladder-icon.png"
message="Changes comparing to the Default Era.

Leaders
- Leaders with 6 movement points receive slow trait (similar to how 4 mp leaders receive quick trait, which is inherited from the Default Era)
- Pikeman, Red Mage, White Mage, Elvish Sorceress, Trapper and Rogue removed from the leader pools
- Removed leaders from the manual selection pool that are not present in the random selection pool

Drakes
- Drake Fighter: 30% defense in shallow water
- Drake Burner: -50% cold resistance

Knalgan Alliance
- Dwarves have 3 traits, hardy trait (always rest heal if poisoned) is mandatory, healthy trait is removed.
- Footpad: melee blade 5-2
- Poacher: 32 hitpoints
- Ulfserker: 20 gold
- Thunderer: 16 gold
- Guardsman: ranged attack 6-1

Loyalists
- Spearman: ranged attack 5-1
- Bowman: melee attack 5-2
- Cavalryman: 18 gold
- Heavy Infantryman: -10% cold resistance

Northerners
- Orcish Archer: ranged pierce attack 5-3

Rebels
- Elvish Shaman: no dextrous trait, ranged attack 3-2
- Merman Hunter: 32 hitpoints, 60% defense in deep water

Undead
- Vampire bat: no intelligent trait
- Skeleton Archer: 15 gold"
side_for="$side_number"
speaker="narrator"
[/message]
[/command]
[/set_menu_item]
[/event]
[event]
name="prestart"
[set_menu_item]
description="Ladder Era Changelog"
id="1_changelog"
[command]
[message]
image="ladder-icon.png"
message="Version 1.0.0
- Release for Wesnoth 1.16
- Ghost and Wose were changed in Default Era of Wesnoth 1.16 and they became the same as in Ladder Era
- Ladder Era DOES NOT include Drake Burner, Heavy Infantryman, Elvish Shaman, Merman Hunter and Poacher changes from Default Era 1.16. Ladder Era versions of those units comparing to Default Era:
    -- Drake Burner: -50% cold resistance
    -- Heavy Infantryman: -10% cold resistance
    -- Elvish Shaman: no dextrous trait, ranged attack 3-2
    -- Merman Hunter: 32 hitpoints, 60% defense in deep water
    -- Poacher: 32 hitpoints

Version 0.1.17
- Created Ladder Test Era with Dwarvish Thunderer 9-2 ranged attack and 17 gold

Version 0.1.16
- Dwarvish Thunderer back to 18-1 ranged attack and 16 gold

Version 0.1.15
- Dwarvish Thunderer removed 18-1 ranged attack, 9-2 is left

Version 0.1.14
- Dwarvish Thunderer cost from 16 to 17

Version 0.1.13
- Fixed changelog displayed for both players

Version 0.1.12
- Added new ranged attack which shot twice to Dwarvish Thunderer line for testing purposes

Version 0.1.11
- Fixed Footpad animation bug

Version 0.1.10
- Made add-on compatible with older versions
- Updated all Footpad sprites

Version 0.1.9
- Added Competitive Map Pack
- Minor map updates to Den of Onis and Fallenstar Lake

Version 0.1.8
- Pikeman and Rogue removed from leader pools
- Removed dextrous trait from Poacher
- Dwarvish Ulfserker cost from 19 to 20
- Dwarvish Thunderer cost from 17 to 16
- Dwarvish Guardsman ranged attack from 5-1 to 6-1
- Dwarvish Steelclad hitpoints from 59 to 57
- Bowman melee attack from 4-2 to 5-2
- Skeleton Archer cost from 14 to 15
- Cavalry reverted movement from 7 to 8, cost changed from 17 to 18 gold
- Footpad sprite update

Version 0.1.7
- Reverted Dwarvish Ulfserker and Berserker arcane resistance back to 10% as in the Default Era

Version 0.1.6
- Fixed map picker Hornshark Island bug. Units on the map should depend on player's faction

Version 0.1.5
- Removed Elvish Sorceress from the leaders pool
- Removed Hornshark Island from the classic map pool

Version 0.1.4
- Updated map pickers: map pool is printed to the chat area

Version 0.1.3
- Improved map pickers code
- Added add-on documentation

Version 0.1.2
- Allowed 2v2 maps to be played with the Ladder Era
- Prevent map pickers to load if less than 2 maps are present in the map pool

Version 0.1.1
- Added feature to the map pickers to configure the pool of maps

Version 0.1.0
- Added modified versions of Den of Onis, Hamlets, Silverhead Crossing and The Freelands maps
- Created map pickers for selecting random map from a pool of approved maps
- Implemented Ladder Era with the next changes comparing to the Default Era:
    -- Leaders
        --- Leaders with 6 movement points receive slow trait (similar to how 4 mp leaders receive quick trait, which is inherited from the Default Era)
        --- Red Mage, White Mage and Trapper removed from the leaders pool
        --- Removed leaders from the manual selection pool that are not present in the random selection pool
    -- Drakes
        --- Drake Fighter: 30% defense in shallow water
    -- Knalgan Alliance
        --- Dwarves have 3 traits, hardy trait (always rest heal if poisoned) is mandatory, healthy trait is removed
        --- Dwarvish Ulfserker: -20% arcane resistance
        --- Poacher: can have dextrous trait
        --- Footpad: melee blade 5-2
    -- Loyalists
        --- Spearman: ranged attack 5-1
        --- Cavalryman: 7 movement points
    -- Northerners
        --- Orcish Archer: ranged pierce attack 5-3
    -- Rebels
        --- Elvish Shaman: no dextrous trait
        --- Wose: 0% cold resistance
        --- Merman Hunter: +2 hitpoints and 60% defense in deep water
    -- Undead
        --- Vampire bat: no intelligent trait
        --- Ghost: 19 gold"
side_for="$side_number"
speaker="narrator"
[/message]
[/command]
[/set_menu_item]
[/event]
[side]
allow_changes="yes"
allow_player="yes"
canrecruit="yes"
chose_random="no"
color="blue"
controller="human"
current_player="plk2"
faction="Custom"
faction_name="Custom"
fog="yes"
gender="male"
gold="100"
id="id2"
income="0"
is_host="no"
is_local="no"
name="plk2"
player_id="plk2"
save_id="id2"
side="1"
team_name="Team 1"
type="Dwarvish Thunderguard Ladder_1"
user_team_name="Team 1"
[ai]
villages_per_scout="8"
[/ai]
[default_faction]
faction="Custom"
[/default_faction]
[/side]
[side]
allow_changes="yes"
allow_player="yes"
canrecruit="yes"
chose_random="no"
color="red"
controller="human"
current_player="BadHatHarry"
faction="Custom"
faction_name="Custom"
fog="yes"
gender="female"
gold="100"
id="id1"
income="0"
is_host="yes"
is_local="no"
name="BadHatHarry"
player_id="BadHatHarry"
save_id="id1"
side="2"
team_name="Team 2"
type="Dark Sorcerer"
user_team_name="Team 2"
[ai]
villages_per_scout="8"
[/ai]
[village]
x="6"
y="20"
[/village]
[default_faction]
faction="Custom"
[/default_faction]
[/side]
[/scenario]
[carryover_sides_start]
next_scenario="multiplayer_Weldyn_Channel_Ladder_Random"
next_underlying_unit_id="2"
random_calls="0"
random_seed="fc784dc0"
[side]
add="no"
current_player="BadHatHarry"
gold="0"
previous_recruits="Bowman Ladder_1,Cavalryman Ladder_1,Fencer,Heavy Infantryman Ladder_1,Horseman,Mage,Merman Fighter,Spearman Ladder_1"
save_id="id1"
[variables]
[/variables]
[unit]
attacks_left="1"
canrecruit="yes"
cost="34"
experience="0"
extra_recruit=""
facing="n"
flag_rgb="magenta"
gender="male"
generate_name="yes"
halo=""
hitpoints="42"
id="id1"
image="units/human-loyalists/lieutenant.png"
image_icon=""
jamming="0"
language_name="Lieutenant"
max_hitpoints="42"
max_moves="5"
moves="5"
name="BadHatHarry"
overlays=""
race="human"
random_traits="no"
recall_cost="-1"
resting="no"
role=""
type="Lieutenant"
undead_variation=""
underlying_id="1"
unrenamable="no"
upkeep="full"
usage="fighter"
variation=""
vision="5"
[modifications]
[trait]
female_name="female^slow"
help_text="<italic>text='Slow'</italic> units have 1 less movement point but 5% more hitpoints." +
							_"

Thick-bodied and clumsy, slow individuals of goblins and other species take a movement penalty but are compensated for it with a slight increase in endurance."
id="slow"
male_name="slow"
[effect]
apply_to="movement"
increase="-1"
[/effect]
[effect]
apply_to="hitpoints"
increase_total="5%"
[/effect]
[/trait]
[/modifications]
[variables]
[/variables]
[filter_recall]
[/filter_recall]
[status]
[/status]
[/unit]
[/side]
[side]
add="no"
current_player="plk2"
gold="0"
previous_recruits="Drake Burner Ladder_1,Drake Clasher,Drake Fighter Ladder_1,Drake Glider,Saurian Augur,Saurian Skirmisher"
save_id="id2"
[variables]
[/variables]
[unit]
attacks_left="1"
canrecruit="yes"
cost="33"
experience="0"
extra_recruit=""
facing="s"
flag_rgb="magenta"
gender="male"
generate_name="yes"
halo=""
hitpoints="55"
id="id2"
image="units/drakes/flare.png"
image_icon=""
jamming="0"
language_name="Drake Flare" +
					_" (ladder)"
moves="5"
name="plk2"
overlays=""
race="drake"
random_traits="no"
recall_cost="-1"
resting="no"
role=""
type="Drake Flare Ladder_1"
undead_variation="drake"
underlying_id="2"
unrenamable="no"
upkeep="full"
usage="mixed fighter"
variation=""
vision="-1"
[variables]
[/variables]
[filter_recall]
[/filter_recall]
[status]
[/status]
[modifications]
[/modifications]
[/unit]
[/side]
[variables]
next_scenario="multiplayer_Weldyn_Channel_Ladder_Random"
pickadvance_force_choice="no"
turn_number="1"
x1="0"
x2="0"
y1="0"
y2="0"
[old_side1]
action_bonus_count="0"
allow_player="yes"
auto_shroud="yes"
base_income="2"
carryover_add="no"
carryover_bonus="1"
carryover_gold="0"
carryover_percentage="80"
chose_random="yes"
color="red"
controller="human"
countdown_time="0"
current_player="BadHatHarry"
defeat_condition="no_leader_left"
disallow_observers="no"
expenses="0"
faction="Ladder Loyalists"
faction_name="Loyalists"
flag=""
flag_icon=""
fog="yes"
fog_data=""
gold="100"
hidden="no"
id="id1"
income="2"
lost="no"
net_income="2"
no_leader="no"
num_units="1"
num_villages="0"
objectives="<big>Victory:</big>
<span color='#00ff00'>• Defeat enemy leader(s)</span>"
objectives_changed="yes"
persistent="yes"
recall_cost="20"
recruit="Bowman Ladder_1,Cavalryman Ladder_1,Fencer,Heavy Infantryman Ladder_1,Horseman,Mage,Merman Fighter,Spearman Ladder_1"
save_id="id1"
scroll_to_leader="yes"
share_vision="all"
shroud="no"
shroud_data=""
side="1"
side_name=""
start_gold="100"
suppress_end_turn_confirmation="no"
team_name="team1"
total_upkeep="0"
user_team_name="teamname^1"
village_gold="2"
village_support="1"
[ai]
description="Multiplayer_AI^Default AI (RCA)"
id="ai_default_rca"
mp_rank="1000"
[stage]
id="main_loop"
name="ai_default_rca::candidate_action_evaluation_loop"
[candidate_action]
engine="cpp"
id="goto"
max_score="200000"
name="ai_default_rca::goto_phase"
score="200000"
[/candidate_action]
[candidate_action]
engine="lua"
id="retreat_injured"
location="ai/lua/ca_retreat_injured.lua"
max_score="192000"
name="ai_default_rca::retreat_injured"
[/candidate_action]
[candidate_action]
engine="lua"
id="spread_poison"
location="ai/lua/ca_spread_poison.lua"
max_score="190000"
name="ai_default_rca::spread_poison"
[/candidate_action]
[candidate_action]
engine="cpp"
id="recruitment"
max_score="180000"
name="default_recruitment::recruitment"
score="180000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="move_leader_to_goals"
max_score="140000"
name="ai_default_rca::move_leader_to_goals_phase"
score="140000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="move_leader_to_keep"
max_score="120000"
name="ai_default_rca::move_leader_to_keep_phase"
score="120000"
[/candidate_action]
[candidate_action]
engine="lua"
id="high_xp_attack"
location="ai/lua/ca_high_xp_attack.lua"
max_score="100010"
name="ai_default_rca::high_xp_attack"
[/candidate_action]
[candidate_action]
engine="cpp"
id="combat"
max_score="100000"
name="ai_default_rca::combat_phase"
score="100000"
[/candidate_action]
[candidate_action]
engine="lua"
id="place_healers"
location="ai/lua/ca_place_healers.lua"
max_score="96000"
name="ai_default_rca::place_healers"
[/candidate_action]
[candidate_action]
engine="cpp"
id="healing"
max_score="80000"
name="ai_default_rca::get_healing_phase"
score="80000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="villages"
max_score="60000"
name="ai_default_rca::get_villages_phase"
score="60000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="move_to_targets"
max_score="20000"
name="ai_default_rca::move_to_targets_phase"
score="20000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="leader_shares_keep"
max_score="10000"
name="ai_default_rca::leader_shares_keep_phase"
score="10000"
[/candidate_action]
[candidate_action]
engine="lua"
id="move_to_any_enemy"
location="ai/lua/ca_move_to_any_enemy.lua"
max_score="1000"
name="ai_default_rca::move_to_any_enemy"
[/candidate_action]
[/stage]
[aspect]
engine="cpp"
id="advancements"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="aggression"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="0.4"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="attacks"
invalidate_on_gamestate_change="yes"
name="composite_aspect"
[default]
engine="cpp"
invalidate_on_gamestate_change="yes"
name="ai_default_rca::aspect_attacks"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="avoid"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[value]
[not]
[/not]
[/value]
[/default]
[/aspect]
[aspect]
engine="cpp"
id="caution"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="0.25"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="grouping"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="offensive"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_aggression"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="-4.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_goal"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_ignores_keep"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_value"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="3.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="passive_leader"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="passive_leader_shares_keep"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_diversity"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="2.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_instructions"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[value]
[recruit]
importance="0"
[/recruit]
[/value]
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_more"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_pattern"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[facet]
engine="cpp"
name="standard_aspect"
time_of_day=""
turns=""
value="fighter,fighter,fighter,archer,mixed fighter,scout"
[/facet]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_randomness"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="50"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_save_gold"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[value]
active="0"
[/value]
[/default]
[/aspect]
[aspect]
engine="cpp"
id="retreat_enemy_weight"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="1.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="retreat_factor"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="0.25"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="scout_village_targeting"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="3"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="simple_targeting"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="support_villages"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="village_value"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="1.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="villages_per_scout"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="4"
[/default]
[/aspect]
[/ai]
[/old_side1]
[old_side2]
action_bonus_count="0"
allow_player="yes"
auto_shroud="yes"
base_income="2"
carryover_add="no"
carryover_bonus="1"
carryover_gold="0"
carryover_percentage="80"
chose_random="yes"
color="blue"
controller="human"
countdown_time="0"
current_player="plk2"
defeat_condition="no_leader_left"
disallow_observers="no"
expenses="0"
faction="Ladder Drakes"
faction_name="Drakes"
flag=""
flag_icon=""
fog="yes"
fog_data=""
gold="100"
hidden="no"
id="id2"
income="2"
lost="no"
net_income="2"
no_leader="no"
num_units="1"
num_villages="0"
objectives="<big>Victory:</big>
<span color='#00ff00'>• Defeat enemy leader(s)</span>"
objectives_changed="yes"
persistent="yes"
recall_cost="20"
recruit="Drake Burner Ladder_1,Drake Clasher,Drake Fighter Ladder_1,Drake Glider,Saurian Augur,Saurian Skirmisher"
save_id="id2"
scroll_to_leader="yes"
share_vision="all"
shroud="no"
shroud_data=""
side="2"
side_name=""
start_gold="100"
suppress_end_turn_confirmation="no"
team_name="team2"
total_upkeep="0"
user_team_name="teamname^2"
village_gold="2"
village_support="1"
[ai]
description="Multiplayer_AI^Default AI (RCA)"
id="ai_default_rca"
mp_rank="1000"
[stage]
id="main_loop"
name="ai_default_rca::candidate_action_evaluation_loop"
[candidate_action]
engine="cpp"
id="goto"
max_score="200000"
name="ai_default_rca::goto_phase"
score="200000"
[/candidate_action]
[candidate_action]
engine="lua"
id="retreat_injured"
location="ai/lua/ca_retreat_injured.lua"
max_score="192000"
name="ai_default_rca::retreat_injured"
[/candidate_action]
[candidate_action]
engine="lua"
id="spread_poison"
location="ai/lua/ca_spread_poison.lua"
max_score="190000"
name="ai_default_rca::spread_poison"
[/candidate_action]
[candidate_action]
engine="cpp"
id="recruitment"
max_score="180000"
name="default_recruitment::recruitment"
score="180000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="move_leader_to_goals"
max_score="140000"
name="ai_default_rca::move_leader_to_goals_phase"
score="140000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="move_leader_to_keep"
max_score="120000"
name="ai_default_rca::move_leader_to_keep_phase"
score="120000"
[/candidate_action]
[candidate_action]
engine="lua"
id="high_xp_attack"
location="ai/lua/ca_high_xp_attack.lua"
max_score="100010"
name="ai_default_rca::high_xp_attack"
[/candidate_action]
[candidate_action]
engine="cpp"
id="combat"
max_score="100000"
name="ai_default_rca::combat_phase"
score="100000"
[/candidate_action]
[candidate_action]
engine="lua"
id="place_healers"
location="ai/lua/ca_place_healers.lua"
max_score="96000"
name="ai_default_rca::place_healers"
[/candidate_action]
[candidate_action]
engine="cpp"
id="healing"
max_score="80000"
name="ai_default_rca::get_healing_phase"
score="80000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="villages"
max_score="60000"
name="ai_default_rca::get_villages_phase"
score="60000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="move_to_targets"
max_score="20000"
name="ai_default_rca::move_to_targets_phase"
score="20000"
[/candidate_action]
[candidate_action]
engine="cpp"
id="leader_shares_keep"
max_score="10000"
name="ai_default_rca::leader_shares_keep_phase"
score="10000"
[/candidate_action]
[candidate_action]
engine="lua"
id="move_to_any_enemy"
location="ai/lua/ca_move_to_any_enemy.lua"
max_score="1000"
name="ai_default_rca::move_to_any_enemy"
[/candidate_action]
[/stage]
[aspect]
engine="cpp"
id="advancements"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="aggression"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="0.4"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="attacks"
invalidate_on_gamestate_change="yes"
name="composite_aspect"
[default]
engine="cpp"
invalidate_on_gamestate_change="yes"
name="ai_default_rca::aspect_attacks"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="avoid"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[value]
[not]
[/not]
[/value]
[/default]
[/aspect]
[aspect]
engine="cpp"
id="caution"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="0.25"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="grouping"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="offensive"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_aggression"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="-4.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_goal"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_ignores_keep"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="leader_value"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="3.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="passive_leader"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="passive_leader_shares_keep"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_diversity"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="2.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_instructions"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[value]
[recruit]
importance="0"
[/recruit]
[/value]
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_more"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_pattern"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[/default]
[facet]
engine="cpp"
name="standard_aspect"
time_of_day=""
turns=""
value="fighter,fighter,archer,healer,scout,scout"
[/facet]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_randomness"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="50"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="recruitment_save_gold"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
[value]
active="0"
[/value]
[/default]
[/aspect]
[aspect]
engine="cpp"
id="retreat_enemy_weight"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="1.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="retreat_factor"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="0.25"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="scout_village_targeting"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="3"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="simple_targeting"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="support_villages"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="no"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="village_value"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="1.0"
[/default]
[/aspect]
[aspect]
engine="cpp"
id="villages_per_scout"
name="composite_aspect"
[default]
engine="cpp"
name="standard_aspect"
value="4"
[/default]
[/aspect]
[/ai]
[/old_side2]
[map_pool]
id="multiplayer_Basilisk_Ladder_Random"
name="Caves of the Basilisk"
[/map_pool]
[map_pool]
id="multiplayer_elensefar_courtyard_Ladder_Random"
name="Elensefar Courtyard"
[/map_pool]
[map_pool]
id="multiplayer_Fallenstar_Lake_Ladder_Random"
name="Fallenstar Lake"
[/map_pool]
[map_pool]
id="multiplayer_Hamlets_Ladder_Random"
name="Hamlets"
[/map_pool]
[map_pool]
id="multiplayer_Howling_Ghost_Badlands_Ladder_Random"
name="Howling Ghost Badlands"
[/map_pool]
[map_pool]
id="multiplayer_Silverhead_Crossing_Ladder_Random"
name="Silverhead Crossing"
[/map_pool]
[map_pool]
id="multiplayer_Sullas_Ruins_Ladder_Random"
name="Sulla’s Ruins"
[/map_pool]
[map_pool]
id="multiplayer_Swamp_of_Dread_Ladder_Random"
name="Swamp of Dread"
[/map_pool]
[map_pool]
id="multiplayer_The_Freelands_Ladder_Random"
name="The Freelands"
[/map_pool]
[map_pool]
id="multiplayer_The_Walls_of_Pyrennis_Ladder_Random"
name="The Walls of Pyrennis"
[/map_pool]
[map_pool]
id="multiplayer_Tombs_of_Kesorak_Ladder_Random"
name="Tombs of Kesorak"
[/map_pool]
[map_pool]
id="multiplayer_Weldyn_Channel_Ladder_Random"
name="Weldyn Channel"
[/map_pool]
[/variables]
[menu_item]
description="Ladder Era Summary"
id="0_summary"
image=""
synced="yes"
use_hotkey="yes"
[command]
first_time_only="no"
id="0_summary"
name="menu item 0_summary"
[message]
image="ladder-icon.png"
message="Changes comparing to the Default Era.

Leaders
- Leaders with 6 movement points receive slow trait (similar to how 4 mp leaders receive quick trait, which is inherited from the Default Era)
- Pikeman, Red Mage, White Mage, Elvish Sorceress, Trapper and Rogue removed from the leader pools
- Removed leaders from the manual selection pool that are not present in the random selection pool

Drakes
- Drake Fighter: 30% defense in shallow water
- Drake Burner: -50% cold resistance

Knalgan Alliance
- Dwarves have 3 traits, hardy trait (always rest heal if poisoned) is mandatory, healthy trait is removed.
- Footpad: melee blade 5-2
- Poacher: 32 hitpoints
- Ulfserker: 20 gold
- Thunderer: 16 gold
- Guardsman: ranged attack 6-1

Loyalists
- Spearman: ranged attack 5-1
- Bowman: melee attack 5-2
- Cavalryman: 18 gold
- Heavy Infantryman: -10% cold resistance

Northerners
- Orcish Archer: ranged pierce attack 5-3

Rebels
- Elvish Shaman: no dextrous trait, ranged attack 3-2
- Merman Hunter: 32 hitpoints, 60% defense in deep water

Undead
- Vampire bat: no intelligent trait
- Skeleton Archer: 15 gold"
side_for="$side_number"
speaker="narrator"
[/message]
[/command]
[/menu_item]
[menu_item]
description="Ladder Era Changelog"
id="1_changelog"
image=""
synced="yes"
use_hotkey="yes"
[command]
first_time_only="no"
id="1_changelog"
name="menu item 1_changelog"
[message]
image="ladder-icon.png"
message="Version 1.0.0
- Release for Wesnoth 1.16
- Ghost and Wose were changed in Default Era of Wesnoth 1.16 and they became the same as in Ladder Era
- Ladder Era DOES NOT include Drake Burner, Heavy Infantryman, Elvish Shaman, Merman Hunter and Poacher changes from Default Era 1.16. Ladder Era versions of those units comparing to Default Era:
    -- Drake Burner: -50% cold resistance
    -- Heavy Infantryman: -10% cold resistance
    -- Elvish Shaman: no dextrous trait, ranged attack 3-2
    -- Merman Hunter: 32 hitpoints, 60% defense in deep water
    -- Poacher: 32 hitpoints

Version 0.1.17
- Created Ladder Test Era with Dwarvish Thunderer 9-2 ranged attack and 17 gold

Version 0.1.16
- Dwarvish Thunderer back to 18-1 ranged attack and 16 gold

Version 0.1.15
- Dwarvish Thunderer removed 18-1 ranged attack, 9-2 is left

Version 0.1.14
- Dwarvish Thunderer cost from 16 to 17

Version 0.1.13
- Fixed changelog displayed for both players

Version 0.1.12
- Added new ranged attack which shot twice to Dwarvish Thunderer line for testing purposes

Version 0.1.11
- Fixed Footpad animation bug

Version 0.1.10
- Made add-on compatible with older versions
- Updated all Footpad sprites

Version 0.1.9
- Added Competitive Map Pack
- Minor map updates to Den of Onis and Fallenstar Lake

Version 0.1.8
- Pikeman and Rogue removed from leader pools
- Removed dextrous trait from Poacher
- Dwarvish Ulfserker cost from 19 to 20
- Dwarvish Thunderer cost from 17 to 16
- Dwarvish Guardsman ranged attack from 5-1 to 6-1
- Dwarvish Steelclad hitpoints from 59 to 57
- Bowman melee attack from 4-2 to 5-2
- Skeleton Archer cost from 14 to 15
- Cavalry reverted movement from 7 to 8, cost changed from 17 to 18 gold
- Footpad sprite update

Version 0.1.7
- Reverted Dwarvish Ulfserker and Berserker arcane resistance back to 10% as in the Default Era

Version 0.1.6
- Fixed map picker Hornshark Island bug. Units on the map should depend on player's faction

Version 0.1.5
- Removed Elvish Sorceress from the leaders pool
- Removed Hornshark Island from the classic map pool

Version 0.1.4
- Updated map pickers: map pool is printed to the chat area

Version 0.1.3
- Improved map pickers code
- Added add-on documentation

Version 0.1.2
- Allowed 2v2 maps to be played with the Ladder Era
- Prevent map pickers to load if less than 2 maps are present in the map pool

Version 0.1.1
- Added feature to the map pickers to configure the pool of maps

Version 0.1.0
- Added modified versions of Den of Onis, Hamlets, Silverhead Crossing and The Freelands maps
- Created map pickers for selecting random map from a pool of approved maps
- Implemented Ladder Era with the next changes comparing to the Default Era:
    -- Leaders
        --- Leaders with 6 movement points receive slow trait (similar to how 4 mp leaders receive quick trait, which is inherited from the Default Era)
        --- Red Mage, White Mage and Trapper removed from the leaders pool
        --- Removed leaders from the manual selection pool that are not present in the random selection pool
    -- Drakes
        --- Drake Fighter: 30% defense in shallow water
    -- Knalgan Alliance
        --- Dwarves have 3 traits, hardy trait (always rest heal if poisoned) is mandatory, healthy trait is removed
        --- Dwarvish Ulfserker: -20% arcane resistance
        --- Poacher: can have dextrous trait
        --- Footpad: melee blade 5-2
    -- Loyalists
        --- Spearman: ranged attack 5-1
        --- Cavalryman: 7 movement points
    -- Northerners
        --- Orcish Archer: ranged pierce attack 5-3
    -- Rebels
        --- Elvish Shaman: no dextrous trait
        --- Wose: 0% cold resistance
        --- Merman Hunter: +2 hitpoints and 60% defense in deep water
    -- Undead
        --- Vampire bat: no intelligent trait
        --- Ghost: 19 gold"
side_for="$side_number"
speaker="narrator"
[/message]
[/command]
[/menu_item]
[menu_item]
description="Plan Advancement"
id="pickadvance"
image=""
synced="yes"
use_hotkey="yes"
[show_if]
[lua]
code="return pickadvance.menu_available()"
[/lua]
[/show_if]
[command]
first_time_only="no"
id="pickadvance"
name="menu item pickadvance"
[lua]
code="pickadvance.pick_advance()"
[/lua]
[/command]
[/menu_item]
[/carryover_sides_start]
[multiplayer]
active_mods="plan_unit_advance"
difficulty_define="NORMAL"
experience_modifier="70"
hash="LgrgWVCpR8llmC<.aDQ40fF-gm6g>55i0MGmXrMfb29<x+,AgCO8qhYgfKosDZeKucK4D3uwCFE2CUGwFT82KouPtotOMv8Svp<KALAanL9wNr-NvcgT-v,WpKrKe1la"
mp_campaign=""
mp_campaign_name=""
mp_countdown="yes"
mp_countdown_action_bonus="30"
mp_countdown_init_time="480"
mp_countdown_reservoir_time="480"
mp_countdown_turn_bonus="300"
mp_era="ladder_era"
mp_era_name="Ladder Era"
mp_fog="yes"
mp_num_turns="-1"
mp_random_start_time="no"
mp_scenario="multiplayer_Weldyn_Channel_Ladder_Random"
mp_scenario_name="2p — Weldyn Channel"
mp_shroud="no"
mp_use_map_settings="no"
mp_village_gold="2"
mp_village_support="1"
observer="yes"
private_replay="no"
random_faction_mode="No Mirror"
savegame="no"
scenario="Ladder Tournament RD4 plk2 vs BadHatHarry g1"
shuffle_sides="yes"
side_users="id1:BadHatHarry,id2:plk2"
[options]
[modification]
id="plan_unit_advance"
[option]
id="pickadvance_force_choice"
value="no"
[/option]
[/modification]
[multiplayer]
id="Ladder_Competitive_Maps"
[option]
id="multiplayer_Basilisk_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Fallenstar_Lake_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Hamlets_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Howling_Ghost_Badlands_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Silverhead_Crossing_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Sullas_Ruins_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Swamp_of_Dread_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_The_Freelands_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_The_Walls_of_Pyrennis_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Tombs_of_Kesorak_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_Weldyn_Channel_Ladder_Random"
value="yes"
[/option]
[option]
id="multiplayer_elensefar_courtyard_Ladder_Random"
value="yes"
[/option]
[/multiplayer]
[/options]
[addon]
id="Ladder_Era"
min_version="1.0.0"
name="Ladder Era"
require="yes"
version="1.0.0"
[content]
id="multiplayer_Weldyn_Channel_Ladder_Random"
name="2p — Weldyn Channel"
type="scenario"
[/content]
[content]
id="ladder_era"
name="Ladder Era"
type="era"
[/content]
[/addon]
[addon]
id="mainline"
name="mainline"
require="no"
version="1.16.0"
[content]
id="plan_unit_advance"
name="Plan Unit Advance"
type="modification"
[/content]
[/addon]
[/multiplayer]
[era]
addon_id="Ladder_Era"
addon_min_version="1.0.0"
addon_title="Ladder Era"
addon_version="1.0.0"
allow_scenario="Ladder_All_Maps,Ladder_Classic_Maps,Ladder_Competitive_Maps,Ladder_Adventurous_Maps,multiplayer_Aethermaw,multiplayer_Arcanclave_Citadel,multiplayer_Basilisk,multiplayer_Clearing_Gushes,multiplayer_elensefar_courtyard,multiplayer_Hellhole,multiplayer_Hornshark_Island,multiplayer_Howling_Ghost_Badlands,multiplayer_Ruined_Passage,multiplayer_Ruphus_Isle,multiplayer_Sablestone_Delta,multiplayer_Sullas_Ruins,multiplayer_Swamp_of_Dread,multiplayer_The_Walls_of_Pyrennis,multiplayer_thousand_stings_garrison,multiplayer_Tombs_of_Kesorak,multiplayer_Weldyn_Channel,multiplayer_Den_of_Onis_Ladder,multiplayer_Hamlets_Ladder,multiplayer_Silverhead_Crossing_Ladder,multiplayer_Fallenstar_Lake_Ladder,multiplayer_The_Freelands_Ladder,multiplayer_Bath_of_Glory,multiplayer_Blue_Water_Province,multiplayer_Castle_Hopping_Isle,multiplayer_Clash,multiplayer_Geothermal,multiplayer_4p_Hamlets,multiplayer_Isars_Cross,multiplayer_King_of_the_Hill,multiplayer_Loris_River,multiplayer_4p_Morituri,multiplayer_Paths_of_Daggers,multiplayer_Ruins_of_Terra-Dwelve,multiplayer_Siege_Castles,multiplayer_4p_Underworld,multiplayer_Xanthe_Chaos"
description="Balanced version of the Default Era for competitive play. May be used only with approved maps. Needs play testing to verify the balance changes."
id="ladder_era"
name="Ladder Era"
require_era="yes"
[event]
name="prestart"
[chat]
message="/me version 1.0.0"
speaker="Ladder Era"
[/chat]
[/event]
[multiplayer_side]
id="Custom"
image="units/unknown-unit.png"
name="Custom"
[/multiplayer_side]
[multiplayer_side]
id="Random"
image="units/random-dice.png"
name="Random"
random_faction="yes"
[/multiplayer_side]
[multiplayer_side]
description="<img>src='portraits/drakes/inferno.png~BG()' align='middle'</img>

" +
				_"The <bold>text='Drakes'</bold> are a faction of dragon-like <ref>text='Drakes' dst='..race_drake'</ref> and their lizard <ref>text='Saurian' dst='..race_lizard'</ref> allies. Drakes are descendants of dragons, but smaller in size. Saurians are considerably smaller than Drakes and from different ancestry. Together, the Drake faction has high mobility but low defense, leading to unusual tactics for a <ref>text='Default Era' dst='..era_era_default'</ref> faction."
id="Ladder Drakes"
image="units/drakes/flare.png"
leader="Drake Flare Ladder_1,Fire Drake Ladder_1,Drake Arbiter,Drake Thrasher,Drake Warrior Ladder_1"
name="Drakes"
recruit="Drake Burner Ladder_1,Drake Clasher,Drake Glider,Drake Fighter Ladder_1,Saurian Skirmisher,Saurian Augur"
terrain_liked="Hh,Ha,Ds,Ss"
type="random"
[ai]
recruitment_pattern="fighter,fighter,archer,healer,scout,scout"
[/ai]
[/multiplayer_side]
[multiplayer_side]
description="<img>src='portraits/dwarves/ulfserker.png~BG()' align='middle'</img>

" +
				_"The <bold>text='Knalgan Alliance'</bold> is a faction of <ref>text='Dwarves' dst='..race_dwarf'</ref> and their outlaw <ref>text='Human' dst='..race_human'</ref> allies. Dwarves are an old race who live underground and have tough, but short, warriors. The outlaws are humans who are not socially acceptable among others of their race, but have become allies of the dwarves due to common enemies. This leads to a combination of tough and defensive dwarves who are only good on certain terrain and humans who can cover ground that dwarves are not good at fighting in."
id="Ladder Knalgan Alliance"
image="units/dwarves/steelclad.png"
leader="Dwarvish Steelclad Ladder_1,Dwarvish Thunderguard Ladder_1,Dwarvish Stalwart Ladder_1"
name="Knalgan Alliance"
recruit="Dwarvish Guardsman Ladder_1,Dwarvish Fighter Ladder_1,Dwarvish Ulfserker Ladder_1,Dwarvish Thunderer Ladder_1,Thief,Poacher Ladder_1,Footpad Ladder_1,Gryphon Rider"
terrain_liked="Hh,Ha,Mm"
type="random"
[ai]
recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
[/ai]
[/multiplayer_side]
[multiplayer_side]
description="<img>src='portraits/humans/grand-knight.png~BG()' align='middle'</img>

" +
				_"The <bold>text='Loyalists'</bold> are a faction of <ref>text='Humans' dst='..race_human'</ref> who are loyal to the throne of Wesnoth. Humans are a versatile race who specialize in many different areas. Similarly, the Loyalist faction is a very versatile melee-oriented faction with important ranged support from bowmen and mages."
id="Ladder Loyalists"
image="units/human-loyalists/lieutenant.png"
leader="Lieutenant,Swordsman,Javelineer,Longbowman"
name="Loyalists"
recruit="Cavalryman Ladder_1,Horseman,Spearman Ladder_1,Fencer,Heavy Infantryman Ladder_1,Bowman Ladder_1,Mage,Merman Fighter"
terrain_liked="Gg,Ww,Wo"
type="random"
[ai]
recruitment_pattern="fighter,fighter,fighter,archer,mixed fighter,scout"
[/ai]
[/multiplayer_side]
[multiplayer_side]
description="<img>src='portraits/elves/druid.png~BG()' align='middle'</img>

" +
				_"The <bold>text='Rebels'</bold> are a faction of <ref>text='Elves' dst='..race_elf'</ref> and their various forest-dwelling allies. They get their human name, Rebels, from the time of Heir to the Throne, when they started the rebellion against the evil Queen Asheviere. Elves are a magical race that are masters of the bow and are capable of living many years longer than humans. In harmony with nature, the elves find allies with the <ref>text='human' dst='..race_human'</ref> mages, certain <ref>text='merfolk' dst='..race_merman'</ref>, and tree creatures called <ref>text='Woses' dst='..race_wose'</ref>. Rebels are best played taking advantage of their high forest defense, mastery of ranged attacks, and the elves’ neutral alignment."
id="Ladder Rebels"
image="units/elves-wood/captain.png"
leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid"
name="Rebels"
recruit="Elvish Fighter,Elvish Archer,Mage,Elvish Shaman Ladder_1,Elvish Scout,Wose,Merman Hunter Ladder_1"
terrain_liked="Ff,Fa,Ss,Ww"
type="random"
[ai]
recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
[/ai]
[/multiplayer_side]
[multiplayer_side]
description="<img>src='portraits/orcs/warlord.png~BG()' align='middle'</img>

" +
				_"The <bold>text='Northerners'</bold> are a faction of <ref>text='Orcs' dst='..race_orc'</ref> and their allies who live in the north of the Great Continent, thus their name. Northerners consist of the warrior orcs race, the enslaved <ref>text='goblins' dst='..race_goblin'</ref>, <ref>text='trolls' dst='..race_troll'</ref> who are tricked into combat by the orcs, and the serpentine <ref>text='naga' dst='..race_naga'</ref>. The Northerners play best by taking advantage of having many low-cost and high HP soldiers."
id="Ladder Northerners"
image="units/orcs/warrior.png"
leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
name="Northerners"
recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer Ladder_1,Orcish Assassin,Naga Fighter,Goblin Spearman"
terrain_liked="Hh,Ha,Mm,Ss"
type="random"
[ai]
recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
[/ai]
[/multiplayer_side]
[multiplayer_side]
description="<img>src='portraits/undead/spectre.png~BG()' align='middle'</img>

" +
				_"The <bold>text='Undead'</bold> are a faction of <ref>text='undead' dst='..race_undead'</ref> creatures and <ref>text='human' dst='..race_human'</ref> practitioners of dark arts that usually accompany them. Often, these “Dark Adepts” are the units that do the most damage for the faction, but they have a major vulnerability — their practicing of this forbidden, evil magic has consumed all their energy and so they have no melee attack at all. The Undead are a very aggressive faction and the most powerful <ref>text='Default Era' dst='..era_era_default'</ref> faction at nighttime."
id="Ladder Undead"
image="units/undead-necromancers/dark-sorcerer.png"
leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter"
name="Undead"
recruit="Skeleton,Skeleton Archer Ladder_1,Walking Corpse,Ghost,Vampire Bat Ladder_1,Dark Adept,Ghoul"
terrain_liked="Ss,Hh,Ha,Ww"
type="random"
[ai]
recruitment_pattern="fighter,fighter,archer,fighter,scout,archer"
[/ai]
[/multiplayer_side]
[event]
name="time over"
[lua]
code=" wesnoth.require(""multiplayer/eras.lua"").turns_over_advantage() "
[/lua]
[/event]
[event]
name="prestart"
[lua]
code=" wesnoth.require(""multiplayer/eras.lua"").quick_4mp_leaders(...) "
[args]
[trait]
female_name="female^quick"
help_text="<italic>text='Quick'</italic> units have 1 extra movement point, but 5% less hitpoints than usual." +
							_"

Quick is the most noticeable trait, particularly in slower moving units such as trolls or heavy infantry. Units with the quick trait often have greatly increased mobility in rough terrain, which can be important to consider when deploying your forces. Also, quick units aren’t quite as tough as units without this trait and are subsequently less good at holding contested positions."
id="quick"
male_name="quick"
[effect]
apply_to="movement"
increase="1"
[/effect]
[effect]
apply_to="hitpoints"
increase_total="-5%"
[/effect]
[/trait]
[/args]
[/lua]
[/event]
[event]
name="prestart"
[lua]
code=" wesnoth.require(""~add-ons/Ladder_Era/lua/slow_6mp_leaders.lua"").slow_6mp_leaders(...) "
[args]
[trait]
female_name="female^slow"
help_text="<italic>text='Slow'</italic> units have 1 less movement point but 5% more hitpoints." +
							_"

Thick-bodied and clumsy, slow individuals of goblins and other species take a movement penalty but are compensated for it with a slight increase in endurance."
id="slow"
male_name="slow"
[effect]
apply_to="movement"
increase="-1"
[/effect]
[effect]
apply_to="hitpoints"
increase_total="5%"
[/effect]
[/trait]
[/args]
[/lua]
[/event]
[event]
first_time_only="no"
name="side_turn"
[modify_unit]
resting="yes"
[filter]
side="$side_number"
status="poisoned"
trait="hardy"
[filter_location]
terrain="!,*^V*,*^Do"
[/filter_location]
[not]
[filter_adjacent]
ability_type="heals"
is_enemy="no"
[/filter_adjacent]
[/not]
[/filter]
[/modify_unit]
[/event]
[event]
name="prestart"
[set_menu_item]
description="Ladder Era Summary"
id="0_summary"
[command]
[message]
image="ladder-icon.png"
message="Changes comparing to the Default Era.

Leaders
- Leaders with 6 movement points receive slow trait (similar to how 4 mp leaders receive quick trait, which is inherited from the Default Era)
- Pikeman, Red Mage, White Mage, Elvish Sorceress, Trapper and Rogue removed from the leader pools
- Removed leaders from the manual selection pool that are not present in the random selection pool

Drakes
- Drake Fighter: 30% defense in shallow water
- Drake Burner: -50% cold resistance

Knalgan Alliance
- Dwarves have 3 traits, hardy trait (always rest heal if poisoned) is mandatory, healthy trait is removed.
- Footpad: melee blade 5-2
- Poacher: 32 hitpoints
- Ulfserker: 20 gold
- Thunderer: 16 gold
- Guardsman: ranged attack 6-1

Loyalists
- Spearman: ranged attack 5-1
- Bowman: melee attack 5-2
- Cavalryman: 18 gold
- Heavy Infantryman: -10% cold resistance

Northerners
- Orcish Archer: ranged pierce attack 5-3

Rebels
- Elvish Shaman: no dextrous trait, ranged attack 3-2
- Merman Hunter: 32 hitpoints, 60% defense in deep water

Undead
- Vampire bat: no intelligent trait
- Skeleton Archer: 15 gold"
side_for="$side_number"
speaker="narrator"
[/message]
[/command]
[/set_menu_item]
[/event]
[event]
name="prestart"
[set_menu_item]
description="Ladder Era Changelog"
id="1_changelog"
[command]
[message]
image="ladder-icon.png"
message="Version 1.0.0
- Release for Wesnoth 1.16
- Ghost and Wose were changed in Default Era of Wesnoth 1.16 and they became the same as in Ladder Era
- Ladder Era DOES NOT include Drake Burner, Heavy Infantryman, Elvish Shaman, Merman Hunter and Poacher changes from Default Era 1.16. Ladder Era versions of those units comparing to Default Era:
    -- Drake Burner: -50% cold resistance
    -- Heavy Infantryman: -10% cold resistance
    -- Elvish Shaman: no dextrous trait, ranged attack 3-2
    -- Merman Hunter: 32 hitpoints, 60% defense in deep water
    -- Poacher: 32 hitpoints

Version 0.1.17
- Created Ladder Test Era with Dwarvish Thunderer 9-2 ranged attack and 17 gold

Version 0.1.16
- Dwarvish Thunderer back to 18-1 ranged attack and 16 gold

Version 0.1.15
- Dwarvish Thunderer removed 18-1 ranged attack, 9-2 is left

Version 0.1.14
- Dwarvish Thunderer cost from 16 to 17

Version 0.1.13
- Fixed changelog displayed for both players

Version 0.1.12
- Added new ranged attack which shot twice to Dwarvish Thunderer line for testing purposes

Version 0.1.11
- Fixed Footpad animation bug

Version 0.1.10
- Made add-on compatible with older versions
- Updated all Footpad sprites

Version 0.1.9
- Added Competitive Map Pack
- Minor map updates to Den of Onis and Fallenstar Lake

Version 0.1.8
- Pikeman and Rogue removed from leader pools
- Removed dextrous trait from Poacher
- Dwarvish Ulfserker cost from 19 to 20
- Dwarvish Thunderer cost from 17 to 16
- Dwarvish Guardsman ranged attack from 5-1 to 6-1
- Dwarvish Steelclad hitpoints from 59 to 57
- Bowman melee attack from 4-2 to 5-2
- Skeleton Archer cost from 14 to 15
- Cavalry reverted movement from 7 to 8, cost changed from 17 to 18 gold
- Footpad sprite update

Version 0.1.7
- Reverted Dwarvish Ulfserker and Berserker arcane resistance back to 10% as in the Default Era

Version 0.1.6
- Fixed map picker Hornshark Island bug. Units on the map should depend on player's faction

Version 0.1.5
- Removed Elvish Sorceress from the leaders pool
- Removed Hornshark Island from the classic map pool

Version 0.1.4
- Updated map pickers: map pool is printed to the chat area

Version 0.1.3
- Improved map pickers code
- Added add-on documentation

Version 0.1.2
- Allowed 2v2 maps to be played with the Ladder Era
- Prevent map pickers to load if less than 2 maps are present in the map pool

Version 0.1.1
- Added feature to the map pickers to configure the pool of maps

Version 0.1.0
- Added modified versions of Den of Onis, Hamlets, Silverhead Crossing and The Freelands maps
- Created map pickers for selecting random map from a pool of approved maps
- Implemented Ladder Era with the next changes comparing to the Default Era:
    -- Leaders
        --- Leaders with 6 movement points receive slow trait (similar to how 4 mp leaders receive quick trait, which is inherited from the Default Era)
        --- Red Mage, White Mage and Trapper removed from the leaders pool
        --- Removed leaders from the manual selection pool that are not present in the random selection pool
    -- Drakes
        --- Drake Fighter: 30% defense in shallow water
    -- Knalgan Alliance
        --- Dwarves have 3 traits, hardy trait (always rest heal if poisoned) is mandatory, healthy trait is removed
        --- Dwarvish Ulfserker: -20% arcane resistance
        --- Poacher: can have dextrous trait
        --- Footpad: melee blade 5-2
    -- Loyalists
        --- Spearman: ranged attack 5-1
        --- Cavalryman: 7 movement points
    -- Northerners
        --- Orcish Archer: ranged pierce attack 5-3
    -- Rebels
        --- Elvish Shaman: no dextrous trait
        --- Wose: 0% cold resistance
        --- Merman Hunter: +2 hitpoints and 60% defense in deep water
    -- Undead
        --- Vampire bat: no intelligent trait
        --- Ghost: 19 gold"
side_for="$side_number"
speaker="narrator"
[/message]
[/command]
[/set_menu_item]
[/event]
[/era]
[modification]
description="When playing a multiplayer game, you do not control what a unit advances to if it advances on another player's turn. With this modification you can set what your units advance to beforehand, either for a specific unit or for all units of the same type."
id="plan_unit_advance"
name="Plan Unit Advance"
[options]
[checkbox]
default="no"
description="You will be asked a question on choosing advancement whenever an undecided unit appears.

Some eras and scenarios may automatically enable this option."
id="pickadvance_force_choice"
name="Force advancement planning"
[/checkbox]
[/options]
[event]
first_time_only="no"
name="preload"
[lua]
code="-- pickadvance_dialog

pickadvance = {}
local T = wml.tag
local _ = wesnoth.textdomain ""wesnoth""

function pickadvance.show_dialog_unsynchronized(advance_info, unit)
-- dialog exit codes --
	local cancel_code = -2
	local single_unit_code = -1
--
	local unit_type_options = advance_info.type_advances
	local options = {}
	for _, ut in ipairs(unit_type_options) do
		options[#options + 1] = wesnoth.unit_types[ut]
	end

	local unit_override_one = (advance_info.unit_override or {})[2] == nil
		and (advance_info.unit_override or {})[1] or nil
	local game_override_one = (advance_info.game_override or {})[2] == nil
		and (advance_info.game_override or {})[1] or nil

	local description_row = T.row {
		T.column {
			border = ""all"",
			border_size = 5,
			horizontal_alignment = ""left"",
			T.label {
				definition = ""title"",
				label = _ ""Plan Advancement""
			}
		},
	}

	local list_row_definition = T.grid {
		T.row {
			T.column {
				border = ""all"",
				border_size = 5,
				grow_factor = 0,
				horizontal_alignment = ""left"",
				T.image {
					id = ""the_icon"",
					linked_group = ""image""
				}
			},
			T.column {
				border = ""all"",
				border_size = 5,
				grow_factor = 1,
				horizontal_alignment = ""left"",
				T.label {
					use_markup = true,
					id = ""the_label"",
					linked_group = ""type""
				}
			},
			T.column {
				border = ""all"",
				border_size = 5,
				horizontal_alignment = ""center"",
				vertical_alignment = ""center"",
				T.image {
					id = ""global_icon"",
					linked_group = ""global_icon"",
					label = ""icons/action/editor-tool-unit_30-pressed.png"",
					tooltip = _ ""This advancement is currently the default for all units of the same type""
				}
			}
		}
	}

	local listbox = T.listbox {
		id = ""the_list"",
		has_minimum = true,
		T.list_definition {
			T.row {
				T.column {
					horizontal_grow = true,
					vertical_grow = true,
					T.toggle_panel {
						return_value = single_unit_code,
						list_row_definition
					}
				}
			}
		}
	}

-- main dialog definition
	local dialog = {
		T.tooltip {
			id = ""tooltip""
		},
		T.helptip {
			id = ""tooltip""
		},
		T.linked_group {
			id = ""image"",
			fixed_width = true
		},
		T.linked_group {
			id = ""type"",
			fixed_width = true
		},
		T.linked_group {
			id = ""global_icon"",
			fixed_width = true
		},
		T.grid {
			description_row,
			T.row {
				grow_factor = 1,
				T.column {
					border = ""all"",
					border_size = 5,
					horizontal_grow = true,
					listbox
				}
			},
			T.row {
				grow_factor = 0,
				T.column {
					border = ""all"",
					border_size = 5,
					horizontal_alignment = ""left"",
					T.toggle_button {
						id = ""apply_to_all"",
						label = _ ""Apply to all units of this type""
					}
				}
			},
			T.row {
				T.column {
					horizontal_alignment = ""right"",
					T.grid {
						T.row {
							grow_factor = 0,
							T.column {
								border = ""all"",
								border_size = 5,
								horizontal_alignment = ""right"",
								T.button {
									return_value = single_unit_code,
									label = _ ""Save""
								}
							},
							T.column {
								border = ""all"",
								border_size = 5,
								horizontal_alignment = ""right"",
								T.button {
									id = ""cancel"",
									label = _ ""Cancel""
								}
							}
						}
					}
				}
			}
		}
	}

-- dialog preshow function
	local function preshow(window)
		window.apply_to_all.visible = not unit.canrecruit

		local selection = 0

		local empty_icon_unit = ""misc/blank-hex.png""

		local null_row = window.the_list[1]
		null_row.the_icon.label = empty_icon_unit
		null_row.the_label.label = _ ""No planned advancement""
		null_row.global_icon.visible = false

		for i, advance_type in ipairs(options) do
			local n = i + 1
			local text = advance_type.name
			if advance_type.id == game_override_one or advance_type.id == unit_override_one then
				selection = n
			end
			local this_row = window.the_list[n]
			this_row.the_label.label = text
			local img = advance_type.__cfg.image
			if img then
				img = (""%s~TC(%d,%s)""):format(img, unit.side, advance_type.__cfg.flag_rgb or ""magenta"")
			else
				img = empty_icon_unit
			end
			this_row.the_icon.label = img
			this_row.global_icon.visible = not not (advance_type.id == game_override_one) or ""hidden""
		end

		window.the_list:focus()
		if selection > 0 then
			window.the_list.selected_index = selection
		end
	end

-- dialog postshow function
	local item_result
	local apply_to_all
	local function postshow(window)
		item_result = window.the_list.selected_index - 1
		apply_to_all = window.apply_to_all.selected
	end

	local dialog_exit_code = gui.show_dialog(dialog, preshow, postshow)

	if dialog_exit_code == cancel_code then
		return { ignore = true }
	end

-- determine the choice made
	local is_reset = item_result == 0
	return {
		ignore = false,
		is_unit_override = not apply_to_all,
		unit_override = not is_reset and options[item_result].id or table.concat(unit_type_options, "",""),

		is_game_override = apply_to_all,
		game_override = apply_to_all and (not is_reset and options[item_result].id) or nil,
	}
end

-- "
[/lua]
[lua]
code="-- pick_advance/main.lua

local on_event = wesnoth.require ""on_event""
local F = wesnoth.require ""functional""
local T = wml.tag
local _ = wesnoth.textdomain ""wesnoth""

wesnoth.wml_actions.set_menu_item {
	id = ""pickadvance"",
	description = _ ""Plan Advancement"",
	T.show_if {
		T.lua {
			code = ""return pickadvance.menu_available()""
		},
	},
	T.command {
		T.lua {
			code = ""pickadvance.pick_advance()""
		}
	}
}

-- replace any non-alphanumeric characters with an underscore
local function clean_type_func(unit_type)
	return string.gsub(unit_type, ""[^a-zA-Z0-9]"", ""_"")
end

-- splits a comma delimited string of unit types
-- returns a table of unit types that aren't blank, ""null"", and that exist
local function split_comma_units(string_to_split)
	return F.filter(
		stringx.split(string_to_split or """"),
		function(s) return s ~= """" and s ~= ""null"" and wesnoth.unit_types[s] end
	)
end

-- returns a table of the original unit types
--         a comma delimited string containing the same values
local function original_advances(unit)
	local clean_type = clean_type_func(unit.type)
	local variable = unit.variables[""pickadvance_orig_"" .. clean_type] or """"
	return split_comma_units(variable), clean_type_func(variable)
end

-- replace the unit's current advancements with the new set of units via object/effect
local function set_advances(unit, array)
	unit:add_modification(""object"", {
		pickadvance = true,
		take_only_once = false,
		T.effect {
			apply_to = ""new_advancement"",
			replace = true,
			types = array
		}
	})
end

-- for table ""arr"" containing sets of [index,unit_type]
-- return table containing sets of [unit_type,true]
local function array_to_set(arr)
	local result = {}
	for _, v in ipairs(arr) do
		result[v] = true
	end
	return result
end

-- works as anti-cheat and fixes tricky bugs in [male]/[female]/undead variation overrides
local function filter_overrides(unit, overrides)
	local possible_advances_array = original_advances(unit)
	local possible_advances = array_to_set(possible_advances_array)
	local filtered = F.filter(overrides, function(e) return possible_advances[e] end)
	return #filtered > 0 and filtered or possible_advances_array
end

-- returns a table with the unit's original advancements
--         the unit's currently overridden advancement or nil if not set
--         the unit's currently overridden advancement or nil if not set, but set by some other mechanism from the current game
local function get_advance_info(unit)
	local type_advances, orig_options_sanitized = original_advances(unit)
	local game_override_key = ""pickadvance_side"" .. unit.side .. ""_"" .. orig_options_sanitized
	local game_override = wml.variables[game_override_key]
	local function correct(override)
		return override and #override > 0 and #override < #type_advances and override or nil
	end

	return {
		type_advances = type_advances,
		unit_override = correct(unit.advances_to),
		game_override = correct(split_comma_units(game_override)),
	}
end

-- true if there's a unit at the selected hex
--      the unit has advancements
--      the unit is on a local human controlled side
--      the unit has multiple options in either its original set of advancements or current set of advancements
function pickadvance.menu_available()
	local unit = wesnoth.units.get(wml.variables.x1, wml.variables.y1)
	return unit and
		#unit.advances_to > 0
		and wesnoth.sides[unit.side].is_local and wesnoth.sides[unit.side].controller == ""human""
		and (#original_advances(unit) > 1 or #unit.advances_to > 1)
end

-- if the unit doesn't have a set of original advancements present, remove any existing ""pickadvance"" object
-- set the unit's original advancements in its variables
-- and then set the unit's advancement to either a game-provided override or its default advancements
local function initialize_unit(unit)
	local clean_type = clean_type_func(unit.type)
	if unit.variables[""pickadvance_orig_"" .. clean_type] == nil then
		unit:remove_modifications{
			pickadvance = true
		}
		unit.variables[""pickadvance_orig_"" .. clean_type] = table.concat(unit.advances_to, "","")
		local advance_info = get_advance_info(unit)
		local desired = advance_info.game_override or unit.advances_to
		desired = filter_overrides(unit, desired)
		set_advances(unit, desired)
	end
end

-- let the player select the unit's advancement via dialog
function pickadvance.pick_advance(unit)
	unit = unit or wesnoth.units.get(wml.variables.x1, wml.variables.y1)
	initialize_unit(unit)
	local _, orig_options_sanitized = original_advances(unit)
	local dialog_result = wesnoth.sync.evaluate_single(function()
		local local_result = pickadvance.show_dialog_unsynchronized(get_advance_info(unit), unit)
		return local_result
	end, function() return { is_ai = true } end)
	if dialog_result.ignore or dialog_result.is_ai then
		return
	end
	dialog_result.unit_override = split_comma_units(dialog_result.unit_override)
	dialog_result.game_override = split_comma_units(dialog_result.game_override)
	dialog_result.unit_override = filter_overrides(unit, dialog_result.unit_override)
	dialog_result.game_override = filter_overrides(unit, dialog_result.game_override)
	if dialog_result.is_unit_override then
		set_advances(unit, dialog_result.unit_override)
	end
	if dialog_result.is_game_override then
		local key = ""pickadvance_side"" .. unit.side .. ""_"" .. orig_options_sanitized
		wml.variables[key] = table.concat(dialog_result.game_override, "","")
	end
end

-- make unit advancement tree viewable in the ingame help
local known_units = {}
local function make_unit_known(unit)  -- can be both unit or unit type
	local type = unit.type or unit.id
	if known_units[type] then return end
	known_units[type] = true
	wesnoth.add_known_unit(type)
	for _, advance in ipairs(unit.advances_to) do
		make_unit_known(wesnoth.unit_types[advance])
	end
end

-- initialize a unit for picking an advancement
-- make its advancements viewable
-- force picking an advancement if it has multiple and the force option was specified
local function initialize_unit_x1y1(ctx)
	local unit = wesnoth.units.get(ctx.x1, ctx.y1)
	if not wesnoth.sides[unit.side].__cfg.allow_player then return end
	initialize_unit(unit)
	make_unit_known(unit)
	if #unit.advances_to > 1 and wml.variables.pickadvance_force_choice and unit.side == wesnoth.current.side then
		pickadvance.pick_advance(unit)
	end
end

-- return true if the side can be played and has either a recruit list set or non-leader units
local function humans_can_recruit()
	for _, side in ipairs(wesnoth.sides) do
		local units = wesnoth.units.find_on_map { side = side.side, canrecruit = false }
		if side.__cfg.allow_player and (#side.recruit ~= 0 or #units > 0) then
			return true
		end
	end
end
-- return true if any keeps exist
local function map_has_keeps()
	for x, y in wesnoth.current.map:iter() do
		local terr = wesnoth.current.map[{x, y}]
		local info = wesnoth.terrain_types[terr]
		if info.keep then
			return true
		end
	end
end

-- on start determine whether choosing an advancement is force for each unit
on_event(""start"", function()
	local map_has_recruits = humans_can_recruit() and map_has_keeps()
	wml.variables.pickadvance_force_choice = wml.variables.pickadvance_force_choice or not map_has_recruits
end)

-- set ""fresh_turn"" for the moveto event at the start of each side turn
local fresh_turn = false
on_event(""turn refresh"", function()
	fresh_turn = true
end)

-- the first time a unit moves at the start of each side's turn, check if there are any new units that need to be forced to make an advancement choice
on_event(""moveto"", function()
	if fresh_turn then
		fresh_turn = false
		if not wesnoth.sides[wesnoth.current.side].__cfg.allow_player then return end
		for _, unit in ipairs(wesnoth.units.find_on_map { side = wesnoth.current.side }) do
			if #unit.advances_to > 1 and wml.variables.pickadvance_force_choice and wesnoth.current.turn > 1 then
				pickadvance.pick_advance(unit)
				if #unit.advances_to > 1 then
					local len = #unit.advances_to
					local rand = mathx.random(len)
					unit.advances_to = { unit.advances_to[rand] }
				end
			else
				initialize_unit(unit)
			end
		end
	end
end)

-- initialize units on recruit and after advancing, forcing another advancement choice if required
on_event(""recruit"", initialize_unit_x1y1)
on_event(""post advance"", initialize_unit_x1y1)


-- "
[/lua]
[/event]
[/modification]
[replay]

[command]
undo="no"
[speak]
id="BadHatHarry"
message="hf"
side="2"
time="1638464894"
[/speak]
[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=3
				random_calls=0
			[/result]
		[/checkup]
	[/command]

[command]
undo="no"
[speak]
id="plk2"
message="same"
side="1"
time="1638464909"
[/speak]
[/command]

	[command]
		from_side=1
		[recruit]
			type="Drake Clasher"
			x=14
			y=3
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="46c3fc97"
[/random_seed]
[/command]

	[command]
		from_side=1
		[recruit]
			type="Drake Glider"
			x=15
			y=2
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="bf3daa87"
[/random_seed]
[/command]

	[command]
		from_side=1
		[recruit]
			type="Saurian Skirmisher"
			x=13
			y=4
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="f3580486"
[/random_seed]
[/command]

	[command]
		from_side=1
		[recruit]
			type="Drake Fighter Ladder_1"
			x=16
			y=3
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="563c7bd4"
[/random_seed]
[/command]

[command]
undo="no"
[speak]
id="server"
message="All observers have been muted."
[/speak]
[/command]

	[command]
		from_side=1
		[recruit]
			type="Saurian Augur"
			x=15
			y=4
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="04912aba"
[/random_seed]
[/command]

	[command]
		from_side=1
		[recruit]
			type="Drake Glider"
			x=17
			y=4
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="a670858c"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="15,14,13,13,13"
			y="3,3,4,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=9
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=9
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=9
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Cavalryman Ladder_1"
			x=14
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="031b423a"
[/random_seed]
[/command]

	[command]
		from_side=2
		[recruit]
			type="Spearman Ladder_1"
			x=13
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="269594fb"
[/random_seed]
[/command]

	[command]
		from_side=2
		[recruit]
			type="Merman Fighter"
			x=15
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="a56c9eb9"
[/random_seed]
[/command]

	[command]
		from_side=2
		[recruit]
			type="Cavalryman Ladder_1"
			x=17
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="5998ad8b"
[/random_seed]
[/command]

	[command]
		from_side=2
		[recruit]
			type="Spearman Ladder_1"
			x=16
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="bd3ed57b"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="15,16,17,17,17"
			y="20,19,19,18,17"
		[/move]
		[checkup]
			[result]
				final_hex_x=17
				final_hex_y=17
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="13,12,11,10,9,8,7,6"
			y="4,4,5,5,6,6,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="15,14,13,12,11,10,9,8,7"
			y="2,1,2,1,2,2,2,2,2"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=2
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="14,13,12,11,10,9"
			y="3,4,4,5,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=9
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="15,16,17,18,18,19"
			y="4,4,5,5,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="16,17,18,19,20,21,22"
			y="3,4,4,5,5,6,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="17,18,19,20,21,22,23,24"
			y="4,3,3,2,3,2,3,2"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=2
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="13,13,13,14,15"
			y="6,5,4,3,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=15
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="17,18,19,20,21,22,22,22"
			y="19,18,18,17,17,16,15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,23,24"
			y="14,15,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="14,13,12,11,10,9,8,7,7"
			y="19,19,18,18,17,17,16,16,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=16
				stopped_early=yes
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,7,7"
			y="16,16,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="7,6"
			y="15,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="15,14,13,12,12,11"
			y="19,18,18,17,16,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=11
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,12,11,10,9,8"
			y="19,18,18,17,18,17"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=17
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="16,17,18,19,20,21"
			y="19,19,18,18,17,17"
		[/move]
		[checkup]
			[result]
				final_hex_x=21
				final_hex_y=17
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="17,18,19,20,20,21"
			y="17,17,18,18,19,20"
		[/move]
		[checkup]
			[result]
				final_hex_x=21
				final_hex_y=20
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="24,23,22,22,21,20,20,20,19,18"
			y="2,3,3,4,5,5,6,7,8,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=7
				stopped_early=yes
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="20,19,18"
			y="7,8,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="7,8,9,9,10,11,11,12,12,13"
			y="2,2,3,4,4,5,6,6,7,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=12
				final_hex_y=7
				stopped_early=yes
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="9,9,9,9,9"
			y="6,7,8,9,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=9
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="6,6,6,6"
			y="7,8,9,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="12,13"
			y="7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="22,23,23,24"
			y="5,6,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="19,20,21,22"
			y="7,6,6,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24"
			y="15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,23"
			y="14,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23"
			y="14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23"
			y="13,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="21,20,19,18,17"
			y="20,19,19,18,19"
		[/move]
		[checkup]
			[result]
				final_hex_x=17
				final_hex_y=19
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6"
			y="15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6"
			y="14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,7"
			y="13,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="7,8"
			y="13,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="21,22,23,24"
			y="17,16,16,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23"
			y="12,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23,23,23,23"
			y="11,12,13,14,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=14
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Horseman"
			x=16
			y=19
			[from]
				x=17
				y=19
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="2ac04719"
[/random_seed]
[/command]

	[command]
		from_side=2
		[recruit]
			type="Bowman Ladder_1"
			x=15
			y=19
			[from]
				x=17
				y=19
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="fa28bdd3"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,7,7,6"
			y="17,17,16,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,8,8,8"
			y="12,13,14,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="11,11,12,12,12"
			y="16,15,14,13,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=12
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="12,12"
			y="12,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=12
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="12,12"
			y="11,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=12
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,8"
			y="15,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=370000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="24,24,24"
			y="7,8,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="24,24"
			y="9,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="6,6"
			y="10,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="6,6"
			y="11,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="6,6"
			y="12,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="6,6"
			y="13,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="9,8,7,6"
			y="10,10,10,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="6,5,4"
			y="14,14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=4
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="13,12,11"
			y="7,7,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=11
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="11,11"
			y="8,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=11
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="18,19"
			y="8,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="19,20"
			y="9,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="20,20"
			y="9,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="20,19"
			y="10,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="11,11,11,12"
			y="9,10,11,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=12
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Glider"
			defender_lvl=1
			defender_type="Merman Fighter"
			defender_weapon=-1
			tod="dusk"
			turn=4
			weapon=1
			[source]
				x=12
				y=11
			[/source]
			[destination]
				x=12
				y=12
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="28d556f1"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="19,20,21,22,23"
			y="11,11,12,12,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="24,24,24"
			y="10,11,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="22,22,22,22,23,23,24"
			y="6,7,8,9,10,11,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23"
			y="15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="12,11"
			y="12,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=11
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Merman Fighter"
			defender_lvl=1
			defender_type="Drake Glider"
			defender_weapon=0
			tod="dusk"
			turn=4
			weapon=0
			[source]
				x=11
				y=12
			[/source]
			[destination]
				x=12
				y=11
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="543b83e2"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="15,16,17,18,19,20,21"
			y="19,19,19,18,18,17,17"
		[/move]
		[checkup]
			[result]
				final_hex_x=21
				final_hex_y=17
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24"
			y="15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="16,17,18,19,20,21,22,23,24"
			y="19,19,18,18,17,17,16,16,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,23,23"
			y="14,14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Drake Glider"
			defender_weapon=0
			tod="dusk"
			turn=4
			weapon=0
			[source]
				x=23
				y=13
			[/source]
			[destination]
				x=23
				y=12
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="02f9fe53"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,22,22"
			y="14,13,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Drake Glider"
			defender_weapon=0
			tod="dusk"
			turn=4
			weapon=0
			[source]
				x=22
				y=12
			[/source]
			[destination]
				x=23
				y=12
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="c1b87f2d"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,8,8"
			y="16,15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="too brave gliders"
time="1638466470"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,9,10,11"
			y="14,15,15,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=11
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=16
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Spearman Ladder_1"
			x=13
			y=19
			[from]
				x=17
				y=19
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="72cdb4c5"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="17,16,15,14"
			y="19,19,19,19"
		[/move]
		[checkup]
			[result]
				final_hex_x=14
				final_hex_y=19
				stopped_early=no
			[/result]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=420000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="4,5"
			y="13,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=5
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="5,6,7"
			y="14,14,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="23,23,22,21,21,20,20,19"
			y="12,11,10,10,9,8,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="12,12,12,12,12,12,13"
			y="11,10,9,8,7,6,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="7,7,6,5,4"
			y="15,16,16,17,17"
		[/move]
		[checkup]
			[result]
				final_hex_x=4
				final_hex_y=17
				stopped_early=no
			[/result]
			[result]
				next_unit_id=17
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[recruit]
			type="Saurian Augur"
			x=15
			y=2
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="da8bd0e4"
[/random_seed]
[/command]

	[command]
		from_side=1
		[recruit]
			type="Saurian Skirmisher"
			x=17
			y=4
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="a3e2e77f"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="24,24,24,24,24,24"
			y="12,11,10,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="24,24,24,24,24,25"
			y="11,10,9,8,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=25
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

[command]
undo="no"
[speak]
id="LunaticPrincess"
message="2 more lizards eh"
time="1638466774"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="11,11,12"
			y="12,11,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=12
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="12,13"
			y="10,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,13"
			y="10,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="imo needs some clashers for the next day, I think needs at least one on right side"
time="1638466902"
to_sides="observer"
[/speak]
[/command]

[command]
undo="no"
[speak]
id="LunaticPrincess"
message="i had same thought"
time="1638466917"
to_sides="observer"
[/speak]
[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="but at the same time sometimes ppl get too many clashers and cant really attack which is also bad, tricky to balance"
time="1638466969"
to_sides="observer"
[/speak]
[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="free glider? I'd take it, glider costs more than fish so"
time="1638467008"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23,23,23,23,23"
			y="13,12,11,10,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Drake Fighter Ladder_1"
			defender_weapon=0
			tod="first_watch"
			turn=5
			weapon=0
			[source]
				x=23
				y=8
			[/source]
			[destination]
				x=24
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="183b38ae"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,24,24,24,24,24,24"
			y="15,14,13,12,11,10,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Horseman"
			defender_lvl=1
			defender_type="Drake Fighter Ladder_1"
			defender_weapon=0
			tod="first_watch"
			turn=5
			weapon=0
			[source]
				x=24
				y=8
			[/source]
			[destination]
				x=24
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="416b5bf5"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,22,22,22,23,23,24"
			y="12,11,10,9,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="first_watch"
			turn=5
			weapon=0
			[source]
				x=24
				y=7
			[/source]
			[destination]
				x=25
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="f17f7402"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="21,22,22,22,23,23,23"
			y="17,16,15,14,14,13,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,13,14,14"
			y="9,8,7,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=14
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Merman Fighter"
			defender_lvl=1
			defender_type="Drake Glider"
			defender_weapon=0
			tod="first_watch"
			turn=5
			weapon=0
			[source]
				x=14
				y=6
			[/source]
			[destination]
				x=13
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="4e7da590"
[/random_seed]
[/command]

[command]
undo="no"
[speak]
id="LunaticPrincess"
message="rip"
time="1638467055"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="11,10,9,8,8,7,6,6"
			y="16,16,17,17,18,19,19,20"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=20
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,13,12,11,11"
			y="19,18,17,17,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=11
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[fire_event]
			raise="menu item 0_summary"
			[source]
				x=17
				y=19
			[/source]
		[/fire_event]
		[checkup]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="14,13"
			y="19,19"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=19
				stopped_early=no
			[/result]
			[result]
				next_unit_id=19
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Cavalryman Ladder_1"
			x=17
			y=19
			[from]
				x=13
				y=19
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="044c76f6"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6,6"
			y="15,14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=20
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6,6"
			y="13,14,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=20
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=20
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=20
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=20
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="17,18"
			y="4,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=20
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[recruit]
			type="Saurian Augur"
			x=17
			y=4
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="4cb222b0"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="15,14,13,13,13"
			y="3,3,4,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[attack]
			attacker_lvl=2
			attacker_type="Drake Flare Ladder_1"
			defender_lvl=1
			defender_type="Merman Fighter"
			defender_weapon=-1
			tod="second_watch"
			turn=6
			weapon=1
			[source]
				x=13
				y=6
			[/source]
			[destination]
				x=14
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="9116f65a"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="18,19,20,21,22,22"
			y="4,5,5,6,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Saurian Skirmisher"
			defender_lvl=1
			defender_type="Spearman Ladder_1"
			defender_weapon=0
			tod="second_watch"
			turn=6
			weapon=0
			[source]
				x=22
				y=7
			[/source]
			[destination]
				x=23
				y=8
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="ad755e80"
[/random_seed]
[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="looks over already"
time="1638467219"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=1
		[move]
			x="19,20"
			y="7,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="15,15,16,17,17,18,18,19"
			y="2,3,3,4,5,5,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Saurian Augur"
			defender_lvl=1
			defender_type="Cavalryman Ladder_1"
			defender_weapon=-1
			tod="second_watch"
			turn=6
			weapon=1
			[source]
				x=25
				y=7
			[/source]
			[destination]
				x=24
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="1b97c918"
[/random_seed]
[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="trap fish"
time="1638467335"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=1
		[move]
			x="20,21,22"
			y="6,6,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="6,6"
			y="10,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="6,6"
			y="11,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="6,7"
			y="12,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="4,3,3,2,1,1"
			y="17,17,16,15,15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=1
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="7,7,6"
			y="12,11,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6"
			y="15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6"
			y="14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="11,10,9,9"
			y="16,15,15,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=9
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6,6,6,6,6"
			y="20,19,18,17,16,15"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=15
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23,23,23,23,23"
			y="8,9,10,11,12,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,24,24,24,24"
			y="7,8,9,10,11,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="17,17,17,18,18,19,19,20"
			y="19,18,17,16,15,15,14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,24,23,22,22"
			y="8,9,10,11,11,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=21
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Cavalryman Ladder_1"
			x=17
			y=19
			[from]
				x=13
				y=19
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="f1e92169"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6,7,7"
			y="13,12,12,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Drake Clasher"
			defender_weapon=0
			tod="second_watch"
			turn=6
			weapon=0
			[source]
				x=7
				y=11
			[/source]
			[destination]
				x=6
				y=10
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="52b4dff3"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="14,14,13,12,12,11,11,10"
			y="6,7,8,8,9,10,11,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=10
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,12,11,10,9,8"
			y="19,18,18,17,17,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=418000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="17,18"
			y="4,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="6,6,6,6"
			y="10,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="1,1,1,1,1,1,1,1"
			y="14,13,12,11,10,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=1
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="13,13,13"
			y="6,5,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="22,23,23,24"
			y="5,6,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="22,22,22,22,23,24,24"
			y="7,6,5,4,4,3,2"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=2
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="18,19,20,20,21"
			y="4,5,5,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=21
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="19,20"
			y="7,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=22
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[recruit]
			type="Drake Clasher"
			x=17
			y=4
			[from]
				x=13
				y=4
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="b84a4f94"
[/random_seed]
[/command]

	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,9,10,11,12,13"
			y="16,17,17,18,18,19"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=19
				stopped_early=no
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="10,11,12,12,13,14"
			y="11,11,10,9,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=12
				final_hex_y=9
				stopped_early=yes
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23,23,23,23"
			y="12,11,10,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Bowman Ladder_1"
			defender_lvl=1
			defender_type="Drake Glider"
			defender_weapon=1
			tod="dawn"
			turn=7
			weapon=1
			[source]
				x=23
				y=8
			[/source]
			[destination]
				x=24
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="b4fd11d4"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="20,20,21,22,22,23,23,24"
			y="13,12,12,11,10,10,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Drake Glider"
			defender_weapon=0
			tod="dawn"
			turn=7
			weapon=0
			[source]
				x=24
				y=8
			[/source]
			[destination]
				x=24
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="c64746a5"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="17,18,19,20,21,22,22,22,23"
			y="19,18,18,17,17,16,15,14,14"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=14
				stopped_early=no
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,24,24,25,26,26"
			y="12,11,10,9,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=26
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="dawn"
			turn=7
			weapon=0
			[source]
				x=26
				y=7
			[/source]
			[destination]
				x=25
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="17d573f7"
[/random_seed]
[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="he has too much confidence in his gliders for some reason"
time="1638468135"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,22,22,22,23,23,24"
			y="12,11,10,9,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Horseman"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="dawn"
			turn=7
			weapon=0
			[source]
				x=24
				y=7
			[/source]
			[destination]
				x=25
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="cc08bc28"
[/random_seed]
[/command]

[command]
undo="no"
[speak]
id="Ben24626"
message="pretty much every loy unit wrecks gliders"
time="1638468171"
to_sides="observer"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23,24,25,26,27"
			y="13,12,11,11,10,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=27
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=23
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Merman Fighter"
			x=15
			y=19
			[from]
				x=13
				y=19
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="6d321113"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6,6"
			y="15,14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=14
				stopped_early=yes
			[/result]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6"
			y="14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="9,8,8,8,8,7"
			y="14,13,12,11,10,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="6,6,7,7,7,7,8,9"
			y="13,12,12,11,10,9,8,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=9
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="12,13,14,15,16"
			y="9,9,8,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=16
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="7,8,8"
			y="11,10,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="17,18,19,20,21,22"
			y="4,4,5,5,6,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=24
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[recruit]
			type="Drake Clasher"
			x=17
			y=4
			[from]
				x=13
				y=4
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="153d172d"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="25,25,25,24,23,22,21"
			y="7,6,5,4,4,3,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=21
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="20,21,22,22,22"
			y="6,6,5,4,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="21,20,19"
			y="7,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[move]
			x="13,13,13"
			y="4,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="1,2,3,4,5,6,6,7"
			y="7,7,7,6,6,5,4,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=1
			value=372000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="15,15,15,16,16,17,17,17"
			y="19,18,17,16,15,15,14,13"
		[/move]
		[checkup]
			[result]
				final_hex_x=17
				final_hex_y=13
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,8,8,8,8,7"
			y="9,8,7,6,5,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Skirmisher"
			defender_weapon=0
			tod="morning"
			turn=8
			weapon=0
			[source]
				x=7
				y=5
			[/source]
			[destination]
				x=7
				y=4
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="c1c61d20"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="9,9,8,8,8,9,9,8"
			y="9,8,7,6,5,5,4,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Skirmisher"
			defender_weapon=0
			tod="morning"
			turn=8
			weapon=0
			[source]
				x=8
				y=3
			[/source]
			[destination]
				x=7
				y=4
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="ed82b1cf"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="7,7,8,8,8,8"
			y="10,9,8,7,6,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,14,15"
			y="19,19,20"
		[/move]
		[checkup]
			[result]
				final_hex_x=15
				final_hex_y=20
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="16,17,18,19"
			y="8,8,8,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=25
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Merman Fighter"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="morning"
			turn=8
			weapon=0
			[source]
				x=19
				y=8
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="c4c47ce2"
[/random_seed]
[/command]

	[command]
		from_side=2
		[recruit]
			type="Spearman Ladder_1"
			x=17
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="7a7124f1"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,23,22,21,20"
			y="7,8,8,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Horseman"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="morning"
			turn=8
			weapon=0
			[source]
				x=20
				y=7
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="566a1015"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,22,21,20,19"
			y="8,8,8,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,23,22"
			y="8,8,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,23"
			y="8,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23,23,23,23,22,22"
			y="14,13,12,11,10,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,24"
			y="9,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="26,25,24,23,23,22"
			y="7,8,8,9,10,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="6,6"
			y="7,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="6,7"
			y="8,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="17,17,17,17,18"
			y="4,5,6,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Bowman Ladder_1"
			defender_weapon=0
			tod="afternoon"
			turn=9
			weapon=1
			[source]
				x=18
				y=7
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="1ba4681f"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="13,14,15,16,17,18"
			y="6,5,6,6,7,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=2
			attacker_type="Drake Flare Ladder_1"
			defender_lvl=1
			defender_type="Bowman Ladder_1"
			defender_weapon=0
			tod="afternoon"
			turn=9
			weapon=0
			[source]
				x=18
				y=6
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="1f4de2b6"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="21,21,21,20,19,19"
			y="3,4,5,5,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Saurian Augur"
			defender_lvl=1
			defender_type="Horseman"
			defender_weapon=-1
			tod="afternoon"
			turn=9
			weapon=1
			[source]
				x=19
				y=7
			[/source]
			[destination]
				x=20
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="dcea81d2"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="22,22,21"
			y="5,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=6
				stopped_early=yes
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="22,21"
			y="6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=21
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Horseman"
			defender_weapon=0
			tod="afternoon"
			turn=9
			weapon=1
			[source]
				x=21
				y=7
			[/source]
			[destination]
				x=20
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="ccd9b3e9"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="22,22,22"
			y="3,4,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="24,24,24,24,24,24"
			y="2,3,4,5,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="7,7,6"
			y="9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="7,7,7,7"
			y="5,4,3,2"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=2
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,9,10,11,12,13"
			y="5,6,5,5,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,9,10,11,12,13"
			y="3,4,4,4,4,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=13
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=26
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Bowman Ladder_1"
			x=13
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="65bb365e"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="17,18,19,20,21,22"
			y="19,18,18,17,17,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,23,23,24"
			y="10,10,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Skirmisher"
			defender_weapon=0
			tod="afternoon"
			turn=9
			weapon=0
			[source]
				x=24
				y=8
			[/source]
			[destination]
				x=24
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="bdc56c9d"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="27,26,26,25"
			y="10,9,8,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=25
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Skirmisher"
			defender_weapon=0
			tod="afternoon"
			turn=9
			weapon=0
			[source]
				x=25
				y=8
			[/source]
			[destination]
				x=24
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="35fe8d6a"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="19,19"
			y="8,9"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=9
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="17,18,19,19,19,19,19"
			y="13,12,12,11,10,9,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Merman Fighter"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="afternoon"
			turn=9
			weapon=0
			[source]
				x=19
				y=8
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="8d25a55a"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="20,20"
			y="7,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="19,20,20"
			y="9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Merman Fighter"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="afternoon"
			turn=9
			weapon=0
			[source]
				x=20
				y=7
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="38691bde"
[/random_seed]
[/command]

[command]
undo="no"
[speak]
id="plk2"
message="i have no chance^^"
side="1"
time="1638469675"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,24,24,24,24,24,24"
			y="9,8,7,6,5,4,3,2"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=2
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,23,24"
			y="8,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="20,21,22,22,22"
			y="8,9,9,10,11"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=11
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,14,15,16,17"
			y="4,4,4,4,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=17
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="18,18"
			y="6,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			x="18,17,17,17"
			y="7,7,6,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=17
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Cavalryman Ladder_1"
			defender_weapon=0
			tod="dusk"
			turn=10
			weapon=1
			[source]
				x=17
				y=5
			[/source]
			[destination]
				x=17
				y=4
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="dd637607"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="21,21,20,19,18"
			y="7,6,5,5,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Cavalryman Ladder_1"
			defender_weapon=0
			tod="dusk"
			turn=10
			weapon=1
			[source]
				x=18
				y=4
			[/source]
			[destination]
				x=17
				y=4
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="ff89f935"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="18,17,17,16,15"
			y="5,5,4,3,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=15
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=27
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[recruit]
			type="Saurian Augur"
			x=17
			y=4
			[from]
				x=15
				y=3
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="e65e8050"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="6,6,6,6,6,7"
			y="7,6,5,4,3,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=28
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Spearman Ladder_1"
			defender_weapon=0
			tod="dusk"
			turn=10
			weapon=1
			[source]
				x=7
				y=3
			[/source]
			[destination]
				x=7
				y=2
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="5aa6127a"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			x="22,21,20,19,19"
			y="5,6,5,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=28
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Saurian Augur"
			defender_lvl=1
			defender_type="Merman Fighter"
			defender_weapon=-1
			tod="dusk"
			turn=10
			weapon=1
			[source]
				x=19
				y=7
			[/source]
			[destination]
				x=20
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="b235e495"
[/random_seed]
[/command]

	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=28
				random_calls=0
			[/result]
		[/checkup1]
	[/command]

	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=28
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,22,22,23,23,23"
			y="16,15,14,14,13,12"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=12
				stopped_early=no
			[/result]
			[result]
				next_unit_id=28
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,12,11,10,9,8,7"
			y="19,18,18,17,17,16,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=28
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[recruit]
			type="Spearman Ladder_1"
			x=13
			y=19
			[from]
				x=15
				y=20
			[/from]
		[/recruit]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="fb387192"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,12,11,10,9,8"
			y="6,5,5,4,4,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Drake Clasher"
			defender_weapon=-1
			tod="dusk"
			turn=10
			weapon=1
			[source]
				x=8
				y=3
			[/source]
			[destination]
				x=7
				y=3
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="409aeac1"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="19,18,17,17,18"
			y="8,8,8,7,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Merman Fighter"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="dusk"
			turn=10
			weapon=0
			[source]
				x=18
				y=6
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="c893f0a9"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,23,22,21,21,20"
			y="2,3,4,4,5,6,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="dusk"
			turn=10
			weapon=0
			[source]
				x=20
				y=6
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="ca458557"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="20,19"
			y="7,8"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=8
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Merman Fighter"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="dusk"
			turn=10
			weapon=0
			[source]
				x=19
				y=8
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="279d0fa3"
[/random_seed]
[/command]

	[command]
		dependent=yes
		from_side=2
		[choose]
			value=0
		[/choose]
	[/command]

[command]
undo="no"
[speak]
id="plk2"
message="gg"
side="1"
time="1638469905"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,24,24,24,24,24"
			y="8,7,6,5,4,3,2"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=2
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

[command]
undo="no"
[speak]
id="plk2"
message="next one?"
side="1"
time="1638469912"
[/speak]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,23,22,21,20,19"
			y="7,7,6,6,6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="25,24,23,23,22"
			y="8,7,7,6,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,22,22,23,23,24"
			y="11,10,9,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=24
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup2]
	[/command]

	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

[command]
undo="no"
[speak]
id="plk2"
message="have time for game 2?"
side="1"
time="1638469976"
[/speak]
[/command]

[command]
undo="no"
[speak]
id="BadHatHarry"
message="gg"
side="2"
time="1638470007"
[/speak]
[/command]

[command]
undo="no"
[speak]
id="server"
message="plk2 becomes an observer."
[/speak]
[/command]

[command]
undo="no"
[speak]
id="server"
message="BadHatHarry takes control of side 1."
[/speak]
[/command]

[command]
undo="no"
[speak]
id="server"
message="plk2 has surrendered."
[/speak]
[/command]

	[command]
		undo=no
		[surrender]
			side_number=0
		[/surrender]
	[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="7,7"
			y="3,2"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=2
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="15,16,17,18,19,19"
			y="3,3,4,4,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=5
				stopped_early=yes
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="19,19"
			y="5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[attack]
			attacker_lvl=2
			attacker_type="Drake Flare Ladder_1"
			defender_lvl=1
			defender_type="Merman Fighter"
			defender_weapon=-1
			tod="first_watch"
			turn=11
			weapon=1
			[source]
				x=19
				y=6
			[/source]
			[destination]
				x=18
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="915993dc"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="17,17,18"
			y="4,5,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Saurian Augur"
			defender_lvl=1
			defender_type="Merman Fighter"
			defender_weapon=-1
			tod="first_watch"
			turn=11
			weapon=1
			[source]
				x=18
				y=5
			[/source]
			[destination]
				x=18
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="704ba81f"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="18,17,17"
			y="4,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=17
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Merman Fighter"
			defender_weapon=0
			tod="first_watch"
			turn=11
			weapon=1
			[source]
				x=17
				y=6
			[/source]
			[destination]
				x=18
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="2e824ac9"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="17,18,19"
			y="5,4,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="19,20,21"
			y="5,4,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=21
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Spearman Ladder_1"
			defender_weapon=0
			tod="first_watch"
			turn=11
			weapon=1
			[source]
				x=21
				y=5
			[/source]
			[destination]
				x=22
				y=5
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="3786bfa0"
[/random_seed]
[/command]

	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup1]
	[/command]
	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="7,7,7,7,7,7,7"
			y="16,15,14,13,12,11,10"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=10
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,23,23,23,23,23"
			y="12,11,10,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=23
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="13,12,11,10,9,8"
			y="19,18,18,17,17,16"
		[/move]
		[checkup]
			[result]
				final_hex_x=8
				final_hex_y=16
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="8,7"
			y="3,3"
		[/move]
		[checkup]
			[result]
				final_hex_x=7
				final_hex_y=3
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Drake Clasher"
			defender_weapon=0
			tod="first_watch"
			turn=11
			weapon=0
			[source]
				x=7
				y=3
			[/source]
			[destination]
				x=7
				y=2
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="a04c74e3"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="19,18,18"
			y="8,7,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=2
			attacker_type="Merman Warrior"
			defender_lvl=1
			defender_type="Drake Clasher"
			defender_weapon=1
			tod="first_watch"
			turn=11
			weapon=0
			[source]
				x=18
				y=6
			[/source]
			[destination]
				x=17
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="104c8f77"
[/random_seed]
[/command]

	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Drake Clasher"
			defender_weapon=0
			tod="first_watch"
			turn=11
			weapon=0
			[source]
				x=22
				y=5
			[/source]
			[destination]
				x=21
				y=5
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="921092ba"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,23,23,22"
			y="7,6,6,5,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=22
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Horseman"
			defender_lvl=1
			defender_type="Drake Clasher"
			defender_weapon=1
			tod="first_watch"
			turn=11
			weapon=0
			[source]
				x=22
				y=4
			[/source]
			[destination]
				x=21
				y=5
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="6f98550f"
[/random_seed]
[/command]

	[command]
		dependent=yes
		from_side=2
		[choose]
			value=0
		[/choose]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="24,24,23,22,21,20,19,18"
			y="2,3,4,4,4,4,4,4"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=4
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="first_watch"
			turn=11
			weapon=0
			[source]
				x=18
				y=4
			[/source]
			[destination]
				x=18
				y=5
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="460d3e88"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="19,18,17,17"
			y="7,7,7,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=17
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="first_watch"
			turn=11
			weapon=0
			[source]
				x=17
				y=6
			[/source]
			[destination]
				x=18
				y=5
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="303c8f54"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="20,21,21,20,19"
			y="6,6,5,4,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="first_watch"
			turn=11
			weapon=0
			[source]
				x=19
				y=5
			[/source]
			[destination]
				x=18
				y=5
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="e07cde74"
[/random_seed]
[/command]

	[command]
		[countdown_update]
			team=2
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=3
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup1]
		[checkup2]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup2]
	[/command]
	[command]
		[init_side]
			side_number=1
		[/init_side]
		[checkup]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="19,19"
			y="6,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=2
			attacker_type="Drake Flare Ladder_1"
			defender_lvl=2
			defender_type="Merman Warrior"
			defender_weapon=-1
			tod="second_watch"
			turn=12
			weapon=1
			[source]
				x=19
				y=7
			[/source]
			[destination]
				x=18
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="29332657"
[/random_seed]
[/command]

	[command]
		from_side=1
		[move]
			skip_sighted="only_ally"
			x="18,19"
			y="5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Saurian Augur"
			defender_lvl=2
			defender_type="Merman Warrior"
			defender_weapon=-1
			tod="second_watch"
			turn=12
			weapon=1
			[source]
				x=19
				y=6
			[/source]
			[destination]
				x=18
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="f3c5e779"
[/random_seed]
[/command]

	[command]
		from_side=1
		[attack]
			attacker_lvl=1
			attacker_type="Drake Clasher"
			defender_lvl=1
			defender_type="Spearman Ladder_1"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=1
			[source]
				x=7
				y=2
			[/source]
			[destination]
				x=7
				y=3
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="874c73f4"
[/random_seed]
[/command]

	[command]
		[countdown_update]
			team=1
			value=480000
		[/countdown_update]
	[/command]

	[command]
		[end_turn]
			next_player_number=2
		[/end_turn]
		[checkup1]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup1]
	[/command]
	[command]
		[init_side]
			side_number=2
		[/init_side]
		[checkup]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="7,7,7,6"
			y="10,9,8,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=6
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]

	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Drake Clasher"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=0
			[source]
				x=7
				y=3
			[/source]
			[destination]
				x=7
				y=2
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="039e31a5"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,21,20"
			y="5,5,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=0
			[source]
				x=20
				y=5
			[/source]
			[destination]
				x=19
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="dfe2f76f"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="18,18"
			y="4,5"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=5
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=1
			defender_type="Saurian Augur"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=0
			[source]
				x=18
				y=5
			[/source]
			[destination]
				x=19
				y=6
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="32ca9448"
[/random_seed]
[/command]

	[command]
		from_side=2
		[attack]
			attacker_lvl=2
			attacker_type="Merman Warrior"
			defender_lvl=2
			defender_type="Drake Flare Ladder_1"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=0
			[source]
				x=18
				y=6
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="f9502cc5"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="23,22,21,20,19"
			y="7,6,6,5,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=19
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Spearman Ladder_1"
			defender_lvl=2
			defender_type="Drake Flare Ladder_1"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=0
			[source]
				x=19
				y=6
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="ea203895"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="19,18,17,17,18"
			y="5,5,6,7,7"
		[/move]
		[checkup]
			[result]
				final_hex_x=18
				final_hex_y=7
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=1
			attacker_type="Cavalryman Ladder_1"
			defender_lvl=2
			defender_type="Drake Flare Ladder_1"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=0
			[source]
				x=18
				y=7
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="f23f803b"
[/random_seed]
[/command]

	[command]
		from_side=2
		[move]
			skip_sighted="only_ally"
			x="22,21,21,20"
			y="4,5,6,6"
		[/move]
		[checkup]
			[result]
				final_hex_x=20
				final_hex_y=6
				stopped_early=no
			[/result]
			[result]
				next_unit_id=29
				random_calls=0
			[/result]
		[/checkup]
	[/command]
	[command]
		from_side=2
		[attack]
			attacker_lvl=2
			attacker_type="Knight"
			defender_lvl=2
			defender_type="Drake Flare Ladder_1"
			defender_weapon=0
			tod="second_watch"
			turn=12
			weapon=1
			[source]
				x=20
				y=6
			[/source]
			[destination]
				x=19
				y=7
			[/destination]
		[/attack]
		[checkup]
		[/checkup]
	[/command]

[command]
dependent="yes"
from_side="server"
[random_seed]
new_seed="7d7f33e6"
[/random_seed]
[/command]
[/replay]
