Hey folks,
I'm trying to add an event that will add a trait to the player's character only once. I have finally gotten to the point where the game no longer calls out errors in the event but it still doesn't seem to fire regardless of the MTTH.
Any help would be greatly appreciated.
I'm trying to add an event that will add a trait to the player's character only once. I have finally gotten to the point where the game no longer calls out errors in the event but it still doesn't seem to fire regardless of the MTTH.
Any help would be greatly appreciated.
Code:
character_event = {
id = 8998
picture = "event_spymaster"
trigger = {
condition = { type = age value = 16 }
condition = { type = ruler }
condition = { type = not value = { type = ai } }
condition = { type = not value = { type = trait value = user_defined_a } }
}
}
}
mean_time_to_happen = {
days = 1
}
action_a = {
ai_chance = 0
effect = { type = add_trait value = user_defined_a }
}
}
action_b = {
ai_chance = 100
effect = { type = remove_trait value = user_defined_a }
}
}