I'm working one a somewhat complex event chain for my exalted mod, and since I havn't been event scripting since Victoria, I'd like to run it past the board for obvious errors.
First of the idea of the events is to give certain people the dragon-blooded trait. I've toyed around with several approaches to this, since it should be somewhat rare and unpredicate. The easiest was just to make an event that pretty much fired for every child giving an X% chance to get the trait. I desided against that approach since I want the player to keep hoping for an exaltation thoughout characters childhood.
That led me to an approach where I'm using a somewhat high MTTH instead. However this approach led me to another problem. Since it is the parent that gets the event I was unsure of what would happen if he/she had more than one child. I figured the game would only roll one dice per event per char despite how many times the char furfilled the criteria. If I'm wrong on this I'd love to know though. My solution is to create a bunch of events one for each year of age the child has. I know you could have two children of the same age, but the chances are somewhat low.
My main concern is if I've gotten the effect right. I want the child to get both the dragon-blooded trait and one of the five aspect traits. I've only posted one of the events. So if the MTTH seems very high it is because there will be around 10 seperate events one for each year. Also the event should only trigger for around 10% of the children of a parent with the good pedigree trait.
First of the idea of the events is to give certain people the dragon-blooded trait. I've toyed around with several approaches to this, since it should be somewhat rare and unpredicate. The easiest was just to make an event that pretty much fired for every child giving an X% chance to get the trait. I desided against that approach since I want the player to keep hoping for an exaltation thoughout characters childhood.
That led me to an approach where I'm using a somewhat high MTTH instead. However this approach led me to another problem. Since it is the parent that gets the event I was unsure of what would happen if he/she had more than one child. I figured the game would only roll one dice per event per char despite how many times the char furfilled the criteria. If I'm wrong on this I'd love to know though. My solution is to create a bunch of events one for each year of age the child has. I know you could have two children of the same age, but the chances are somewhat low.
My main concern is if I've gotten the effect right. I want the child to get both the dragon-blooded trait and one of the five aspect traits. I've only posted one of the events. So if the MTTH seems very high it is because there will be around 10 seperate events one for each year. Also the event should only trigger for around 10% of the children of a parent with the good pedigree trait.
Code:
character_event = {
id = X
trigger = {
not = { traits = dragon-blooded }
any_child = {
age = 7
not = { age = 8 }
not = { traits = dragon-blooded }
not = { traits = solar }
not = { traits = lunar }
not = { traits = sidereal }
not = { traits = abyssal }
}
}
mean_time_to_happen = {
months = 1588
modifier = {
factor = 10.0
not = { traits = good_pedigree }
}
}
title = ""
desc = ""
option = {
name = ""
random_child = {
limit = {
age = 7
not = { age = 8 }
not = { traits = dragon-blooded }
not = { traits = solar }
not = { traits = lunar }
not = { traits = sidereal }
not = { traits = abyssal }
}
add_trait = dragon-blooded
random_list = {
20 = { add_trait = air_aspected }
20 = { add_trait = earth_aspected }
20 = { add_trait = fire_aspected }
20 = { add_trait = water_aspected }
20 = { add_trait = wood_aspected }
}
}
}
}