I decided to post this problem in a new thread as it has no relation to my previous problem whatsoever.
I'm trying to create an event that fires when Italy takes control of the province Gar. The event is supposed to result in the activation of two new leaders, a tech becomes available for research, and two units, one land one air, are spawned on the province. There are some other commands I wanted, like the province becoming a core, receiving IC, infrastructure, resources, and an airbase, but I don't really care much about these at the moment.
So far, I've tested this event under more easily met conditions with variations, trimming back the commands and such to make the event increasingly simpler, par my trial-and-error method. The event doesn't fire. I'm pretty sure I've made a mistake here or forgot something, as this is my first experience with events of this type, but I can't narrow the problem down beyond "it simply doesn't work".
Here is the current event code, reset to it's original format prior to the modifications I made for testing purposes.
I'm trying to create an event that fires when Italy takes control of the province Gar. The event is supposed to result in the activation of two new leaders, a tech becomes available for research, and two units, one land one air, are spawned on the province. There are some other commands I wanted, like the province becoming a core, receiving IC, infrastructure, resources, and an airbase, but I don't really care much about these at the moment.
So far, I've tested this event under more easily met conditions with variations, trimming back the commands and such to make the event increasingly simpler, par my trial-and-error method. The event doesn't fire. I'm pretty sure I've made a mistake here or forgot something, as this is my first experience with events of this type, but I can't narrow the problem down beyond "it simply doesn't work".
Here is the current event code, reset to it's original format prior to the modifications I made for testing purposes.
Code:
event = {
id = 2906
random = no
country = ITA
trigger = {
control = {
province = 1448
data = ITA
}
}
name = "EVT_2906_NAME"
desc = "EVT_2906_DESC"
style = 0
picture = "Shambhala"
action_a = {
name = "ACTIONNAME2906A"
command = { type = province_keypoints which = 1448 value = 80 }
command = { type = addcore which = 1448 }
command = { type = trigger which = 8022 }
command = { type = wakeleader which = 6365 }
command = { type = wakeleader which = 6366 }
command = { type = add_corps which = I-3_Peacekeepers value = land when = 6365 where = 1448 }
command = { type = add_division which = 01-Annex value = marine when = 7 where = none }
command = { type = add_division which = 02-Annex value = marine when = 7 where = none }
command = { type = add_division which = 03-Annex value = marine when = 7 where = none }
command = { type = add_division which = 04-Annex value = marine when = 7 where = none }
command = { type = add_division which = 05-Annex value = marine when = 7 where = none }
command = { type = add_division which = 06-Annex value = marine when = 7 where = none }
command = { type = add_division which = 07-Annex value = marine when = 7 where = none }
command = { type = add_division which = 08-Annex value = marine when = 7 where = none }
command = { type = add_division which = 09-Annex value = marine when = 7 where = none }
command = { type = add_corps which = Vimana_5_Vanguard value = air when = 6366 where = 1448 }
command = { type = add_division which = 01-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 02-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 03-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 04-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 05-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 06-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 07-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 08-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 09-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 10-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 11-Vanguard value = multi_role when = 8 where = none }
command = { type = add_division which = 12-Vanguard value = multi_role when = 8 where = none }
command = { type = construct which = air_base where = 1448 value = 5 }
command = { type = construct which = infrastructure where = 1448 value = 7 }
}
}