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

cool-toxic

Alexander
26 Badges
Jun 25, 2004
4.957
0
www.eu2ftg.com
  • For The Glory
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Lost Empire - Immortals
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Europa Universalis III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Okay so I got a little problem here.
I'm trying to make an event. It shall fire for a European nation who owns atleast 113 and 117 or 113 and 116 or 115 and 116 or 115 and 117.
Because there is no specific combinatin I cannot define "province = XXX" under "random = no". And I cannot define "country = XXX" either because it could be any European nation.
I thought this would work.. But it seems that it will fire for the human player if any of these combinations are colonized. :( Can anybody help me? Here is the event:

Code:
event = {
     id = 210147
     random = no
     trigger = {
             OR = {
                 NOT = { core = { province = 113 data = -1 } }
                 NOT = { core = { province = 115 data = -1 } }
                 NOT = { core = { province = 116 data = -1 } }
                 NOT = { core = { province = 117 data = -1 } }
             }
             OR = {
                             owned = { province = 113 data = -1 }
                             owned = { province = 115 data = -1 }
             }
             OR = {
                             owned = { province = 116 data = -1 }
                             owned = { province = 117 data = -1 }
             }
             continent = europe
     }
     name = "Claim of Nova Scotia"
     desc = "Congratulations! We have now established a strong colonial base in Nova Scotia."
     style = 2
     date = { day = 1 month = january year = 1337 }
     offset = 3600
     deathdate = { day = 30 month = december year = 1914 }
     action_a = {
             name = "Excellent"
             command = { type = addcore which = 113 }
             command = { type = addcore which = 115 }
             command = { type = addcore which = 116 }
             command = { type = addcore which = 117 }
             command = { type = vp value = 30 }
     }
}

Oh and btw, some time ago I think it was Yoda who made me aware of that event checker but I can't find it anymore so if anybody got that event checker which can check all events linked from a scenario that would be great. :D
 
cool-toxic said:
But it seems that it will fire for the human player if any of these combinations are colonized.
This is how it has been reported to work.


At his hour of the night, I can think of only three options:
_ split your event into four provincial events
_ choose a "master" province and make it a provincial event for this province with the ownership of the other ones as optional
_ make it a random event
 
This is what I had in mind (red is for removal, yellow for addition).
It should fire for a human or AI country which owns 116 and one out of 113, 115, 117.
Code:
event = {
     id = 210147
     random = no
     [COLOR=Yellow]province = 116[/COLOR]
     trigger = {
             OR = {
                 NOT = { core = { province = 113 data = -1 } }
                 NOT = { core = { province = 115 data = -1 } }
                 NOT = { core = { province = 116 data = -1 } }
                 NOT = { core = { province = 117 data = -1 } }
             }
             OR = {
                             owned = { province = 113 data = -1 }
                             owned = { province = 115 data = -1 }
             [COLOR=Red]}[/COLOR]
             [COLOR=Red]OR = {
                             owned = { province = 116 data = -1 }[/COLOR]
                             owned = { province = 117 data = -1 }
             }
             continent = europe
     }
     name = "Claim of Nova Scotia"
     desc = "Congratulations! We have now established a strong colonial base in Nova Scotia."
     style = 2
     date = { day = 1 month = january year = 1337 }
     offset = 3600
     deathdate = { day = 30 month = december year = 1914 }
     action_a = {
             name = "Excellent"
             command = { type = addcore which = 113 }
             command = { type = addcore which = 115 }
             command = { type = addcore which = 116 }
             command = { type = addcore which = 117 }
             command = { type = vp value = 30 }
     }
}
 
cool-toxic said:
Anybody know of any Event checker which actually works? Cause I can't find the one I used before.
EU2Lint is still available. The AGCEEP has been using it for the last several weeks. :)
 
cool-toxic said:
Okay so I got a little problem here.
I'm trying to make an event. It shall fire for a European nation who owns atleast 113 and 117 or 113 and 116 or 115 and 116 or 115 and 117.
Because there is no specific combinatin I cannot define "province = XXX" under "random = no". And I cannot define "country = XXX" either because it could be any European nation.

sounds a bit similar to an event i wrote: http://forum.paradoxplaza.com/forum/showthread.php?t=340342

we came up with:

Code:
OR = {
	AND = {
		owned = { province = A data = -1 }
		owned = { province = B data = -1 }
	}
	AND = {
		owned = { province = A data = -1 }
		owned = { province = C data = -1 }
	}
	AND = {
		owned = { province = A data = -1 }
		owned = { province = D data = -1 }
	}
	AND = {
		owned = { province = B data = -1 }
		owned = { province = C data = -1 }
	}
	AND = {
		owned = { province = B data = -1 }
		owned = { province = D data = -1 }
	}
	AND = {
		owned = { province = C data = -1 }
		owned = { province = D data = -1 }
	}
}

