I'm making a few tests but still haven't been able to add traits to the game.
So if any experienced modders want to check what I did, you might be able to spot something I'm missing, overlooking or have totally borked.
Ok, so these are the steps taken:
1. added "traitone" and "traittwo" in the common/traits.txt file.
2. added an event in the events/childhood_personality_events_traits.txt, which (hopefully) would fire for every child between 1 and 5 years old.
3. went to the localization/text1 and included descriptions for EVTDESC1992, EVTOPTA1992, traitone and traittwo.
4. duplicated two of the DDS files in the gfx/traits, recolored them and renamed them to traitone.dds and traittwo.dds
When the game is running, nothing happens, no crashes but no event either.
What I would like is to have this obligatory event firing up for every child between 2-5 and giving them one trait (to be randomly picked among 12 specific traits - for now, I'm leaving the option between 2).
Any advice is appreciated, I must be tripping on something fairly basic :blush: - but I'm hopeful once I get the gist, this experiment might turn into something interesting...
Thanks!
So if any experienced modders want to check what I did, you might be able to spot something I'm missing, overlooking or have totally borked.
Ok, so these are the steps taken:
1. added "traitone" and "traittwo" in the common/traits.txt file.
2. added an event in the events/childhood_personality_events_traits.txt, which (hopefully) would fire for every child between 1 and 5 years old.
Code:
character_event = {
id = 1992
desc = "EVTDESC1992"
picture = "GFX_evt_child_play"
is_triggered_only = yes
min_age = 1
max_age = 5
mean_time_to_happen = {
days = 1
}
option = {
name = "EVTOPTA1992"
random_list = {
50 = {
add_trait = traitone
}
50 = {
add_trait = traittwo
}
}
3. went to the localization/text1 and included descriptions for EVTDESC1992, EVTOPTA1992, traitone and traittwo.
4. duplicated two of the DDS files in the gfx/traits, recolored them and renamed them to traitone.dds and traittwo.dds
When the game is running, nothing happens, no crashes but no event either.
What I would like is to have this obligatory event firing up for every child between 2-5 and giving them one trait (to be randomly picked among 12 specific traits - for now, I'm leaving the option between 2).
Any advice is appreciated, I must be tripping on something fairly basic :blush: - but I'm hopeful once I get the gist, this experiment might turn into something interesting...
Thanks!
Last edited: