I am trying to localise an event to search for the name of a child.
When I use [This.GetFirstName] I get the name of my ruler instead.
Here is the event:
Code:
character_event = {
id = LECH.1
title = "EVTTITLELECH.1"
desc = "EVTDESCLECH.1"
picture = GFX_evt_throne_room
only_playable = yes
trigger = {
OR = {
religion = slavic_pagan
religion = slavic_pagan_reformed
}
any_child = {
age = 7
is_female = no
is_child_of = FROM
NOT = { has_character_flag = first_haircut }
OR = {
religion = slavic_pagan
religion = slavic_pagan_reformed
}
}
}
mean_time_to_happen = {
days = 0
}
option = {
name = "EVTOPTALECH.1"
random_child = {
limit = {
age = 7
is_female = no
is_child_of = FROM
NOT = { has_character_flag = first_haircut }
OR = {
religion = slavic_pagan
religion = slavic_pagan_reformed
}
}
set_character_flag = first_haircut
prestige = +5
opinion = {
who = FROM
modifier = first_haircut_success
years = 5
}
mother = {
opinion = {
who = FROM
modifier = first_haircut_success
years = 5
}
}
}
FROM ={
wealth = -20
prestige = +10
}
mother = {
opinion = {
who = FROM
modifier = first_haircut_success
years = 5
}
}
}
option = {
name = "EVTOPTALECH.2"
wealth = -20
prestige = +10
}
}
Also, is it possible to restrict the title of an event (by that I mean the "name = YADAYADA") using an if = {} clause?