• 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(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
I spotted usefulness of some "notification" events - when you're occupied elsewhere you know when important things happens. So I decided to make a mini-mod that include such notification when there aren't any "normal" ones - it triggers when previous owner doesn't own the province anymore.. Here comes the question:

action_a = {
name = "Malta has fallen"
}

Will this work? I don't want any side-effect, only pure notification.
 

unmerged(49068)

Second Lieutenant
Oct 1, 2005
186
0
Keraunos said:
I spotted usefulness of some "notification" events - when you're occupied elsewhere you know when important things happens. So I decided to make a mini-mod that include such notification when there aren't any "normal" ones - it triggers when previous owner doesn't own the province anymore.. Here comes the question:

action_a = {
name = "Malta has fallen"
}

Will this work? I don't want any side-effect, only pure notification.

Actually, you have to write an empty command line, like this:

action_a = {
name = "Malta has fallen"
command = { }
}
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Panzergutentag said:
Actually, you have to write an empty command line, like this:

action_a = {
name = "Malta has fallen"
command = { }
}

indeed, as panzergutentag said. You can have empty actions but it must contain at least one command line. And that empty command line is as he has given. This will provide an 'empty' event as you wish.

Ayeshteni
 

unmerged(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
Could anyone check if this event is Ok? Will it trigger if UK loses any province in the area?

#########################################################################
# Seelowe
#########################################################################
event = {
id = 2401
random = no
country = ENG

trigger = { # single province on the main isle not controled by UK
NOT = {
OR = {
control = { province = 5 } # Scotland
control = { province = 6 }
control = { province = 7 }
control = { province = 8 }
control = { province = 9 }
control = { province = 10 }
control = { province = 11 } # England and Wales
control = { province = 12 }
control = { province = 13 }
control = { province = 14 }
control = { province = 15 }
control = { province = 17 }
control = { province = 19 }
control = { province = 20 }
control = { province = 21 }
control = { province = 22 }
control = { province = 23 }
}
}
}
name = "Seelowe has started"
desc = "German invasion on the British Isles has begun. UK Home Guard Units are preaparing to meet invaders inland"
style = 0
picture = "american_naval_reinforcments"

action_a = {
name = "Ok"
command = { }
}
}
I just spotted that "trigger" isn't closed - fixed
 
Last edited:

unmerged(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
Another event

#########################################################################
# UK seized by German Forces
#########################################################################
event = {
id = 2402
random = no
country = ENG

trigger = { # single province on the main isle not controled by UK
NOT = {
AND = {
control = { province = 5 } # Scotland
control = { province = 6 }
control = { province = 7 }
control = { province = 8 }
control = { province = 9 }
control = { province = 10 }
control = { province = 11 } # England and Wales
control = { province = 12 }
control = { province = 13 }
control = { province = 14 }
control = { province = 15 }
control = { province = 17 }
control = { province = 19 }
control = { province = 20 }
control = { province = 21 }
control = { province = 22 }
control = { province = 23 }
}
}
}
name = "Seelowe completed, UK seized"
desc = "German invasion on the British Isles was successful"
style = 0
picture = "american_naval_reinforcments"

action_a = {
name = "Ok"
command = { }
}
}
 

unmerged(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
Panzergutentag said:
You need to add a country tag to the control trigger to make it work, something like:

control = { province = 5 data = ENG }

or

control = { province = 5 data = -1 }

Are you sure? Here's the direct copy from ussr.txt
#########################################################################
# Claim Bessarabia
#########################################################################
event = {
id = 2606
random = no
country = SOV

trigger = {
event = 2604 # Eastern Poland has been given to the USSR
OR = {
event = 2013 # Bessarabia recognized as Soviet territory by Germany
event = 2015
}
exists = ROM
NOT = {
OR = {
war = { country = ROM country = SOV }
war = { country = GER country = SOV }
}
}
NOT = {

control = { province = 434 }
control = { province = 435 }
# control = { province = 433 }
control = { province = 230 }
}
}

EDIT: What does the second command do? Random occupier?
 

unmerged(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
I found a way to easily check if the event will fire - aliens! So I started the game and typed alienattack 6. Alien did appered. Event didn't. I don't have idea why, but here it is, hope someone will help

#########################################################################
# Seelowe
#########################################################################
event = {
id = 2401
random = no
country = ENG

trigger = {
NOT = {
OR = {
control = { province = 5 data = ENG} # Scotland
control = { province = 6 data = ENG}
control = { province = 7 data = ENG}
control = { province = 8 data = ENG}
control = { province = 9 data = ENG}
control = { province = 10 data = ENG}
control = { province = 11 data = ENG} # England and Wales
control = { province = 12 data = ENG}
control = { province = 13 data = ENG}
control = { province = 14 data = ENG}
control = { province = 15 data = ENG}
control = { province = 17 data = ENG}
control = { province = 19 data = ENG}
control = { province = 20 data = ENG}
control = { province = 21 data = ENG}
control = { province = 22 data = ENG}
control = { province = 23 data = ENG}
}
}
}

name = "Seelowe has started"
desc = "German invasion on the British Isles has begun. UK Home Guard Units are preaparing to meet invaders inland"
style = 0
picture = "american_naval_reinforcments"

date = { day = 1 month = january year = 1936 }
offset = 30
deathdate = { day = 29 month = december year = 1947 }

action_a = {
name = "Ok"
command = { }
}
}
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
zeekater said:
It'll trigger only if the UK loses ALL those provinces.

Replace the NOT - OR with NOT - AND, that should do the trick.

actually just delete the OR command

trigger = {
NOT = {
control = { province = 5 data = ENG} # Scotland
control = { province = 6 data = ENG}
control = { province = 7 data = ENG}
control = { province = 8 data = ENG}
control = { province = 9 data = ENG}
control = { province = 10 data = ENG}
control = { province = 11 data = ENG} # England and Wales
control = { province = 12 data = ENG}
control = { province = 13 data = ENG}
control = { province = 14 data = ENG}
control = { province = 15 data = ENG}
control = { province = 17 data = ENG}
control = { province = 19 data = ENG}
control = { province = 20 data = ENG}
control = { province = 21 data = ENG}
control = { province = 22 data = ENG}
control = { province = 23 data = ENG}
}
}

AND is the default value, so this trigger above means that if UK does not control province 5 AND province 6 AND...etc.

So if UK loses just one of these provinces, the trigger would be met because UK doesnot control the lot of them.

Ayeshteni
 

unmerged(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
Thanks, silly mistake :eek:o
So now I see that OR is met only if all provinces are lost - great for some "finishing" events (losing entire many-province rich island).
 

unmerged(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
I don't know, it still doesn't work. I tried to do something with Offset, set it to both =100 and =1, to no effect. What is this offset? Number of days it will fire until? Random chance for each day to fire if the conditions are met?


#########################################################################
# Seelowe
#########################################################################
event = {
id = 2401
random = no
country = ENG

trigger = {
NOT = {
control = { province = 5 data = ENG} # Scotland
control = { province = 6 data = ENG}
control = { province = 7 data = ENG}
control = { province = 8 data = ENG}
control = { province = 9 data = ENG}
control = { province = 10 data = ENG}
control = { province = 11 data = ENG} # England and Wales
control = { province = 12 data = ENG}
control = { province = 13 data = ENG}
control = { province = 14 data = ENG}
control = { province = 15 data = ENG}
control = { province = 17 data = ENG}
control = { province = 19 data = ENG}
control = { province = 20 data = ENG}
control = { province = 21 data = ENG}
control = { province = 22 data = ENG}
control = { province = 23 data = ENG}
} #one province not-controled
}

name = "Seelowe has started"
desc = "German invasion on the British Isles has begun. UK Home Guard Units are preaparing to meet invaders inland"
style = 0
picture = "american_naval_reinforcments"

date = { day = 1 month = january year = 1936 }
offset = 100
deathdate = { day = 29 month = december year = 1947 }

action_a = {
name = "Ok"
command = { }
}
}
 
Feb 10, 2005
857
0
www.bitterglory.com
Offset is a number of days when game will check trigger conditions.
So if offset is 1 then it will check every day,
if offset is 100 then it will check it once per 100 days.
 

unmerged(49068)

Second Lieutenant
Oct 1, 2005
186
0
Offset is the time the triggers will be checked again after the first time, so for your event you want an offset very low, at least as low as one.

date = { day = 1 month = january year = 1936 }
offset = 1
deathdate = { day = 29 month = december year = 1947 }

I still think there's needed an "OR = {" somewhere though.
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Doomtrader said:
I also think that
OR = {
should be added under
NOT = {
so it should look like that:

NOT = {
OR = {
blah blah blah
}
}

well with this trigger...

trigger = {
NOT = {
control = { province = 5 data = ENG} # Scotland
control = { province = 6 data = ENG}
control = { province = 7 data = ENG}
control = { province = 8 data = ENG}
control = { province = 9 data = ENG}
control = { province = 10 data = ENG}
control = { province = 11 data = ENG} # England and Wales
control = { province = 12 data = ENG}
control = { province = 13 data = ENG}
control = { province = 14 data = ENG}
control = { province = 15 data = ENG}
control = { province = 17 data = ENG}
control = { province = 19 data = ENG}
control = { province = 20 data = ENG}
control = { province = 21 data = ENG}
control = { province = 22 data = ENG}
control = { province = 23 data = ENG}
} #one province not-controled
}


It will fire when province 5 AND 6 AND 7 AND 8 AND 9 AND 10 AND 11 AND 12 AND 13 AND 14 AND 15 AND 17 AND 19 AND 20 AND 21 AND 22 AND 23 are NOT controlled by Britain (which I believe is what he wishes), if one of those ARE controlled by Britain the event will not trigger.

*blink blink blink*

actually you may be right (in fact you are) :eek:o , This event will not trigger untill ALL provinces are not controlled by Britain

EEK.

You will have to put the OR = { } trigger back in.

Sorry about that, hehe, we are all human. :eek:o

trigger = {
NOT = {
OR = {
control = { province = 5 data = ENG} # Scotland
control = { province = 6 data = ENG}
control = { province = 7 data = ENG}
control = { province = 8 data = ENG}
control = { province = 9 data = ENG}
control = { province = 10 data = ENG}
control = { province = 11 data = ENG} # England and Wales
control = { province = 12 data = ENG}
control = { province = 13 data = ENG}
control = { province = 14 data = ENG}
control = { province = 15 data = ENG}
control = { province = 17 data = ENG}
control = { province = 19 data = ENG}
control = { province = 20 data = ENG}
control = { province = 21 data = ENG}
control = { province = 22 data = ENG}
control = { province = 23 data = ENG}
} #one province not-controled
}
}

Ayeshteni
 

unmerged(51416)

Dominus et Deuculus
Dec 6, 2005
1.131
0
Ok. I'm confused. No matter which way I'll do it it won't fire. I don't know, maybe aliens aren't treated as "normal" nation? I checked for double-ID's, they are correct. also mysterious style = 0 command exists in most events I encountered so it shouldn't be a problem.

Anyway, I decided to post the file I'm trying to modify here. It's basic Lithuanian event file (1 event long) with my added two events. Could someone try to use it in "normal" game? Or search for any bugs? I tried it many times, with many diffrent options - nothing works :(

http://rapidshare.de/files/12776002/lithuania.zip.html