Hey everyone,
I've been on a quest to find an answer to a modding dilemma that has been puzzling me for quite some time. Despite my extensive research, I haven't been able to find a solution, so I'm hoping someone out there can help shed some light on the matter.
Here's the scenario: I've developed a system of six traits within my mod. The traits are as follows: God, FirstAngel, SecondAngel, Devil, FirstDemon, and SecondDemon. What I'm aiming to achieve is a mechanism where, if the holder of the God or Devil trait dies or is killed, or if there is no one left possessing those traits, the FirstAngel or FirstDemon will automatically assume the role of God or Devil, respectively. Additionally, the new FirstAngel or FirstDemon will be chosen from the pool of SecondAngel or SecondDemon traits. Furthermore, the SecondAngel or SecondDemon trait should become available to be acquired by random individuals who possess the traits of brave or possessed.
In essence, I want to ensure that at any given time, only one individual possesses the complete set of all six traits I've created, akin to the concept of Augustus Trait. The trigger for this transition should occur only when the current holder of the six traits dies.
Now, my question is whether it is possible to develop a trait system that will automatically initiate this chain of events as described. I'm open to any suggestions or insights you may have regarding this matter.
Thank you in advance for your assistance, and I look forward to hearing your thoughts on this perplexing modding challenge.
namespace = angels_events
# Event 1: Acquiring the God trait from the FirstAngel trait
angels_events.0001 = {
type = character_event
title = angels_events.0001.t
desc = "The power of the divine flows through the realms, seeking a new vessel. With the passing of the God, the chosen FirstAngel emerges as the rightful heir. The divine essence is bestowed upon the new holder, replacing their once-held FirstAngel trait."
trigger = {
OR = {
has_died = yes
killer = { always = yes }
NOT = { exists = trait:God }
}
has_trait = FirstAngel
}
immediate = {
add_trait = God
remove_trait = FirstAngel
}
}
# Event 2: Acquiring the FirstAngel trait from the SecondAngel trait
angels_events.0002 = {
type = character_event
title = angels_events.0002.t
desc = "The celestial hierarchy shifts as the holder of the SecondAngel trait passes from this world. The divine order decrees that the worthy successor shall ascend to the rank of the FirstAngel, relinquishing their previous SecondAngel status."
trigger = {
OR = {
has_died = yes
killer = { always = yes }
NOT = { exists = trait:FirstAngel }
}
has_trait = SecondAngel
}
immediate = {
add_trait = FirstAngel
remove_trait = SecondAngel
}
}
# Event 3: Selecting a random holder of the Brave trait as the new SecondAngel
angels_events.0003 = {
type = character_event
title = angels_events.0003.t
desc = "The celestial forces yearn for balance as the SecondAngel relinquishes their ethereal mantle. The fates turn to the brave souls among them, bestowing the esteemed title of the SecondAngel upon one of them."
trigger = {
OR = {
has_died = yes
killer = { always = yes }
NOT = { exists = trait:SecondAngel }
}
has_trait = Brave
}
immediate = {
random_ruler = yes
add_trait = SecondAngel
remove_trait = Brave
}
}
# Event 4: Ensuring only one holder of each trait at a time
angels_events.0004 = {
type = character_event
title = angels_events.0004.t
desc = "The celestial order mandates that the divine traits of God, FirstAngel, and SecondAngel should never converge within a single individual. Should such an imbalance occur, the universe corrects itself, bestowing the rightful titles to the chosen ones."
trigger = {
OR = {
has_trait = { trait:God trait:FirstAngel trait:SecondAngel }
count_holders_of_trait = { trait:God value = 2 }
count_holders_of_trait = { trait:FirstAngel value = 2 }
count_holders_of_trait = { trait:SecondAngel value = 2 }
}
}
immediate = {
remove_trait = { trait:God trait:FirstAngel trait:SecondAngel }
}
}
# Event 5: Triggered when one of the trait holders dies or no one is alive
angels_events.0005 = {
type = character_event
title = angels_events.0005.t
desc = "The celestial balance shatters as the divine essence fades from the world. With the death of one of the blessed trait holders or the absence of any remaining, the celestial forces convulse, eagerly seeking new conduits for their sacred powers."
trigger = {
OR = {
has_died = yes
NOT = { exists = trait:God }
NOT = { exists = trait:FirstAngel }
NOT = { exists = trait:SecondAngel }
}
}
immediate = {
trigger_event = { id = angels_events.0001 id = angels_events.0002 id = angels_events.0003 }
}
}
I've been on a quest to find an answer to a modding dilemma that has been puzzling me for quite some time. Despite my extensive research, I haven't been able to find a solution, so I'm hoping someone out there can help shed some light on the matter.
Here's the scenario: I've developed a system of six traits within my mod. The traits are as follows: God, FirstAngel, SecondAngel, Devil, FirstDemon, and SecondDemon. What I'm aiming to achieve is a mechanism where, if the holder of the God or Devil trait dies or is killed, or if there is no one left possessing those traits, the FirstAngel or FirstDemon will automatically assume the role of God or Devil, respectively. Additionally, the new FirstAngel or FirstDemon will be chosen from the pool of SecondAngel or SecondDemon traits. Furthermore, the SecondAngel or SecondDemon trait should become available to be acquired by random individuals who possess the traits of brave or possessed.
In essence, I want to ensure that at any given time, only one individual possesses the complete set of all six traits I've created, akin to the concept of Augustus Trait. The trigger for this transition should occur only when the current holder of the six traits dies.
Now, my question is whether it is possible to develop a trait system that will automatically initiate this chain of events as described. I'm open to any suggestions or insights you may have regarding this matter.
Thank you in advance for your assistance, and I look forward to hearing your thoughts on this perplexing modding challenge.
namespace = angels_events
# Event 1: Acquiring the God trait from the FirstAngel trait
angels_events.0001 = {
type = character_event
title = angels_events.0001.t
desc = "The power of the divine flows through the realms, seeking a new vessel. With the passing of the God, the chosen FirstAngel emerges as the rightful heir. The divine essence is bestowed upon the new holder, replacing their once-held FirstAngel trait."
trigger = {
OR = {
has_died = yes
killer = { always = yes }
NOT = { exists = trait:God }
}
has_trait = FirstAngel
}
immediate = {
add_trait = God
remove_trait = FirstAngel
}
}
# Event 2: Acquiring the FirstAngel trait from the SecondAngel trait
angels_events.0002 = {
type = character_event
title = angels_events.0002.t
desc = "The celestial hierarchy shifts as the holder of the SecondAngel trait passes from this world. The divine order decrees that the worthy successor shall ascend to the rank of the FirstAngel, relinquishing their previous SecondAngel status."
trigger = {
OR = {
has_died = yes
killer = { always = yes }
NOT = { exists = trait:FirstAngel }
}
has_trait = SecondAngel
}
immediate = {
add_trait = FirstAngel
remove_trait = SecondAngel
}
}
# Event 3: Selecting a random holder of the Brave trait as the new SecondAngel
angels_events.0003 = {
type = character_event
title = angels_events.0003.t
desc = "The celestial forces yearn for balance as the SecondAngel relinquishes their ethereal mantle. The fates turn to the brave souls among them, bestowing the esteemed title of the SecondAngel upon one of them."
trigger = {
OR = {
has_died = yes
killer = { always = yes }
NOT = { exists = trait:SecondAngel }
}
has_trait = Brave
}
immediate = {
random_ruler = yes
add_trait = SecondAngel
remove_trait = Brave
}
}
# Event 4: Ensuring only one holder of each trait at a time
angels_events.0004 = {
type = character_event
title = angels_events.0004.t
desc = "The celestial order mandates that the divine traits of God, FirstAngel, and SecondAngel should never converge within a single individual. Should such an imbalance occur, the universe corrects itself, bestowing the rightful titles to the chosen ones."
trigger = {
OR = {
has_trait = { trait:God trait:FirstAngel trait:SecondAngel }
count_holders_of_trait = { trait:God value = 2 }
count_holders_of_trait = { trait:FirstAngel value = 2 }
count_holders_of_trait = { trait:SecondAngel value = 2 }
}
}
immediate = {
remove_trait = { trait:God trait:FirstAngel trait:SecondAngel }
}
}
# Event 5: Triggered when one of the trait holders dies or no one is alive
angels_events.0005 = {
type = character_event
title = angels_events.0005.t
desc = "The celestial balance shatters as the divine essence fades from the world. With the death of one of the blessed trait holders or the absence of any remaining, the celestial forces convulse, eagerly seeking new conduits for their sacred powers."
trigger = {
OR = {
has_died = yes
NOT = { exists = trait:God }
NOT = { exists = trait:FirstAngel }
NOT = { exists = trait:SecondAngel }
}
}
immediate = {
trigger_event = { id = angels_events.0001 id = angels_events.0002 id = angels_events.0003 }
}
}