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

Fenrir 1576

Captain
11 Badges
Dec 28, 2010
325
0
  • Darkest Hour
  • Europa Universalis III
  • Divine Wind
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Semper Fi
  • Victoria 2: A House Divided
  • Victoria 2
  • 500k Club
Well, I'm trying to work on a little bit of an event chain for the SU, in which I give them a bunch of IC before the war in exchange for curbstomping their aviation capabilities in the beginning of the game, but I've hit a snag. It wont let me activate the decisions that actually give the player the IC in the little panel, and I've manually activated the events before so I know they would work, but they just always say that I'm unable to use them no matter how long I wait or what I do. If anyone would be willing to look over the first few events and point out any errors, I'd appreciate it very much.
Code:
####################################
# 5 year industrialization plan
####################################

event = {
	id = 879693
	random = no
	save_date = yes
	country = SOV

	decision = { year = 1936 }

	decision_trigger = { money = 150 }

	trigger = { money = 150 }

	name = "The Five Year Plan"
	desc = "Stalin's new plan for industrializing the country will take some time, but the rewards would be astronomical."
	style = 0

	date = { day = 2 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action = { 
	name = "Let's begin."
	command = { type = free_supplies value = -15 }
	command = { type = resource which = money value = -2500 }
	}
}
event = {
	id = 983260
	random = no
	country = SOV
	
	decision = { year = 1937 }

	decision_trigger = { event = { id = 879693 days = 365 } }

	trigger = { year = 1937 }

	name = "The Five Year Plan, results."
	desc = "With the countries funding of the project in full swing, we are starting to see results across the industrial sector."
	style = 0

	date = { day = 2 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action = {
	name = "Awesometabular, dawg."
	command = { type = construct which = ic where = -4 value = 5 }
	command = { type = construct which = ic where = -4 value = 3 }
	}
}
event = {
	id = 832609
	random = no
	country = SOV

	decision = { year = 1938 }
	
	decision_trigger = { event = { id = 879693 days = 730 } }

	trigger = { year = 1938 }

	name = "More benefits"
	desc = "With the countries funding of the project in full swing, we are starting to see results across the industrial sector."
	style = 0

	date = { day = 2 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action = {
	name = "More benefits"
	command = { type = construct which = ic where = -4 value = 4 }
	command = { type = construct which = ic where = -4 value = 3 }
	command = { type = construct which = ic where = -4 value = 3 }
	}
}
 
I shall go through the events line by line.
...
Code:
####################################
# 5 year industrialization plan
####################################

event = {
	id = 879693 # Funnily enough, low number event id's are generally unused.
	random = no
	save_date = yes
        persistent =  no # Add this for safety's sake. The game engine does different weird things with persistent missing vs yes vs no.
	country = SOV

	decision = { year = 1936 }

	decision_trigger = { money = 150 }

	trigger = { money = 150 }

	name = "The Five Year Plan"
	desc = "Stalin's new plan for industrializing the country will take some time, but the rewards would be astronomical."
	style = 2 #Should be 2!!!

	date = { day = 2 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action = { 
	name = "Let's begin."
	command = { type = free_supplies value = -15 }
	command = { type = money value = -150 } #Why ask for 150 money minimum if you are going to do a percentage?
	}
}

event = {
	id = 983260
	random = no
	country = SOV
	
	decision = { year = 1937 }

	decision_trigger = { event = { id = 879693 days = 360 } } # There aren't 365 days ingame actually.

	trigger = { year = 1937 }

	name = "The Five Year Plan, results."
	desc = "With the countries funding of the project in full swing, we are starting to see results across the industrial sector."
	style = 2 #Should be 2!!!

	date = { day = 2 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action = {
	name = "Awesome"
	command = { type = construct which = ic where = -4 value = 5 } # I think -4 might be incorrect, documentation errors aren't uncommon. If it is incorrect, the decision is failing since there is no valid command in this action, hence no valid actions.
	command = { type = construct which = ic where = -4 value = 3 }
	}
}
event = {
	id = 832609
	random = no
	country = SOV

	decision = { year = 1938 }
	
	decision_trigger = { event = { id = 879693 days = 730 } }

	trigger = { year = 1938 }

	name = "More benefits"
	desc = "With the countries funding of the project in full swing, we are starting to see results across the industrial sector."
	style = 0

	date = { day = 2 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action = {
	name = "More benefits"
	command = { type = construct which = ic where = -4 value = 4 }
	command = { type = construct which = ic where = -4 value = 3 }
	command = { type = construct which = ic where = -4 value = 3 }
	}
}
 
Last edited:
Well thanks for looking at it, and I thought that -4 seemed odd, but it said so first in the modding documentation files, and then I tried -1 because that always means a random province, but it still didn't work at that point, so I don't think it's that, especially since I manually activated the event and it seemed to work alright with -4. I did the 150 money thing to make it more likely that the AI would get the event quickly, since I was fairly sure the AI didn't stockpile a whole ton of money, plus it'll just send the person into debt for a week or two, which isn't that much considering the benefits.