Event
The Settlement of Target

A few years ago, Recipient was sent on Actor Adjective command to the unsettled lands of Target to claim it for the Actor. This enterprise has found its end today at last!
Recipient has transferred the province to his/her homeland. Although he/she remains governor of the settled lands, it is now under our own full administration.
CommonersEstateimmediate
RepublicGovernment Typeimmediate
TheocracyGovernment TypeimmediateSettling the FrontierStatic Modifierimmediate, option 1settler_character_truthfulnessVariableimmediateDefinitionin_game/events/colonization/settle_the_frontier.txt:370
371type = country_event
372title = settle_the_frontier.100.title The Settlement of Target
373desc = {
374first_valid = {
375triggered_desc = {
376trigger = {
377NOT = {
377exists = scope:target_country
}
378exists = scope:recipient
}
380desc = settle_the_frontier.100.desc.a A few years ago, Recipient was sent on Actor Adjective command to the unsettled lands of Target to claim it for the Actor. This enterprise has found its end today at last!
Recipient has transferred the province to his/her homeland. Although he/she remains governor of the settled lands, it is now under our own full administration.
Recipient has transferred the province to his/her homeland. Although he/she remains governor of the settled lands, it is now under our own full administration.
}
382triggered_desc = {
383trigger = {
384exists = scope:target_country
385exists = scope:recipient
}
387desc = settle_the_frontier.100.desc.b A few years ago, Recipient was sent on Actor Adjective command to the unsettled lands of Target to claim it for the Actor. This enterprise has found its end today at last!
Unfortunately, Recipient has never returned to Actor. It seems like the autonomy we granted him/her has led him/her to declare his/her own Target Country.
Unfortunately, Recipient has never returned to Actor. It seems like the autonomy we granted him/her has led him/her to declare his/her own Target Country.
}
389triggered_desc = {
390trigger = {
390always = yes
}
391desc = settle_the_frontier.100.desc A few years ago, Recipient was sent on Actor Adjective command to the unsettled lands of Target to claim it for the Actor. This enterprise has found its end today at last!
}
}
}
395outcome = neutral
396illustration_tags = {
39710 = happy
39810 = exterior
}
400immediate = {
}
402if = {
403limit = {
404exists = scope:recipient
}
409scope:target = {
410ordered_location_in_province_definition = {
411limit = {
412has_owner = no
413is_ownable = yes
}
415order_by = population
416max = 1
417change_location_owner = scope:actor
418save_scope_as = target_location
419create_country_from_location = {
420save_scope_as = target_country
421set_capital = scope:target_location
}
}
424every_location_in_province_definition = {
425limit = {
426has_owner = no
427is_ownable = yes
}
429change_location_owner = scope:target_country
430change_location_controller = scope:target_country
}
}
433scope:target_country = {
434set_new_ruler = scope:recipient
}
436scope:recipient = {
437if = {
}
443move_country = scope:target_country
444if = {
}
448else_if = {
}
452else = {
454every_descendant = {
455if = {
}
}
}
461if = {
462limit = {
462NOT = {
462exists = dynasty
}
}
463scope:target_location = {
464create_dynasty_from_location = random
465if = {
466limit = {
466exists = last_dynasty_in_location
}
467last_dynasty_in_location = {
468save_scope_as = target_dynasty
}
}
}
472if = {
473limit = {
473exists = scope:target_dynasty
}
474change_dynasty = scope:target_dynasty
475every_descendant = {
476change_dynasty = scope:target_dynasty
}
}
}
}
}
}