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

Kaoru Nagisa

Second Lieutenant
76 Badges
Jun 3, 2006
162
7
  • Semper Fi
  • Lead and Gold
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • King Arthur II
  • Ship Simulator Extremes
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler: Cold War
  • Teleglitch: Die More Edition
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis III Complete
  • Cities in Motion
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
Hey, there! Kaoru here, and I'm writing a few events for EU2. I've run into a little speed-bump, though - any help would be appreciated. The snaggle goes like this: One of the events I'm writing is a random event that allows the person it happens to, to invest a certain amount of money in order to raise the base tax value of a colony. It's really more like a strong-arm demand by that colony - the alternative to investing the cash is a rebellion!

However, I'm not quite sure how to target colonies, specifically, with event syntax. Havard's Bible mentions the 'which = -4' dealie, for, say, provincemanpower and provincetax, but also notes that it only works for provinces in America with more than 700 people. My own testing corroborates this - an event with a which = -4 command in the syntax will just say that its commandlist is invalid, unless you own American provinces with more'n 700 people.

I've tried punching in a few random integers, but no luck so far. I did note that there's a colonialrevolt command, so I was hoping there was some way to make colony-specific events, as well. Anyhow, that's all!

Thanks for any assistance you c'n render, and tell me if you've got any questions, aye?
~Kaoru

P.S.: For the curious, my event syntax is as such, so far. The description has been copied out of the text configuration file for your perusing.
Code:
event = {
	id = 99000011
	random = yes
	name = "Economic Boom in the Colonies"
	desc = "At times, increased interest in colonial matters or resources could lead to substantial economic investment in far-flung lands - usually for the betterment of the colony in question. Of course, 'substantial' gets as substantial is - and the cost of improvements to oft-times sparse or barren lands could become quite daunting.  And, of course, if the decision was made to shaft the colonists of their economic upsurge, they could become quite uppity..."
	style = 0
	trigger = {
		year = 1450
                atwar = no
                trade = 4
	}

	action_a = {
		name = "Loosen the pursestrings!"
		command = { type = provincetax which = -4 value = 4 }
		command = { type = cash value = -300 }
	}
	action_b = {
		name = "Not a bleedin' chance!"
		command = { type = colonialrevolt which = -4 }
	}
}
And, yeah. I do realize that it's very likely that the revolt will not be in the same province as the change would've been in. I doubt I can get around that, though...
 
You have to use -3 in the action_b command in order to target the same province.

Be aware -4 is only for America. If country doesn't own any province in America, result of the event will be strange (but your trigger will not prevent event from firing).
 
YodaMaster said:
You have to use -3 in the action_b command in order to target the same province.

Be aware -4 is only for America. If country doesn't own any province in America, result of the event will be strange (but your trigger will not prevent event from firing).
-3 works even across different action command trees? Sweet! Thanks for the advice!
But, uhm. I'm afraid that your advice regardin' -4 doesn't hold water. I tested it just now - that exact event above, exact syntax, everything. When I try to trigger it from the command panel, it says, once more, 'commandlist A is invalid' - and if I just change the -4 to a -1, suddenly, the event fires. From the looks of it, events with -4 are prevented from firing by one not having provinces in the Americas.

...Strange, though. You're a big-time modder, I figure you'd be right - I'm using Age of Imperialism, if it matters, with events I've modified and imported from AGCEEP - do either of those mods have...I dunno. Some kind of special configuration file that alters eventcommands? Because if so, that could be responsible for our differing experiences. ...And, it could also be the solution to my problem!
 
Kaoru Nagisa said:
-3 works even across different action command trees? Sweet! Thanks for the advice!
If I remember correctly, it works for the last -1, even if it was in the trigger. But I'm not absolutely certain.

But, uhm. I'm afraid that your advice regardin' -4 doesn't hold water. I tested it just now - that exact event above, exact syntax, everything. When I try to trigger it from the command panel, it says, once more, 'commandlist A is invalid' - and if I just change the -4 to a -1, suddenly, the event fires. From the looks of it, events with -4 are prevented from firing by one not having provinces in the Americas.
I believe that events triggered from the console are checked more strictly than events which fire naturally, so it is possible that that command might normally just be redirected to an available province.

...Strange, though. You're a big-time modder, I figure you'd be right - I'm using Age of Imperialism, if it matters, with events I've modified and imported from AGCEEP - do either of those mods have...I dunno. Some kind of special configuration file that alters eventcommands? Because if so, that could be responsible for our differing experiences. ...And, it could also be the solution to my problem!
No, no such modification is possible.
 
Aw'right.

I'll just have to figure out a way to work around it, then! Maybe re-target it to just generalized random provinces...anyhow. Thanks for the help, Yoda, Michael!