So I have a question about triggers and mean time to happen mechanisms. I want to mess around and mod the game a little myself to give it more of a flavour, but I'm not entirely confident on my understanding of these concepts. So for example, if I have a code such as
trigger = {
NOT = { wealth = -50 }
NOT = { has_character_flag = loan_taken }
OR = {
NOT = { has_character_flag = loan_refused }
had_character_flag = { flag = loan_refused days = 365 }
}
}
I'm confused as to what the actual triggers for this event are. For "
NOT = { wealth = -50 }", is it saying that the character has less than -50 gold in his coffers? For "
NOT = { has_character_flag = loan_taken }" I understand it to mean that the person doesn't have the flag (I think flags act as status elements) of having taken a loan out already. I'm really confused about why there is a "
OR = {}" clause in there at all and what this clause actually does (generally and in this specific case). Can someone please explain that to me please
?
There's also the question regarding the mean time to happen mechanism. I know that this value by itself is the average time that this event will occur given that the triggers are in place, but I am not sure about the modifier values. For example,
mean_time_to_happen = {
days = 1
modifier = {
factor = 5
has_character_modifier = proving_bravery
}
modifier = {
factor = 1.5
trait = brave
}
modifier = {
factor = 0.5
trait = craven
}
modifier = {
trait = clubfooted
factor = 1.25
}
The mean time to happen without any modifiers is 1day, so I'm thinking that on average this event fires everyday to someone without any modifiers. However, the value of the modifier factors confuses me... Can someone explain to me what the factor actually does to the mean time to happen? Is is that the factor is a multiplier to the mean time to happen (ie. higher valued factors increase the mean time to happen)?
Also, can someone give me some general hints about messing with events
? As I understand it, each event has an id (not sure how to create new ones or what it does), an is_triggered_only value as yes or no (not really sure what this does either...), a picture (can someone point to where these are located and what they correspond to lol), a desc (description; presumably the text that you see, can someone tell me where a file containing all the descriptions are as well xD), a trigger section, a mean_time_to_happen section, and an option section (can be more than one, not sure about the limits thing). Anyways, thank you for taking the time to read this long blurb, and any help will be appreciated!