This means that if a nation owns any two of the four provinces A-D the event will fire.
 
YodaMaster said:
But I had to fix some little mistakes and add some features. ;)
Now how did I know you were going to show up here? ;)

@cool-toxic: This is what he's talking about:
YodaMaster said:
1. missing cultures (just as you, I presume: cambodian, ukrainian, han => chihan, and removed "Culture")
2. formalism for flags (with [] and without double quotes) added as possible token
3. modified some ranges for high values used in AGCEEP
4. -1 and -2 as possible values for province_revoltrisk
This is if you choose to download it and run it on your whole mod rather than just using it as an online service. If you do it that way, it will also check your monarch and leader files, and look for missing event texts. :)
 
Are you aware that events such as this already exists for the whole of the new world in Interegnum? They were originally written for Aberration (and are still in that mod) but were full of errors. Corrected versions (with, I note, almost identical text and effects ...) are in Interregnum. It uses the master province approach.

cool-toxic said:
Okay so I got a little problem here.
I'm trying to make an event. It shall fire for a European nation who owns atleast 113 and 117 or 113 and 116 or 115 and 116 or 115 and 117.
Because there is no specific combinatin I cannot define "province = XXX" under "random = no". And I cannot define "country = XXX" either because it could be any European nation.
I thought this would work.. But it seems that it will fire for the human player if any of these combinations are colonized. :( Can anybody help me? Here is the event:

Code:
event = {
     id = 
     random = no
     trigger = {
             OR = {
                 NOT = { core = { province = 113 data = -1 } }
                 NOT = { core = { province = 115 data = -1 } }
                 NOT = { core = { province = 116 data = -1 } }
                 NOT = { core = { province = 117 data = -1 } }
             }
             OR = {
                             owned = { province = 113 data = -1 }
                             owned = { province = 115 data = -1 }
             }
             OR = {
                             owned = { province = 116 data = -1 }
                             owned = { province = 117 data = -1 }
             }
             continent = europe
     }
     name = "Claim of Nova Scotia"
     desc = "Congratulations! We have now established a strong colonial base in Nova Scotia."
     style = 2
     date = { day = 1 month = january year = 1337 }
     offset = 3600
     deathdate = { day = 30 month = december year = 1914 }
     action_a = {
             name = "Excellent"
             command = { type = addcore which = 113 }
             command = { type = addcore which = 115 }
             command = { type = addcore which = 116 }
             command = { type = addcore which = 117 }
             command = { type = vp value = 30 }
     }
}

Oh and btw, some time ago I think it was Yoda who made me aware of that event checker but I can't find it anymore so if anybody got that event checker which can check all events linked from a scenario that would be great. :D
 
Yeah this event is a rework of an event serie that Chefkoch original posted at WATKABAOI. ;) In the top of the file thee are even written:

Code:
######################################################
#                                                    #
#    Generated by the Aberration Colonial Generator  #
#    Code written by Robert Jackson aka Artemis667   #
#                 210001-210749                      #
######################################################

Actually original there were those master provinces, but I didn't knew it was needed due to a bug from Paradox' side I presume.
I removed them while fitting the events to WATKABAOI's areas for AI colonizing reasons.
I hope it's not a problem. I'll ofc write credit to the whole Aberration and Interregnum Team for this serie. :)


Thanks MichaelM for that link I've already downloaded it yesterday, it wasn't the one I used which was in Java if I'm not mistaken actually the first thing I did was to visit your page and see if it was you who created that tool. :)
I'll try to see if I can get it working. :D
 
cool-toxic said:
Could you maybe PM me those chages or something? :)
And btw, it seems the new province IDs aren't allowed either.. That's what you can expect when using such an old utility. :D
Better send you the reworked utility. Just PM me your e-mail.

You're right about provinces... Which is exactly the highest id now? 2020?
 
Last edited:
YodaMaster said:
Better send you the reworked utility. Just PM me your e-mail.
Why don't you just spread the word that it has been reworked and release it officially? The event syntax validator is a really useful utility and news of a renewed one would surely be appreciated among other modders ;).

However, if for some reasons you can't or don't want to publish it, please mail it to me: youwannadie [at] o2 [dot] pl
 
Emperor_krk said:
However, if for some reasons you can't or don't want to publish it, please mail it to me: youwannadie [at] o2 [dot] pl
I will see and inform you. I will have to send you a "finished product".

If you can host it, it will be fine for me.

EDIT: sent!
Don't forget to update Various useful tools and resources thread.
 
Last edited: