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

unity100

Major
45 Badges
Mar 31, 2003
779
58
www.webgeekworld.com
  • Hearts of Iron IV: Cadet
  • Victoria 2
  • Victoria 2: A House Divided
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Rome Gold
  • Crusader Kings II: Reapers Due
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall - Revelations
  • Divine Wind
  • 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: Sword of Islam
  • Commander: Conquest of the Americas
  • Deus Vult
  • Europa Universalis III Complete
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
I have read the event modding article in wiki. it mentions something about setting a chance for a random event to fire, but it doesnt give an example or tell how to do it. can anyone tell me how to set a chance for a random event ?
 

Mr. Capiatlist

Mademoiselle Gothique (she/her/hers)
88 Badges
Dec 4, 2003
19.919
2.842
nhkendall.com
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
Code:
event={

	id = 24065
	random = yes
	invention = no

	picture = fire

  	name= "EVT_24065_NAME"
  	desc= "EVT_24065_DESC"



	action_a = {
		name= "ACTIONNAME24065A"
		  command = { type = resource_perc which = coal value = -33 }
	}
}
According to Vicky Wiki it seems that what you would do is replace:

Code:
	random = yes

with:

Code:
	random = %%
I assume the %% would be a decimal, but it is possible it is 33 for 33%.

Even so, I have never heard of this ability. It was my understanding that random = yes meant the event was random. I also assume that setting the percentage would also require a lot of triggers because unless the percent is very low (like .001%), it will occur so often the game would likely become slow.