I am trying to write an event which gives a warning when a ruler or his child becomes 16, so I know to pause the game and start looking for a wive.
Unfortunately my event doesn't work, probably because I made a mistake somewhere.
Basically what I want the event to do is check if a character is 16, is a ruler or the child of a ruler, and is not married. Then it should give a warning (the set_to_realm_religion is just added because I needed something for the effect).
The problem is alas that this event doesn't trigger at all. If I trigger it manually, I get 'cannot happen, trigger not satisfied'.
Help?
Unfortunately my event doesn't work, probably because I made a mistake somewhere.
Code:
#########################
# Eligible for marriage
# By JordiK
#########################
character_event = {
id = 30010
picture = "event_intrigue"
trigger = {
condition = { type = not value = { type = ai } }
condition = { type = not value = { type = is_married } }
condition = { type = or
condition = { type = ruler }
condition = { type = ruler_child }
}
condition = { type = age value = 16 }
}
action_a = {#Your child is now eligible for marriage !
effect = { type = set_to_realm_religion }
}
}
Basically what I want the event to do is check if a character is 16, is a ruler or the child of a ruler, and is not married. Then it should give a warning (the set_to_realm_religion is just added because I needed something for the effect).
The problem is alas that this event doesn't trigger at all. If I trigger it manually, I get 'cannot happen, trigger not satisfied'.
Help?