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