• 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 }
			}
		}
	}
}
 
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)
 
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
 
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]
 
Check all your brackets.
 
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.
 
He forgot a bracket at the end Cheex. Events are useless if you forget to close it up properly.
 
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.
 
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:
i just made the correction in the line with limit. I will try changing the triggers before I test it.
 
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: