• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

ash001

friend&foe
10 Badges
Jun 5, 2009
796
0
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Rome Gold
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
Ok, I'm trying to figure this out and some of you might already know this...

if so - please, share the wealth! ;)

I'd like to make the event below fire almost every time the number of traits goes above 8.

Code:
 #Remove TRAIT XXXX
character_event = {
	id = NUMBERYYYY
	desc = "EVTDESCNUMBERYYYY"
	picture = "GFX_evt_feast"
	
	min_age = 16 
	max_age = 26
	
	is_triggered_only = yes
	
	trigger = {
		num_traits = 7  
		trait = XXXXX
	}
	
	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 6    
			num_traits = 8  
		}
	}
	
	option = {
		name = "EVTOPTAnumberyyyyy"
		remove_trait = xxxxxx
	}
}

As far as I know, there are two ways to influence the chance of this event firing.
1) increase the "weight" on the event in the on_actions file and/or move it to

Code:
 #character
on_yearly_pulse = {
	random_events = {

instead of

Code:
 #character
on_five_year_pulse = {
	random_events = {



Can I simply cut the event id and paste it in another section of the on_actions file?

so the event will have a better chance in firing every year instead of every five years?


And, then... modifiers.

Let's take a look at this example:

Code:
 mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 4    
			num_traits = 8  
		}
	}

The number (4) means having 8 traits instead of 7 makes it 4 "times" more likely for the event to fire, yes?
And if the modifier was factor = 1.0, then it wouldn't make any difference in the chance of the event firing, am I correct?

Could I add more modifiers to the event?
Let's say - if the number of traits was equal or above 9, the factor would again be 4? So the effects would be cumulative...

Sorry for the long post, hope I'm making sense here...
 

ash001

friend&foe
10 Badges
Jun 5, 2009
796
0
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Rome Gold
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
Thanks for that, Baneslave.


By the way, it seems the code above does work... I mean, running this test, having a character with 9 traits makes it much more likely for him to loose traits, than a character with 7 traits.
So I guess it is cumulative...

Code:
trigger = {
		trait = lustful
		num_traits = 7  	
}
	
	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 4    
			num_traits = 8   		
}
		
		modifier = {
			factor = 6    
			num_traits = 9   
		}
	}
	
	option = {
		name = "EVTOPTA1028"
		remove_trait = lustful
	}
}