﻿auto_prison_start = {
	picture = gfx/interface/illustrations/window_headers/header_prison.dds
	title = auto_prison_start_title
 	desc = auto_prison_start_desc
    selection_tooltip = auto_prison_start_tooltip
	confirm_text = auto_prison_start_ct
	is_shown = {
		is_ai = no
		NOT = { has_global_variable = auto_prison_active }
	}
	ai_will_do = 0
	ai_check_interval = 0

	effect = {
		set_global_variable = {
			name = auto_prison_active
			value = yes
		}
		trigger_event = autoPrison.0001
	}
}

auto_prison_stop = {
	picture = gfx/interface/illustrations/window_headers/header_prison.dds
	title = auto_prison_stop_title
 	desc = auto_prison_stop_desc
    selection_tooltip = auto_prison_stop_tooltip
	confirm_text = auto_prison_stop_ct
	is_shown = {
		is_ai = no
		has_global_variable = auto_prison_active
	}
	ai_will_do = 0
	ai_check_interval = 0

	effect = {

		remove_global_variable = auto_prison_active

	}
}