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

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
I tried to fire an event for a specific, computer controlled province, even though itheoretically i should have been left alone, I got a blank window that was similar to the one used by thge game for events, since the event I tried to fire was scripted by me I don't think that it would be acceptable for me to post this in the support forum, as i believe that most likely, paradox would choose not to take responsibility for the errors of player creations, so can anyone tell me what to do?

if it can help any, here is the code, I modified it just begore this post:

Code:
province_event = {

	id = 600007

	trigger = {
		ai = yes #was originally ai = no
		random_owned = { revolt_risk = 4000 }
	}

	mean_time_to_happen = {
		months = 48000
	}

	title = "Spontaneous revolt"
	desc = "Sir, the people of $PROVINCENAME$ are bored with life, and have decided to entertain themselves by revolting."

	option = {
		name "What? Who in their right thinks of revolution as fun?" #forgot to add minds
		random_owned = {
			limit = { is_capital = no )
			random_list = {
				50 = { create_revolt = 10 }

				25 = { 
					create_revolt = 5
					create_revolt = 2
				}
				25 = { create_revolt = 5 }
			}
		}
	}
}
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
woah!!!!!!!:eek: I never noticed that. it surprised me so much that i almost went WTF? to the power of 10!:rofl::rofl::rofl::rofl:

(Iknow thats impossible, but i never really knew about that)
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
unfortunately, it didn't work, note that this is what is happening:

attachment.php


:eek: I didn't know rome screen shots would be so large

Note: I was playing as lusitani(or w/e it's called) to test

Edit: yes, i did use console to fire it, I didn't want to deal with it's effects

Edit2: the fact that I cheated to such an extent should not be relevant
 

Rinmaru

First Lieutenant
76 Badges
Jun 24, 2004
206
153
  • Europa Universalis IV: Mare Nostrum
  • Warlock 2: The Exiled
  • 500k Club
  • Europa Universalis III: Collection
  • 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
  • Crusader Kings II: Conclave
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Knights of Honor
  • Europa Universalis IV: Third Rome
  • Stellaris: Necroids
  • Europa Universalis IV
  • 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
  • Deus Vult
  • East India Company Collection
  • Europa Universalis III
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Victoria 2
Code:
province_event = {

	id = 600007

	trigger = {
		ai = yes #was originally ai = no
		random_owned = { revolt_risk = 4000 }
	}

	mean_time_to_happen = {
		months = 48000
	}

	title = "Spontaneous revolt"
	desc = "Sir, the people of $PROVINCENAME$ are bored with life, and have decided to entertain themselves by revolting."

	option = {
		name "What? Who in their right thinks of revolution as fun?" #forgot to add minds
		random_owned = {
			limit = { is_capital = no )
			random_list = {
				50 = { create_revolt = 10 }

				25 = { 
					create_revolt = 5
					create_revolt = 2
				}
				25 = { create_revolt = 5 }
			}
		}
	}
}
[B][COLOR="Red"]}[/COLOR][/B]
 

Rinmaru

First Lieutenant
76 Badges
Jun 24, 2004
206
153
  • Europa Universalis IV: Mare Nostrum
  • Warlock 2: The Exiled
  • 500k Club
  • Europa Universalis III: Collection
  • 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
  • Crusader Kings II: Conclave
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Knights of Honor
  • Europa Universalis IV: Third Rome
  • Stellaris: Necroids
  • Europa Universalis IV
  • 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
  • Deus Vult
  • East India Company Collection
  • Europa Universalis III
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Victoria 2
Check all your brackets.
 

Cheexsta

Veni, vidi, vici
60 Badges
Dec 22, 2005
2.894
59
  • Europa Universalis IV: Rights of Man
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Victoria 2: Heart of Darkness
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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 III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Victoria 2
Hmm. Only other things I can think of would be odd triggers (IIRC random_province only works as an effect, not a trigger; use any_province instead), or maybe the option name is too long.

Also, check to see that the game is loading your events properly. Open up logs\setup.log and do a search for the filename your event is located in. It won't tell you which events are loaded, but it will tell you how many events are in the file that it recognises, so compare this to how many events are in the file. It could be that the event loaded prior to this one wasn't loaded properly, making this one mess up as well.
 

Rinmaru

First Lieutenant
76 Badges
Jun 24, 2004
206
153
  • Europa Universalis IV: Mare Nostrum
  • Warlock 2: The Exiled
  • 500k Club
  • Europa Universalis III: Collection
  • 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
  • Crusader Kings II: Conclave
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Knights of Honor
  • Europa Universalis IV: Third Rome
  • Stellaris: Necroids
  • Europa Universalis IV
  • 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
  • Deus Vult
  • East India Company Collection
  • Europa Universalis III
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Victoria 2
He forgot a bracket at the end Cheex. Events are useless if you forget to close it up properly.
 

Cheexsta

Veni, vidi, vici
60 Badges
Dec 22, 2005
2.894
59
  • Europa Universalis IV: Rights of Man
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Victoria 2: Heart of Darkness
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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 III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Victoria 2
He forgot a bracket at the end Cheex. Events are useless if you forget to close it up properly.
Ahh, you're right, he is missing a bracket, but you've placed it in the wrong spot. This is the line with the problem:

Code:
			limit = { is_capital = no [B][COLOR="Red"])[/color][/b]

The parenthesis should be a curly bracket instead.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
I did notice that at the time IIRC, but I forgot to correct it. Perhaps another matter was brought to my attention at the time. idk:confused:

Edit: what i'm trying to accomplish is the creation of an event which spawns a revolt. What I want is for it to occur for the ai via firing by console only. As much of a cheat as this is(you would be pretty surprised to see the others in the file), at least part of me is interested in seeing how the ai deals with revolts and/or barbarians.
 
Last edited:

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
i just made the correction in the line with limit. I will try changing the triggers before I test it.
 

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
i did not work. Mind you the event fired properly, it simply fired for me without having an effect against the province i tested it on, #38, aulerci, which is still independent from my country in my game.

Edit: in case there is any sort of misunderstanding about what happened that time, the event fired like it probably should have. Normally, when I put my mouse over the option, It displays the effects. When I did it this time, however, the effects did not display. When another event was fired through the console(this time for me), the effects were displayed, so I think the effects just did not fire. In in my HOI2 games where I used events via console, all events I fired popped up on my screen, so I think that might be normal.
 
Last edited: