• 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.
Jul 9, 2003
1.421
0
Visit site
This:

Code:
##########################
### Exploiting aristocrats
##########################
event = {
 id = 1000000
 random = yes
 invention = no
 name = "EVT_1000000_NAME"
 desc = "EVT_1000000_DESC"
 trigger = {
	NOT = { constitution = { type = proletarian_dictatorship }}
	NOT = { government = { type = communist }}
	NOT = { policy = { type = laissez_faires }}
	NOT = { reform = { type = maximum_workhours level = 24 }}
	NOT = { reform = { type = trade_unions level = none }}
	civilized = yes
	slavery = no
	atwar = no
	}
 style = 0
 picture = organisation
 action_a = {
	name = "Stop the exploiting"
	ai_chance = 60
	command = { type = pop_militancy which = aristocrats value = 1 where = -1 }
	command = { type = pop_dominant_issue which = aristocrats value = slavery where = -3 }
	}
 action_b = {
	name = "Their masters have the right"
	ai_chance = 10
	command = { type = pop_militancy which = labourers value = 1 where = -3 }
	}
 action_c = {
	name = "Try to mediate"
	ai_chance = 30
	command = { type = prestige value = -3 }
	}
}

Loads correctly, but doesn't fire when prompted on the console.

The events.txt file looks like this:

Code:
# Random Events
# event = "db\events\randomevents.txt"
event = "db\events\economic_events.txt"
event = "db\events\political_events.txt"
event = "db\events\campaign_events.txt"
event = "Event workshop\my_r_events.txt"

I fire with 1881 Spain... All triggers are met, and there's no reason for the commands not to work.

Any help?
 
Last edited:

HMS Enterprize

On loan to the C.S Navy
26 Badges
Jun 21, 2004
4.903
57
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • 500k Club
  • Victoria 2
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Iron Cross
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Darkest Hour
NOT = { policy = { type = laissez_faires }}

Isnt it supposed to be laissez_faire?

This might not be the thing but it was the only thing I noticed that might be wrong.
 
Jul 9, 2003
1.421
0
Visit site
Nope, no luck.

Used Spoonist's program, so the "laissez_faires" thing was put by it. Anyway, either with or whithout the final "s", the event loads correctly but does not fire.
 

TheLoneTaco

Soft Taco
29 Badges
Nov 7, 2002
1.717
2
Visit site
  • Rome Gold
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • 200k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Crusader Kings II
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
I know you're saying it loads correctly, but have you tried putting it into an existing events file? I would be more confident about its success... it looks to me like your "Event Workshop" folder might be causing problems.
 

SirCliveWolfe

Misthios
86 Badges
Apr 11, 2005
1.614
8
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Semper Fi
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • 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: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
TheLoneTaco said:
I know you're saying it loads correctly, but have you tried putting it into an existing events file? I would be more confident about its success... it looks to me like your "Event Workshop" folder might be causing problems.

Indeed, I would quickly try putting it into the normal events folder... then if this works you can put it in a sub-folder there;

event = "db\events\EventWorkshop\my_r_events.txt"

I would also take out the space to make it EventWorkshop as some programmes dont like spaces
 
Jul 9, 2003
1.421
0
Visit site
OK, guys... I think I have it:

Code:
NOT = { reform = { type = maximum_workhours level = 24 }}

That "level" word gave the clue... It's not that level, but at least that level. No country would meet the trigger, since all countries have at least a 24 workhour limit (no limit). :wacko:

Put it at 14, and worked.

Many thanks for your answers.