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

Therion

Field Marshal
21 Badges
Sep 7, 2006
2.640
83
  • Heir to the Throne
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • War of the Roses
  • Victoria 2: A House Divided
  • Victoria 2
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III
  • Deus Vult
  • Darkest Hour
  • Crusader Kings II
Does the core_national trigger also apply for core_claim or core_casusbelli in the same way removecore_national applies for all?

From the following statement:

core_national = { province = x data = aaa }
Is true if province x is a naional core province of country aaa (if data = -1 then it is for the
country receiving the event).

it doesn't seem to be the case..

..which causes problems in events like these:

Code:
#(1471-1477) Treaty of Picquigny - Ahistorical
event = {
	id = 164249 #triggered by FRA_170321 C
	random = no
	country = ENG
	name = "EVENTNAME164248" #Treaty of Picquigny
	desc = "EVENTHIST164249"
	#-#
	action_a = {
		name = "ACTIONNAME164249A" #That was easier than expected...
[COLOR="#008000"]		command = { type = addcore_claim which = 384 } #Caux
		command = { type = addcore_claim which = 413 } #Normandie[/COLOR]
		command = { type = province_revoltrisk which = 384 value = 5 } #Caux
		command = { type = province_revoltrisk which = 413 value = 5 } #Normandie
		command = { type = stability value = 3 }
		command = { type = treasury value = 500 }
		command = { type = vp value = 25 }
	}
}

Code:
#(1471-1820) Normandy is lost forever
event = {
	id = 164252
	trigger = {
[COLOR="#008000"]		core_national = { province = 384 data = -1 } #Caux
		core_national = { province = 413 data = -1 } #Normandie[/COLOR]
		atwar = no
		event = 164249 #ENG: Treaty of Picquigny - Ahistorical
		NOT = {
			event = 164180 #ENG: English Final Victory
			owned = { province = 384 data = -1 } #Caux
			owned = { province = 413 data = -1 } #Normandie
		}
	}
	random = no
	country = ENG
	name = "EVENTNAME164252" #Normandy is lost forever
	desc = "EVENTHIST164252"
	#-#
	date = { day = 12 month = april year = 1471 }
	offset = 360
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME164252A" #Our future lies over the seas!
		command = { type = removecore_national which = 384 } #Caux
		command = { type = removecore_national which = 413 } #Normandie
		command = { type = stability value = -1 }
	}
}

Caux and Normandie will still be core_claims if the second event fires less than 30 years after the first one, so core_national triggers will not do. Same applies to core_claim triggers if the second event fires after more than 30 years.
 
Well, I've just realised this could easily be solved by having both core_claim and core_national as triggers .. still, it would be interesting to know whether core_national applies for any type of core.
 
The core_<coretype> triggers work only for that specific type of core. We did consider making them fire for that type or any stronger type, but either way one of the two operations is going to take two lines instead of one.
 
The trigger has to be set this way then, ya?

Code:
trigger = {
		AND = {
			OR = {
					core_national = { province = 384 data = -1 } #Caux
					core_claim = { province = 384 data = -1 } #Caux	
				}
			OR = {
					core_national = { province = 413 data = -1 } #Normandie
					core_claim = { province = 413 data = -1 } #Normandie
				}
		}
		atwar = no
		event = 164249 #ENG: Treaty of Picquigny - Ahistorical
		NOT = {
			event = 164180 #ENG: English Final Victory
			owned = { province = 384 data = -1 } #Caux
			owned = { province = 413 data = -1 } #Normandie
		}
	}
 
Yeah, that should do it.
 
Can anybody share a working event for gaining a core after 100-120 years of ownership? Thanks in advance!


not sure if I understand you , but cores are automatic on ownership based on the defines file numbers ( these are changeable)

only issue I see is that one a nation gaims these auto cores, they cannot loose them except from an event
 
not sure if I understand you , but cores are automatic on ownership based on the defines file numbers ( these are changeable)

only issue I see is that one a nation gaims these auto cores, they cannot loose them except from an event

If you don´t have a core on a province then you will not gain a core after any amount of time.
*Only* if you already have a claimcore will that core be transformed into a national core after the amount of time set in the defines file.

The only way to gain a core if you don´t have a core on a specific province is currently with an event.
 
If you don´t have a core on a province then you will not gain a core after any amount of time.
*Only* if you already have a claimcore will that core be transformed into a national core after the amount of time set in the defines file.

The only way to gain a core if you don´t have a core on a specific province is currently with an event.

maybe, but the other issue is that once you get a claim core , hold it for a length of time and it is removed by event , then the claim is still valid..i see it time and time again for ENG on maine, SPA on dutch provinces, HAB on dutch provinces etc etc.
In my games, SPA still holds cores until 1800
SWE on estland and livonia .........these cores should have been removed with event, but they remain regardless if land is held or not

also, if you are correct, then its a pointless set of parameters in that you need to wait 30 years for a core which you will never get, far better to make it 10 years and "gain" something from the event
 
maybe, but the other issue is that once you get a claim core , hold it for a length of time and it is removed by event , then the claim is still valid..i see it time and time again for ENG on maine, SPA on dutch provinces, HAB on dutch provinces etc etc.
In my games, SPA still holds cores until 1800
SWE on estland and livonia .........these cores should have been removed with event, but they remain regardless if land is held or not

That is probably bad scripting.
My guess would be that the country either starts the game with a claimcore or gains it by event, holds the province for 30 years, the claimcore is transformed into a national core.
And then the event to remove the core triggers but that only tries to remove a *claimcore* which leaves a national core untouched.

In such events the latter event should use the command to remove a *national* core. That command removes all 3 types of cores (national, claim, casusbelli-cores).

also, if you are correct, then its a pointless set of parameters in that you need to wait 30 years for a core which you will never get, far better to make it 10 years and "gain" something from the event

It is not pointless. The time set in the defines file defines the time you have to own a province *on which you already have a claimcore* bevore the claimcore becomes a national core.
 
Last edited:
Can anybody share a working event for gaining a core after 100-120 years of ownership? Thanks in advance!
I do not know if you are still around but it looks like no one answered your query, so here is a small event, I hope this is what you had in mind.
Code:
event = {
    id = XXX
    trigger = {
        controlchange = { province = x years = 100 }
    }
    random = no
    country = AAA

    name = ""
    desc = ""

    date = { day =  month = year = }
    offset = 
    deathdate = { day = month = year = }

    action = {
        name = ""
        command = { type = addcore_national which = x }
    }
}
 
Last edited: