EDIT:
In the history files we can use
employer = ID to get this effect, to put characters in specific courts at a certain date. Basically I want an extension of this command to make it available to the scripting engine and take targets.
Original below.
I'd like to get a '
employer' command, to move someone to a target's court. Currently we
can change someone's liege, but this won't do it for unlanded characters, and isn't always the right choice. Basically it should work like 'banish' only with a set target court.
'
employer' (or whatever) should take any valid identifier like 'liege', 'father', 'mother', 'PREV', 'FROM', 'ROOT' etc..
Example code if this were implemented:
Code:
character_event = {
id = foo
desc = "As a child, you should really be at home with your parent."
picture = "GFX_evt_child_play"
trigger = {
is_ruler = no
NOT = { age = 16 )
NOT = { any_liege = { dynasty = ROOT } }
NOT = { at_location = father }
NOT = { at_location = mother }
OR = {
father = { is_alive = yes }
mother = { is_alive = yes }
}
NOT = { has_global_flag = startup_children_moved }
}
mean_time_to_happen = {
days = 1
}
option = {
name = "Go Home"
IF = { #father alive
limit = { father = { is_alive = yes } }
[COLOR=#FF8C00]employer = father[/COLOR]
}
IF = { #mother alive
limit = { father = { is_alive = no } mother = { is_alive = yes } }
[COLOR=#FF8C00]employer = mother[/COLOR]
}
set_global_flag = startup_children_moved
}
}