﻿add_namespace = frontier
country_event = { #History
	id = frontier.0
	title = frontier.0.t
	desc = frontier.0.d
	picture = GFX_event_griffon_mountain
    trigger = {
        tag = GFF
        date > 1007.1.1
    }
    mean_time_to_happen = { days = 1 }
    fire_only_once = yes
	option = {
		name = frontier.0.a
	 	}
	}
	country_event = {
	id = frontier.1
	title = frontier.1.t
	desc = frontier.1.d
	picture = GFX_event_griffon_back

	is_triggered_only = yes

	option = {
		name = frontier.1.a
		GRF = { country_event = { id = griffons.18 days = 1 }
		}
	}
}
    country_event = {
	id = frontier.2
	title = frontier.2.t
	desc = frontier.2.d
	picture = GFX_event_griffon_mountain
    is_triggered_only = yes

	option = {
		name = frontier.2.a
        add_timed_idea = { idea = GFF_frontier_help days = 365 }
		set_country_flag = GFF_actual_funds
		}
	}
	
	country_event = {
	id = frontier.3
	title = frontier.3.t
	desc = frontier.3.d
	picture = GFX_event_griffon_back

	is_triggered_only = yes

	option = {
		name = frontier.3.a
		set_country_flag = GFF_no_funds
		}
	}
	country_event = {
	id = frontier.4
	title = frontier.4.t
	desc = frontier.4.d
	picture = GFX_event_griffon_mountain
	is_triggered_only = yes

	option = {
		name = frontier.4.a
		}
	}
	country_event = {
	id = frontier.5
	title = frontier.5.t
	desc = frontier.5.d
	picture = GFX_event_griffon_back
	is_triggered_only = yes

	option = {
		name = frontier.1.a
		GRF = { country_event = { id = griffons.19 days = 1 }
		}
	}
}
    country_event = {
	id = frontier.6
	title = frontier.6.t
	desc = frontier.6.d
	picture = GFX_event_griffon_mountain

	is_triggered_only = yes

	option = {
		name = frontier.6.a
		add_equipment_to_stockpile = { type = infantry_equipment amount = 1500 producer = STG }
		}
	}
country_event = {
	id = frontier.7
	title = frontier.7.t
	desc = frontier.7.d
	picture = GFX_event_griffon_back
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = frontier.7.a
		end_puppet = GFF
		add_political_power = 100
		kill_country_leader = yes
        create_country_leader = {
            name = "Virgil"
            picture = "Virgil.tga"
            expire = "1965.1.1"
            ideology = fascism_ideology
            traits = {}
        }
		set_politics = {
			ruling_party = fascism
			elections_allowed = no
						}
		    add_popularity = {
				ideology = fascism
				popularity = 0.35
	    }
		GRF = { country_event = { id = griffons.20 days = 30 } }
}
}
country_event = {
	id = frontier.8
	title = frontier.8.t
	desc = frontier.8.d
	picture = GFX_event_griffon_back
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = frontier.8.a
		add_political_power = 100
}
}
country_event = {
	id = frontier.9
	title = frontier.9.t
	desc = frontier.9.d
	picture = GFX_event_griffon_back
    fire_only_once = yes
	trigger = {
        tag = GFF
        has_completed_focus = GFF_victory
    }
	mean_time_to_happen = {
    days = 265
    }

	option = {
		name = frontier.9.a
		ai_chance = {
			factor = 70
		}
	swap_ideas = { remove_idea = GFF_commie_friends
	               add_idea = GFF_commies }
		add_political_power = 100
	hidden_effect= {
		set_country_flag = GFF_virgil_rules 
		}
	remove_unit_leader = 24604
	}
	option = {
		name = frontier.9.b
		ai_chance = {
			factor = 30
		}
		swap_ideas = { remove_idea = GFF_bandits_win
		               add_idea = GFF_bandits }
	    swap_ideas = { remove_idea = GFF_cannibal_friends
		               add_idea = GFF_cannibals }
		retire_country_leader = yes
        create_country_leader = {
            name = "Heinrich Redtail"
            picture = "Heinrich.tga"
            expire = "1965.1.1"
            ideology = marxism
            traits = { inspiration_leader }
        }
		remove_unit_leader = 24602
		remove_unit_leader = 24603

		set_politics = {
			ruling_party = communism
			elections_allowed = no
						}
            add_popularity = {
							ideology = communism
							popularity = 0.30
						}
		add_political_power = -75
	hidden_effect = {
		set_country_flag = GFF_redtail_rules
	}
}
}
    country_event = {
	id = frontier.10
	title = frontier.10.t
	desc = frontier.10.d
	picture = GFX_event_griffon_mountain
    is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = frontier.10.a
		}
	}
	
country_event = {
	id = frontier.11
	title = frontier.11.t
	desc = frontier.11.d
	picture = GFX_event_griffon_back

	is_triggered_only = yes

	option = {
		name = frontier.11.a
		ai_chance = {
			factor = 100
		}

		add_to_faction = GFF
		add_political_power = 20
		GFF = { country_event = { id = frontier.12 } }
	}
	option = {
		name = frontier.11.b
		ai_chance = {
			factor = 0
		}
		add_political_power = -20
		GFF = { country_event = { id = frontier.13 } }
	}
}

country_event = {
	id = frontier.12
	title = frontier.12.t
	desc = frontier.12.d
	picture = GFX_event_griffon_mountain

	is_triggered_only = yes

	option = {
		name = frontier.12.a
		add_political_power = 40
	}
}

country_event = {
	id = frontier.13
	title = frontier.13.t
	desc = frontier.13.d
	picture = GFX_event_griffon_mountain

	is_triggered_only = yes

	option = {
		name = frontier.13.a
		add_political_power = -40
	}
}
country_event = {
	id = frontier.14
	title = frontier.14.t
	desc = frontier.14.d
	picture = GFX_event_griffon_mountain

	trigger = {
	OR = { has_idea = GFF_cannibals
           has_idea = GFF_cannibal_friends
           has_idea = GFF_war_cannibals  }
	}

	mean_time_to_happen = {
		days = 365
	}

	option = {
		name = frontier.14.a
		add_political_power = -25
		add_manpower = -500
	}
}
