With the added and expanded commands and triggers list in 1.3: Would it now be possible to create an event that checks if you own a random province
owned = { province = random data = -1 }
Is true if province x is owned by country aaa (if data = -1 then it is for the country receiving the event)
that you do not have a core on and that you own and control for e.g. 30 years and have stab = 0 (0 or higher) and grant you an addcore_claim on the same province (-3)?
control = { province = last_random data = -1 }
Is true if province x is controlled by country aaa (if data = -1 then it is for the country receiving the event)
controlchange = { province = last_random years = 30 }
Is true if province x has been controlled by the current controller for at least y years, m months and d days (not all time fields have to be filled, one is enough).
command = { type = addcore_claim which = last_random }
command = { type = badboy value = 0.5 }
Changes the badboy value with x.
And another event that would check if you have a core on a random province that you do not control for 30 years and remove the core?
In 1.2. the only way possible would have been to create a provincespecific event for each possible province or a random event that would fire only once.
If possible I would like two persistent events that can fire again and again for all countries that have provinces without cores or cores without controlling the province.
persistent = yes
owned = { province = random data = -1 }
Is true if province x is owned by country aaa (if data = -1 then it is for the country receiving the event)
that you do not have a core on and that you own and control for e.g. 30 years and have stab = 0 (0 or higher) and grant you an addcore_claim on the same province (-3)?
control = { province = last_random data = -1 }
Is true if province x is controlled by country aaa (if data = -1 then it is for the country receiving the event)
controlchange = { province = last_random years = 30 }
Is true if province x has been controlled by the current controller for at least y years, m months and d days (not all time fields have to be filled, one is enough).
command = { type = addcore_claim which = last_random }
command = { type = badboy value = 0.5 }
Changes the badboy value with x.
And another event that would check if you have a core on a random province that you do not control for 30 years and remove the core?
In 1.2. the only way possible would have been to create a provincespecific event for each possible province or a random event that would fire only once.
If possible I would like two persistent events that can fire again and again for all countries that have provinces without cores or cores without controlling the province.
persistent = yes
Last edited:
- 1