﻿loaa_select_target_scripted_gui = {
	scope = character
	saved_scopes = { selected_target }
 	is_shown = {
		var:loaa_selected_target ?= scope:selected_target
	}
	effect = {
		set_variable = { name = loaa_selected_target value = scope:selected_target }
	}
}

loaa_issued_contract_sgui = {
	scope = character
	is_shown = {
		is_ai = no
		is_landed = yes
		is_ruler = yes
		var:employed_adventurers_num ?= { this > 0 }
	}
}

loaa_set_months_spent_sgui = {
	scope = character

	effect = {
		var:offered_contract ?= {
			set_variable = {
				name = months_spent
				value = time_since_contract_taken
			}
		 }
	}
}

loaa_apply_invalidation_penalty_sgui = {
	scope = character

	effect = {
		var:offered_contract ?= {
			set_variable = task_contract_voluntary_invalidation
		}
	}
}