• 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.

unmerged(36722)

Second Lieutenant
Dec 8, 2004
172
0
i'm looking at this event...
###############################
# Character wounded in combat #
###############################

character_event = {
id = 7001

picture = "event_battle"

trigger = {
condition = { type = combat }
}

mean_time_to_happen = {
days = 150

# Martial value modifiers:

modifier = {
condition = { type = not value = { type = martial value = 5 } }
factor = 0.5
}

# Base value is for this range, but we don't calculate x 1 multiplier to save CPU
#
# modifier = {
# condition = { type = martial value = 5 }
# condition = { type = not value = { type = martial value = 10 } }
# factor = 1
# }


On the bolded part, does that mean only a martial 5 will be affected? or is it 5 or below? because i am wanting to increase the odds of this event happening to lower martial characters and didn't know if there was a greater than or less than modifier...
thanks.
 

unmerged(36722)

Second Lieutenant
Dec 8, 2004
172
0
ahh. i see.. thanks.
so does that mean all 5 martial stats and above?

If i wanted to increase the chances of lower martial stat leaders would the modifier look like this?

# modifier = {
# condition = { type = martial value = 0 }
# condition = { type = not value = { type = martial value = 5 } }
# factor = .5
# }

since the other one was 5 and i set the not value at 5 would that work?
 
Last edited:

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
The lines that start with "#" are comments; making any changes to them affect nothing. What you have to do is change this part:
###############################
# Character wounded in combat #
###############################

character_event = {
id = 7001

picture = "event_battle"

trigger = {
condition = { type = combat }
}

mean_time_to_happen = {
days = 150

# Martial value modifiers:

modifier = {
condition = { type = not value = { type = martial value = 5 } }
factor = 0.5
}


# Base value is for this range, but we don't calculate x 1 multiplier to save CPU
#
# modifier = {
# condition = { type = martial value = 5 }
# condition = { type = not value = { type = martial value = 10 } }
# factor = 1
# }

That's already increasing the likelihood of low martial characters (martial 5 and below) getting this event. To increase it even more, decrease the factor in that block.
 

unmerged(36722)

Second Lieutenant
Dec 8, 2004
172
0
richvh said:
The lines that start with "#" are comments; making any changes to them affect nothing. What you have to do is change this part:


That's already increasing the likelihood of low martial characters (martial 5 and below) getting this event. To increase it even more, decrease the factor in that block.

oh ok.. for some reason i thought it was greater than or equal to martial 5.

thanks.
 

unmerged(36722)

Second Lieutenant
Dec 8, 2004
172
0
so if i wanted to change any of the factors on the trait modifiers the same was as the martial value, i can as long as the line doesn't start with a #?