Shouldn't reworked SWE_291021 check context? Is there a point for this event if Sweden owns Gotland or Denmark doesn't exist (and maybe check of any event in the sequence just before)?
Reworked twin SWE_291022 / SWE_291023 (including proposed changes):
I'm not sure I understand the proposed changes for Random_338011 and DAN_159049.
338011 was intended to be random while GOT was a existing country. Mentioned provinces in the trigger are the ones that will be targetted but, of course not if owned by POM now. This event shouldn't fire for any other country not owning at least one of the provinces. Why removing all the province conditions in the trigger? IMHO, removal of ownership by GOT is sufficient.
About dates, a random event can't have dates. Replace them with two conditions:
DAN_159049 was intended only for the end of this random event. I don't understand why it trigger 338011 now. Maybe trigger of DAN_159049 should check if Gotland is not owned or simply not controlled by Pomerania instead. In this case, plundering can no longer happen. Maybe DAN_159049 should be a provincespec event for Gotland province and not a Danish one.
I'm not sure now, is there a chance for Pomerania to get Gotland province by event (ceded by Denmark?) as part of the sequence now?
Reworked twin SWE_291022 / SWE_291023 (including proposed changes):
Code:
#(1449-1459) The invasion of Gotland is launched -I-
event = {
id = 291022
trigger = {
atwar = no
ai = yes
event = 291021 #SWE: Erik has lost support from Denmark
NOT = {
owned = { province = 308 data = -1 } #Gotland
owned = { province = 308 data = POM } #Gotland
}
}
random = no
country = SWE
name = "EVENTNAME291022" #The invasion of Gotland is launched
desc = "EVENTHIST291022"
#-#In 1449 the Swedish forces tried to invade Gotland.
date = { day = 1 month = january year = 1449 }
offset = 90
deathdate = { day = 1 month = january year = 1459 }
action_a = {
name = "ACTIONNAME291022A" #Launch the invasion of Gotland
command = { type = stability value = -1 }
command = { type = desertion which = -1 value = 5000 }
command = { type = sleepevent which = 291023 } #SWE: The invasion of Gotland is launched -II-
}
}
#(1449-1459) The invasion of Gotland is launched -II-
event = {
id = 291023
trigger = {
atwar = no
ai = yes
event = 291021 #SWE: Erik has lost support from Denmark
owned = { province = 308 data = POM } #Gotland
}
random = no
country = SWE
name = "EVENTNAME291022" #The invasion of Gotland is launched
desc = "EVENTHIST291022"
#-#In 1449 the Swedish forces tried to invade Gotland.
date = { day = 1 month = january year = 1449 }
offset = 90
deathdate = { day = 1 month = january year = 1459 }
action_a = {
name = "ACTIONNAME291022A" #Launch the invasion of Gotland
command = { type = stability value = -1 }
command = { type = desertion which = -1 value = 5000 }
command = { type = trigger which = 259008 } #POM: The invasion of Gotland
command = { type = sleepevent which = 291022 } #SWE: The invasion of Gotland is launched -I-
}
}
I'm not sure I understand the proposed changes for Random_338011 and DAN_159049.
338011 was intended to be random while GOT was a existing country. Mentioned provinces in the trigger are the ones that will be targetted but, of course not if owned by POM now. This event shouldn't fire for any other country not owning at least one of the provinces. Why removing all the province conditions in the trigger? IMHO, removal of ownership by GOT is sufficient.
About dates, a random event can't have dates. Replace them with two conditions:
Code:
year = 1439
NOT = { year = 1448 }
I'm not sure now, is there a chance for Pomerania to get Gotland province by event (ceded by Denmark?) as part of the sequence now?