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

unmerged(24101)

Sergeant
Dec 29, 2003
76
0
Okay, I'm doing an alternate scenario in which Italy starts off as a democracy. A previous event simulates a debate (not unlike the policy debates of Vicky), and the winner affects the outcome of the election.

Basically, I'm trying to use flags. I successfully used them in an earlier event pairing, where one flag would be set if Italy intervenes in the SCW and another would be set if it abstains. Both flag-dependent events work fine.

This time, though, I can't get a single debate outcome event to work, even at the most basic level. This is what the debate event looks like:

Code:
#########################################################################
#  National Debate (no aid given to Reps)
#########################################################################

event = {
	id = 2906
	country = ITA

	name = "National Debate in Italy"
	desc = "Politicians and candidates for Italy's ruling parliament have 
gathered in Milan to debate the country's future.  The prevailing ideology in 
this debate will determine which parties will have a chance at winning the 
most seats in October's elections.  The debate promises to be, at the very 
least, heated.  As Italy showed no interest in the Spanish Civil War, the 
debate is expected to focus mainly on domestic issues."
	style = 0

	trigger = {
		local_flag = ITA_NO_SCW_INTERVENTION
		event = 2905
	}

	date = { day = 6 month = august year = 1936 }

	action_a = {
		ai_chance = 33
		name = "''Italy should focus on building its industrial capacity!''"
		command = { type = local_setflag which = ITA_CAPITALIST }
		command = { type = domestic which = free_market value = 1 }
		command = { type = domestic which = political_left value = -1 }
	}
	action_b = {
		ai_chance = 33
		name = "''Italy should focus on assisting the impoverished!''"
		command = { type = domestic which = free_market value = -1 }
		command = { type = domestic which = political_left value = 1 }
	}
	action_c = {
		ai_chance = 33
		name = "''Italy should focus on becoming a great power!''"
		command = { type = domestic which = political_left value = -1 }
		command = { type = domestic which = defense_lobby value = 1 }
		command = { type = domestic which = interventionism value = 1 }
		command = { type = domestic which = professional_army value = 1 }
	}
}

So far I've coded it so that only the first option sets a flag (I'm working on it incrementally). The following event is supposed to fire as a result of picking option 1:

Code:
event = {
	id = 2909
	country = ITA

	name = "This is a test"
	desc = "Why won't this fire?"

	trigger = {
		event = 2906
		local_flag = ITA_CAPITALIST
	}

	date = { day = 10 month = august year = 1936 }

	action_a = {
		name = "The world may never know!"
	}
}

Simply put, nothing happens. I've gone over the events that do work and have tried to spot any errors I've made, but I've come up empty. If anyone can see any mistake I may have made, please please please point it out. I'd rather not have to trigger an event just to trigger another event down the line, it just looks so sloppy.
 

Schlieffen

Crusty Old Medieval German Baron
107 Badges
Nov 21, 2001
451
0
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Supreme Ruler: Cold War
  • Teleglitch: Die More Edition
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • March of the Eagles
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris: Nemesis
  • Europa Universalis III
  • Cities in Motion 2
  • 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
  • Deus Vult
  • Cities in Motion
  • Europa Universalis IV
  • 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
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Lead and Gold
  • Magicka
Well, looking over the original events (which I assume you're using with a few add-ons), I don't see a "ITA_NO_SCW_INTERVENTION" flag anywhere. I assume you changed that event to add the flag, though, so I can't really think of the problem... Although I'm not sure if triggering an event manually (i.e. using the F12 command) actually creates the flags or not - I'm pretty sure that the manually triggered event doesn't show up in the event log, so it's possible that it (EDIT: "it" being the flag) doesn't "stick" in the files, as it were...
 

unmerged(24101)

Sergeant
Dec 29, 2003
76
0
Schlieffen said:
Well, looking over the original events (which I assume you're using with a few add-ons), I don't see a "ITA_NO_SCW_INTERVENTION" flag anywhere. I assume you changed that event to add the flag, though, so I can't really think of the problem... Although I'm not sure if triggering an event manually (i.e. using the F12 command) actually creates the flags or not - I'm pretty sure that the manually triggered event doesn't show up in the event log, so it's possible that it (EDIT: "it" being the flag) doesn't "stick" in the files, as it were...

Yes, I added in the ITA_NO_SCW_INTERVENTION flag, triggered in the event in which Italy does not send materiel and volunteers to the SCW (in this scenario, it's to help the Republicans incidentally, amongst other changes). As far as I can tell that flag is activated, because the appropriate follow-up event (which I listed above) fires instead of the alternate.

I've looked over the other events posted on this board in which flags are used. I've tried to duplicate them as much as possible, though I'll try and see if it works if I add in more choices, which may cause it to "stick" as you put it.
 

Schlieffen

Crusty Old Medieval German Baron
107 Badges
Nov 21, 2001
451
0
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Supreme Ruler: Cold War
  • Teleglitch: Die More Edition
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines
  • March of the Eagles
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris: Nemesis
  • Europa Universalis III
  • Cities in Motion 2
  • 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
  • Deus Vult
  • Cities in Motion
  • Europa Universalis IV
  • 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
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Lead and Gold
  • Magicka
Well I don't know why this didn't occur to me earlier. Guess I wasn't thinking. :eek:o


Have you checked your save file to see if the flag is there? Just open notepad & do a quick search for your flag - it should be listed in there. :)
 

unmerged(24101)

Sergeant
Dec 29, 2003
76
0
I checked the savegame file before the debate, and the only active flag for Italy was ITA_NO_SCW_INTERVENTION. I saved again after the debate and lo and behold:

Code:
flags = { ITA_CAPITALIST = 1 ITA_NO_SCW_INTERVENTION = 1 ITA_SCW_INTERVENTION = 0 }

For some reason the game opted to activate the other SCW flag. That's probably the source of the problem, unless anyone can think of any other reasons?