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

unmerged(62674)

Captain
Nov 15, 2006
460
0
M4 Emperior: Ok, peeps.

You wan't to attract your game?
Your mother complains angry at your head you should making new events? You need to buy Sundgau when you are playing Strasbourg?



come and request that :cool: !!! ;) ANY user can post events here.


You need only to tell what is the map, what should be did in event, the year and other useful informations.

Enjoy!
 
I would like advice on event coding in general, rather then a specific event.


Such as:

How do I write an event such that the owner of province A declares war on the owner of province B ?
 
That can't be done, unless you only write it so you have specific events for the countires most likely to own province B. This, however, won't work if province B is owned by a nation that you did not make an event for.

The reason for this is the command to declare war upon a nation will only accept if you write "which = TAG" so you can't have a flexible TAG.

btw, this thread should be moved to the modding sub forum as this subforum is only for uploading..
 
thunderhawk said:
I would like advice on event coding in general, rather then a specific event.


Such as:

How do I write an event such that the owner of province A declares war on the owner of province B ?


Sadly, there are a lot of things you cannot do in EU2, that are possible in the mater games like EU3.

There are virtually no trigger conditions or commands that can isolate who owns what, is what countrysize, is what religion etc. Most of those triggers can only check for the country for whom the event occurs, sadly.

So, as cool-toxic has pointed out for the war command, it can only happen to a specific country, so to a province. To get around this you can have a variety of events, if you don't mind all the extra work. I have used this approach before but it's only worth it when you have a specific time-frame and a short list of the likely candidates. In the following events, they all happen for country A.

Event 1 would check to see if country B owns the target province, and if so, this event triggers which has country A DoW country B. The same event sleeps Events 2, 3, 4, 5 and 6

Event 2 would do the same thing for country C owning that province.

Rinse and repeat with events for countries C, D, E, F, and G.

A lot of work to get around the problem of limited coding and trigger conditions.