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

Jomen

Second Lieutenant
71 Badges
Nov 26, 2008
134
6
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis: Rome
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Wealth of Nations
  • Cities in Motion 2
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings Complete
  • Hearts of Iron 4: Arms Against Tyranny
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Prison Architect
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV
  • Magicka
  • Victoria 2
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
Hi everobody and sorry for my english ,

I won't to test something with the on_action files and battle event like getting killed , wounded or caught.

Basically we have this

on_combat_pulse = {
random_events = {
3000 = 0
10 = 242 # Killed
20 = 243 # Wounded
10 = 244 # Maimed
5 = 245 # Serious head injury
20 = 246 # Improves martial education
10 = 247 # Flat improvement to martial skill

10 = 248 # Knowledge boost in capital from battle.
10 = 255 # Marshal: Unnecessary violence
15 = 270 # Gain Brave
15 = 271 # Gain Craven
10 = 272 # Gain Wroth
10 = 273 # Gain Patient

These define what can happen to all characters involve in a battle , each day right ?
I wonder what is the meaning of the "3000 = 0" and what is the uses of the number in it. Below these number there is event which can occur , is that right ? Number before the # is the event id but what represent the number before the = ?
 
Hi everobody and sorry for my english ,

I won't to test something with the on_action files and battle event like getting killed , wounded or caught.

Basically we have this



These define what can happen to all characters involve in a battle , each day right ?
I wonder what is the meaning of the "3000 = 0" and what is the uses of the number in it. Below these number there is event which can occur , is that right ? Number before the # is the event id but what represent the number before the = ?
Number before "=" represents weight - basically a probability of event.
Number after "=" is event number.
"3000 = 0" is a chance of nothing happening.
 
thank you,

Numbers before "=" are probabilities. What is the number to make something happen everytime ? I don't know how to say all i think i will take on example.

If i want for this example , to raise the chance to be killed in combat i have to change "10 = 242 # Killed" et raise "10". But i don't know if i will raise this number too much or not , because i don't know if "10" represent 1% or 2% or anyelse percentage to be killed each day on battle.

How does the calculation of random events occuring works. Is there any elements ?
 
thank you,

Numbers before "=" are probabilities. What is the number to make something happen everytime ? I don't know how to say all i think i will take on example.

If i want for this example , to raise the chance to be killed in combat i have to change "10 = 242 # Killed" et raise "10". But i don't know if i will raise this number too much or not , because i don't know if "10" represent 1% or 2% or anyelse percentage to be killed each day on battle.

How does the calculation of random events occuring works. Is there any elements ?
There are not exactly probability, there are weights. Every time there is a battle event called, engine chooses one of available options based on weights - most of time it`s event 0 aka nothing. So, if these events are called on every day, chance of being killed is weight_of_kill_event/sum_of_all_weights.