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