YodaMaster said:
@Toio: please check POM_259008 and SWE_291023. They both use removed POM_259004 as condition in trigger.
POM 259008 is in error, the swedes where on the island as "allies" of eric, they only wanted gotland after eric gave it to DAN in 1449
actually you can still keep the event with only a change in the startdate ,
#(1419-1459) The invasion of Gotland
event = {
id = 259008
trigger = {
OR = {
control = { province = 308 data = SWE }
event = 291023 #SWE: The invasion of Gotland is lauched #2
}
owned = { province = 308 data = -1 }
event = 291021 #SWE: Erik has lost support from Denmark
event = 259004 #POM: Erik inherits Pomerania
}
random = no
country = POM
name = "EVENTNAME259008" #The invasion of Gotland
desc = "EVENTHIST259008"
#-#
In 1449 the Swedish forces in Gotland aided Erik in the war against the Danes. While Erik was successful in defending the island, he realised that there was no way he could win the war. Therefore he agreed to leave Gotland to the Danes for safe passage to Pomerania.
date = { day = 1 month = january year =
1419 1449 }
offset = 10
deathdate = { day = 1 month = january year = 1459 }
action_a = {
name = "ACTIONNAME259008A" #Return control of Gotland to Denmark
command = { type = secedeprovince which = DAN value = 308 } #Gotland
command = { type = removecore which = 308 } #Gotland
command = { type = relation which = DAN value = 100 }
command = { type = relation which = SWE value = -50 }
command = { type = trigger which = 291024 } #SWE: The invasion of Gotland
command = { type = trigger which = 159049 } #DAN: The invasion of Gotland
command = { type = sleepevent which = 291025 } #SWE: Gotland is yet again in Danish hands
}
action_b = {
name = "ACTIONNAME259008B" #The fight against Sweden isn't lost yet
command = { type = war which = SWE } #If triggered by the Swedish event: The invasion of Gotland
command = { type = sleepevent which = 291025 } #SWE: Gotland is yet again in Danish hands
}
}
POM had already left Gotland by 1449
......................................................................
1448
(month unknown)
* King Kristofer dies suddenly. [1.90] [47.60] [48.95] [267.37] [268.84]
* Karl Knutsson is elected King of Sweden. [47.60] [48.95] [327.55]
* King Karl creates the grand coat of arms (stora riksvapnet), with a golden cross on a dark blue background. [159.16]
* Norway also accepts Karl Knutsson as King. [48.95]
* Denmark elects Kristian of Oldenburg as new king. [48.95]
1449
(month unknown)
* Danish King Kristian I takes Gotland. [48.95] [120.73]
* Erik of Pomerania is expelled from Gotland. [120.160]
1450
(month unknown)
* Danish King Kristian I convinces Norway to renounce Karl Knutsson as king. [48.95]
.......................................................................
.....................................................
1451
(month unknown)
* The Swedish and Danish kings agree that whoever should live longer would inherit the other's kingdom. [47.60]
* Danish forces, with support from the Hanseatic League and the Teutonic Knights, attack Sweden. [1.92] [47.60]
1452
(month unknown)
* Danish and Swedish leaders agree that on the death of both kings, a common choice would be made to re-establish the union of both countries. [48.95]
* Karl Knutsson's forces ravage Skåne, in revenge for the previous year's Danish attack. [1.92]