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

Jadelith

Major
87 Badges
Feb 6, 2003
683
404
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Supreme Ruler: Cold War
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Heir to the Throne
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Victoria 3 Sign Up
  • Darkest Hour
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • 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
  • A Game of Dwarves
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
Code:
character_event = {
   id = 15000

   picture = "event_education" 

	trigger = { 
		condition = { type = age value = 1 } 
		condition = { type = not value = { type = age value = 12 } }
		condition = { type = or
			condition = { type = father
				condition = { type = martial value = 10 } }
			condition = { type = mother
				condition = { type = martial value = 10 } }
		 }
   } 

   mean_time_to_happen = { 
      months = 180 
   } 
   modifier = {
			condition = { type = father
				condition = { type = martial value = 20 }
			factor = 0.9
			}
		}
   modifier = {
			condition = { type = father
				condition = { type = martial value = 30 }
			factor = 0.9
			}
		}
   modifier = {
			condition = { type = father
				condition = { type = martial value = 40 }
			factor = 0.9
			}
		}
   modifier = {
			condition = { type = mother
				condition = { type = martial value = 20 }
			factor = 0.9
			}
		}
   modifier = {
			condition = { type = mother
				condition = { type = martial value = 30 }
			factor = 0.9
			}
		}
   modifier = {
			condition = { type = mother
				condition = { type = martial value = 40 }
			factor = 0.9
			}
		}
   immidiate = { 
      effect = { type = martial value = 1 }     
   } 
}

basically, I want to add a slight chance of getting a +1 to a stat if the mother/father has a very high stat

I don't think my arguments are valid, which is why the game won't understand what I'm trying to do.

could anyone help?

thanks!
 
right, sorry for not mentioning that..

unknown lhs in event file for the following:

'modifier = {' line 402
'condition = {' line 403
'type = father' line 404
'condition = {' line 404
'type = martial' line 404
'value = 20' line 404

and "unknown event type" for this one

'factor = 0.9' line 406

funny thing is, I can play the game (If I click on "ignore" while the game is loading), and the event fires as well. I'm not sure if its working, but it fires :)

by the way, line 402 is the first modifier. (ie "if father's stat is higher than 20" one). funny thing, the game recognizes "type = father" as being on the 404th line, even though its on 403rd...
 
well I fixed the" unknown event type" problem; "factor" was inside the condition bracket heh.

and the lhs was due to the modifiers being outside the MTTH bracket...

anyway, it works now, thanks for your help!