EventChanged this version
Rise of Target Character

Target Character is a military genius who craves for the restoration of the once glorious Mongolia. With his loyal soldiers, he took over Target Location and the surrounding lands to establish the Target Country.
KurultaiBuildingimmediate
ChagataiCountryafter
TimuridCountrytriggerIranianCulture GrouptriggerMongolCulture GrouptriggerTurkicCulture GrouptriggerDefinitionin_game/events/DHE/flavor_tim.txt:445
446hide_portraits = yes
447type = country_event
448title = flavor_tim.8.title Rise of Target Character
449desc = flavor_tim.8.desc Target Character is a military genius who craves for the restoration of the once glorious Mongolia. With his loyal soldiers, he took over Target Location and the surrounding lands to establish the Target Country.
450outcome = neutral
451fire_only_once = yes
452illustration_tags = {
45310 = armed
45410 = exterior
}
456major = yes
461trigger = {
462current_year >= 1360
463current_year < 1400
464owns = location:samarkand
465culture = {
466OR = {
}
}
472character:chg_timur_lame_borjigin = {
473is_alive = yes
474is_adult = yes
}
}
478immediate = {
}
480every_owned_location = {
481add_to_list = own_locations
}
483character:chg_timur_lame_borjigin = {
484save_scope_as = target_character
}
492location:samarkand = {
493save_scope_as = target_location
494area = {
495every_location_in_area = {
504add_core = scope:target_country
}
}
}
508scope:target_location = {
509floodfill_locations = {
510limit = {
517OR = {
518is_core_of = scope:target_country
519AND = {
520exists = scope:target_chagatai
521this.distance_to(scope:target_chagatai.capital) > "this.distance_to(scope:target_location)"
}
}
}
525add_core = scope:target_country
526if = {
527limit = {
527is_in_list = own_locations
}
528remove_from_list = own_locations
}
}
532while = {
533count = 12
534create_sub_unit_with_owner = {
535type = a_steppe_horse_archers
536owner = scope:target_country
}
}
}
540save_scope_as = root_country
541create_country_from_cores_in_our_locations = scope:target_country
542scope:target_country = {
543set_capital = scope:target_location
550change_country_type = army
552add_reform = government_reform:legacy_of_genghis
555change_country_color = map_TIM
557centralization_vs_decentralization = -60
558traditionalist_vs_innovative = 40
559spiritualist_vs_humanist = -50
560aristocracy_vs_plutocracy = -60
561serfdom_vs_free_subjects = 50
562mercantilism_vs_free_trade = 50
563belligerent_vs_conciliatory = -80
564quality_vs_quantity = -50
565offensive_vs_defensive = -90
566land_vs_naval = -80
567capital_economy_vs_traditional_economy = 100
568individualism_vs_communalism = 60
569outward_vs_inward = -20
}
576add_gold = 3000
577add_estate_satisfaction = {
}
578add_estate_satisfaction = {
}
579add_estate_satisfaction = {
}
580add_estate_satisfaction = {
}
584every_province = {
585limit = {
585any_location_in_province = {
585NOT = {
585integration_level = core
}
}
}
586change_province_integration = core
}
}
589cancel_subject = scope:target_country
590scope:target_location = {
591if = {
595construct_building = {
597cost_multiplier = 0
598cost_multiplier_reason = "game_concept_event"
599instant = yes
}
}
}
604every_ruling_countries = {
605limit = {
606this != scope:target_country
607is_ai = yes
}
}
}
}
652after = {
654scope:target_country = {
655every_neighbor_country = {
656limit = {
657this != scope:target_country
658OR = {
659any_owned_location = {
660is_core_of = scope:target_country
661count = all
}
}
}
}
}
}