So I've tried to code this simple event - the result would be a chance for all recently-born characters to gain 1 trait from a list of 7 traits.
I made a few comments following ###, these are doubts or impressions I have, let's see how this goes:
So... I hope someone a bit more experienced might shed some light here...
and thanks for reading!
I made a few comments following ###, these are doubts or impressions I have, let's see how this goes:
Code:
character_event = {
id = 1992
desc = "EVTDESC1992"
picture = "GFX_evt_anewdawn"
min_age = 0 ### [B]I have defined these 7 traits as "source = birth" instead of "personality = yes" over at the traits.txt files[/B]
max_age = 8 ### [B]meaning there's 8 years for the event to trigger (I also I placed a weight of [500] on the yearly childhood pulse just to increase any chances of the event popping up)[/B]
is_triggered_only = yes
trigger = {
NOT = {
personality_traits = 8 ### [B]didn't need this trigger exactly, but decided to leave it for now...[/B]
}
NOT = {
trait = traitone
}
NOT = {
trait = traittwo
}
NOT = {
trait = traitthree
}
NOT = {
trait = traitfour
}
NOT = {
trait = traitfive
}
NOT = {
trait = traitsix
}
NOT = {
trait = traitseven
}
}
}
mean_time_to_happen = {
days = 1 ### [B]I could have set weeks or months or years, right? Went for the one most likely to reinforce the chances of the event firing for all the characters in-game... but I'm not sure how much strain it might put into the CPU [/B]
}
option = {
name = "EVTOPTA1992" #### [B]Strangely, this is where something is going WRONG - I expected to be able to click an answer, instead, I get this:[/B]
[SPOILER] [ATTACH=CONFIG]47711[/ATTACH][/SPOILER]
random_list = {
14 = {
FROM = {
add_trait = traitone
hidden_tooltip = {
ROOT = {
character_event = {
id = 92001 ### [B]so this event is supposed to fire just ot let us know what trait the character has gained[/B]
}
}
}
}
}
14 = {
FROM = {
add_trait = traittwo
hidden_tooltip = {
character_event = {
id = 92002
}
}
}
}
14 = {
FROM = {
add_trait = traitthree
hidden_tooltip = {
character_event = {
id = 92003
}
}
}
}
14 = {
FROM = {
add_trait = traitfour
hidden_tooltip = {
character_event = {
id = 92004
}
}
}
}
14 = {
FROM = {
add_trait = traitfive
hidden_tooltip = {
character_event = {
id = 92005
}
}
}
}
14 = {
FROM = {
add_trait = traitsix
hidden_tooltip = {
character_event = {
id = 92006
}
}
}
}
14 = {
FROM = {
add_trait = traitseven
hidden_tooltip = {
character_event = {
id = 92007
}
}
}
}
}
}
}
So... I hope someone a bit more experienced might shed some light here...
and thanks for reading!