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

Second Lieutenant
Apr 1, 2007
160
0
Rezaf said:
Many thanks Germany.

However, the only change I see you made is the empty command tags for the secondary choices, I'll assume the game will simply not display a choice if it has no command attached, which makes sense.

However, what about the seceding of the Azores?
Appearently you haven't changed anything there ...

I can't try it out myself before I get home, but maybe you could kindly point out the important part.

Did you try out the events yourself?

Thanks again.
_____
rezaf

Yes I tried it myself I added Duarte in the minister files.

In the first event I moved the "}" down so i stood just over the a in action b, then when the event triggered I got 2 options.

In Portugals event you only have to write # Triggered by SPA 10003007, and I removed the date, the deathdate and the offset.

In the last event I changed the trigger to: # Triggered by POR 10003008
and I removed the date the deathdate and the offset.

That is the only things I have changed.
 
Last edited:

unmerged(64765)

Second Lieutenant
Jan 21, 2007
152
0
omegasranger said:
I made a mod that I thought would be pretty simple - turns out I missed something. Basically, I wanted two provinces in England to revolt if the UK reached a belligerence level of 5.

They are at 7 belligerence, and the event hasn't fired... Here is the event - as I wrote it ->


#########################################################################
# Welsh radicals revolt
# Event by: Me!
#########################################################################

event = {
id = 3210
random = no
country = ENG

name = "The Welsh revolt"
desc = "Alarmed by growing dissent, and a negative world view, rebels within Welsh provinces have taken arms and openly challenged the current order."
style = 0
picture = "partisan_revolt"

trigger = {
belligerence = {
country = ENG value = 5
}
}

action_a = {
name = "A revolt plagues our land!"
command = { type = revolt which = 15 }
command = { type = revolt which = 16 }
command = { type = dissent value = 15 }
}
}

So what did I miss? The event loads fine - I get no error message - it just did not fire (and I let several game days pass). :confused:

So no one knows what I did wrong? I know I missed something; because the event did not fire as specified - and there were no error/crash messages when the game loaded up.
 
Jun 2, 2007
934
0
Can someone make a event where germany gives 2 of its mot divisions to italy when italy captures alexandria... if possible

and a text like "Hitler is most delighted with our success in Africa, and has sent us a contribution to the campaign"

also a +10 relation
 

PanzerWilly

The Sleeping God
76 Badges
Jun 21, 2006
642
33
  • Europa Universalis IV: Mare Nostrum
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Europa Universalis: Rome
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
I am working on an event chain for western Europe after a Soviet victory over Germany. It is early 1943. Germany has been totally defeated by me (USSR). Since there were no Allied landings in France all of Occupied France and Benelux (Lux is already a puppet) belongs to me now, triggered by the peace event. Vichy still exists. What I am working on is as follows:

1. Soviet pressures Vichy into inheritance. (They have no friends with Germany defeated.

2. Soviet choice - offer to return France to France, make BEL and HOL puppets or keep conquests.

3. If France accepts they regain cosmopolitan France but lose African colonies. Leave the Allies, join the Comintern. But not starting a war with Japan who the allies are currently fighting. BEL and HOL become puppets and BEL loses African possessions. Indonesia becomes a allied Comm state, maybe a SOV puppet.

4. France government becomes Leninist or LWR. France is just allied with Soviet not a puppet.

I can crunch numbers on prov numbers, etc. I just need help in the mechanic of leaving alliance, peacing a war, and then joining another alliance without starting war.
 

unmerged(73276)

Second Lieutenant
Apr 1, 2007
160
0
bkkiof said:
Can someone make a event where germany gives 2 of its mot divisions to italy when italy captures alexandria... if possible

and a text like "Hitler is most delighted with our success in Africa, and has sent us a contribution to the campaign"

also a +10 relation

#########################################################################
# Alexandria captured #
#########################################################################
event = {
id = 702000
random = no
country = ITA

trigger = {
control = { province = 906 data = -1 }
}

date = { day = 1 month = january year = 1936 }
offset = 2
deathdate = { day = 30 month = december year = 1950 }

name = "Alexandria captured"
desc = "Hitler is most delighted with our success in Africa, and has sent us a contribution to the campaign"
style = 0
picture = "german_reinforcment_2"

action_a = {
name = "Great we need all the help we can get"
command = { type = add_division value = motorized }
command = { type = add_division value = motorized }
command = { type = relation which = GER value = 10 }
}

}
 
Jun 2, 2007
934
0
Germany said:
#########################################################################
# Alexandria captured #
#########################################################################
event = {
id = 702000
random = no
country = ITA

trigger = {
control = { province = 906 data = -1 }
}

date = { day = 1 month = january year = 1936 }
offset = 2
deathdate = { day = 30 month = december year = 1950 }

name = "Alexandria captured"
desc = "Hitler is most delighted with our success in Africa, and has sent us a contribution to the campaign"
style = 0
picture = "german_reinforcment_2"

action_a = {
name = "Great we need all the help we can get"
command = { type = add_division value = motorized }
command = { type = add_division value = motorized }
command = { type = relation which = GER value = 10 }
}

}

thanks
 

Quanto

Major
77 Badges
Jul 13, 2006
672
4
www.themercenary.net
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • 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
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Hearts of Iron Anthology
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Lead and Gold
Alright, i have issues with an event I am writing, its based off of the Danzig or war events, but applies between Egypt and Britain. Now, I am getting syntax errors with the last three lines in my "WAR!" event."

Code:
#########################################################################
#  Alexandria or War - WAR!
#########################################################################
event = {
	id = 200032
	random = no
	country = EGY

	# Triggered by ENG 3410

	name = "The UK Refuses!"
	desc = "The United Kingdom has chosen war! It is our time to shine!"
	style = 0

	action_a = {
		name = "Splendid! - Activate the insurgents!"
		command = { type = war which = ENG }
		command = { type = control which = EGY value = 907 }
		command = { type = add_corps which = "Alexandria Liberation Front" value = land when = 512012 where = 907 }
		[B]command = { type = add_division which = "Guerrilas an-1" value = militia when = model = where = art }
		command = { type = add_division which = "Guerrilas an-2" value = militia when = model = where = art }
		command = { type = add_division which = "Guerrilas an-3" value = militia when = model = where = art }[/B]
	}
}

The wiki isn't very clear as to how these commands are correctly used. Whenever the game loads, it tells me that it is an improper use of the "when =" command, and i agree, however the wiki doesn't exactly explain the proper use.

Just as an additional note, what I am doing with these add_division events is to spawn three militias each equipped with an artillery brigade.
 

unmerged(57570)

Sergeant
May 30, 2006
54
0
Please can someone make this event for me :D

For ireland
To fire if the danzig or war event results in war

name "War comes to Europe"
desc "War has once again reached Europe. In these troubled times Eire must decide what course of action to take. The conflict will present opportunities, but may also lead to the possibility of danger for our homeland."

option a - "Join Germany. Heil Hitler! Hoch O'Duffy!"
Alliance with Germany
+1000 supplies
+500 oil
+5 dissent

option b - "Force concessions from Britain in return for neutrality"
non-aggression pact with britain
gain Belfast province
gain portadown province
-5 dissent

option c "This is not our war"
no immediate effect
 
Jul 3, 2007
299
0
what do you have to do

in order to inherit armies in "peaceful annexes" such as the anschluss event for Germany, (i takes over the entire Austrian army), I want to get the CZE and HUN armies for Aus, I need an event for it, any ideas on how to allow for it? :confused:
 

GanguGengu

First Lieutenant
13 Badges
Aug 16, 2006
284
0
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
event = {
id = 3299
random = no
style = 0

name = "Cheat"
desc = "Cheat"
picture = "soviet_strategic_victory"

action_a = {
name = "OK"
command = { type = build_time which = interceptor when = now where = relative value = -25 }
command = { type = build_time which = multi_role when = now where = relative value = -25 }
command = { type = build_time which = escort when = now where = relative value = -25 }
command = { type = build_time which = cas when = now where = relative value = -25 }
command = { type = build_time which = naval_bomber when = now where = relative value = -25 }
command = { type = build_time which = strategic_bomber when = now where = relative value = -25 }
command = { type = build_time which = tactical_bomber when = now where = relative value = -25 }
command = { type = build_time which = transport_plane when = now where = relative value = -25 }
command = { type = build_time which = cag when = now where = relative value = -25 }
command = { type = build_time which = battlecruiser when = now where = relative value = -25 }
command = { type = build_time which = battleship when = now where = relative value = -25 }
command = { type = build_time which = carrier when = now where = relative value = -25 }
command = { type = build_time which = escort_carrier when = now where = relative value = -25 }
command = { type = build_time which = destroyer when = now where = relative value = -25 }
command = { type = build_time which = heavy_cruiser when = now where = relative value = -25 }
command = { type = build_time which = light_cruiser when = now where = relative value = -25 }
command = { type = build_time which = submarine when = now where = relative value = -25 }
command = { type = build_time which = nuclear_submarine when = now where = relative value = -25 }
command = { type = build_time which = transport when = now where = relative value = -25 }
command = { type = convoy_prod_mod which = transports value = 25 }
command = { type = convoy_prod_mod which = escorts value = 25 }
command = { type = build_time which = armor when = now where = relative value = -25 }
command = { type = build_time which = light_armor when = now where = relative value = -25 }
command = { type = build_time which = light_armor_brigade when = now where = relative value = -25 }
command = { type = build_time which = mechanized when = now where = relative value = -25 }
command = { type = build_time which = motorized when = now where = relative value = -25 }
command = { type = build_time which = armored_car when = now where = relative value = -25 }
command = { type = build_time which = heavy_armor when = now where = relative value = -25 }
command = { type = build_time which = super_heavy_armor when = now where = relative value = -25 }
command = { type = build_time which = tank_destroyer when = now where = relative value = -25 }
command = { type = build_time which = sp_artillery when = now where = relative value = -25 }
command = { type = build_time which = sp_rct_artillery when = now where = relative value = -25 }
command = { type = build_time which = flying_bomb when = now where = relative value = -25 }
command = { type = build_time which = flying_rocket when = now where = relative value = -25 }
command = { type = build_time which = infantry when = now where = relative value = -25 }
command = { type = build_time which = cavalry when = now where = relative value = -25 }
command = { type = build_time which = militia when = now where = relative value = -25 }
command = { type = build_time which = garrison when = now where = relative value = -25 }
command = { type = build_time which = police when = now where = relative value = -25 }
command = { type = build_time which = paratrooper when = now where = relative value = -25 }
command = { type = build_time which = bergsjaeger when = now where = relative value = -25 }
command = { type = build_time which = marine when = now where = relative value = -25 }
command = { type = build_time which = engineer when = now where = relative value = -25 }
command = { type = build_time which = mechanized when = now where = relative value = -25 }
command = { type = build_time which = motorized when = now where = relative value = -25 }
command = { type = build_time which = anti_tank when = now where = relative value = -25 }
command = { type = build_time which = anti_air when = now where = relative value = -25 }
command = { type = build_time which = artillery when = now where = relative value = -25 }
command = { type = build_time which = rocket_artillery when = now where = relative value = -25 }
command = { type = build_time which = hq when = now where = relative value = -25 }
}
}
 

Lord Finnish

A man of science and culture.
73 Badges
Sep 4, 2006
12.332
1.958
  • Europa Universalis IV: Third Rome
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Europa Universalis III: Chronicles
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Holy Fury Pre-order
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Wealth of Nations
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
walkerstown said:
Please can someone make this event for me :D

Code:
####################################################
#  War in Europe!!!
####################################################
event = {
	id = 48900
	country = IRE
	trigger = {
		event = 2028 }

	name = "War comes to Europe"
	desc = "War has once again reached Europe. In these troubled times Eire must decide what course of action to take. The conflict will present opportunities, but may also lead to the possibility of danger for our homeland"
	picture = "great_war_manifestion"
	style = 0

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

	action_a = {
		name = "Join Germany! Heil Hitler! Hoch O'Duffy!"
		ai_chance = 5
		command = { type = alliance which = GER }
		command = { type = dissent value = 5 }
		command = { type = supplies value = 5000 }
		command = { type = oilpool value = 500 }
	}
	action_a = {
		name = "Force concessions from Britain in return for neutrality"
		ai_chance = 5
		command = { type = alliance which = GER }
		command = { type = dissent value = -5 }
		command = { type = addcore which = 28 }
		command = { type = addcore which = 29 }
		command = { type = trigger which = 48901 }
		command = { type = non_aggression which = IRE where = ENG }
	}
	action_c = {
		name = "This is not our war"
		ai_chance = 90
		command = {  }
	}
}

####################################################
#  Irish want north Ireland
####################################################
event = {
	id = 48901
	country = ENG


	name = "War comes to Europe - Ireland demands North Ireland"
	desc = "War has once again reached Europe. In these troubled times Eire must decide what course of action to take. The conflict will present opportunities, but may also lead to the possibility of danger for our homeland"
	picture = "great_war_manifestion"
	style = 0


	action_a = {
		name = "Ok"
		command = { type = secedeprovince which = IRE value = 28 }
		command = { type = secedeprovince which = IRE value = 29 }
	}
}

Inform me with PM if you encounter problems.

I set AI-chances so 90% chance Ireland will select C, so it should not ruin your non-Irish games while giving chance for ahistorical decisions of IRE:)
 

GanguGengu

First Lieutenant
13 Badges
Aug 16, 2006
284
0
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
J the STUD said:
in order to inherit armies in "peaceful annexes" such as the anschluss event for Germany, (i takes over the entire Austrian army), I want to get the CZE and HUN armies for Aus, I need an event for it, any ideas on how to allow for it? :confused:
Im not sure but 'command = { type = inherit which = X }' could work
 

hito1

Lt. General
45 Badges
Jul 7, 2006
1.362
2
  • Victoria 2: A House Divided
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Victoria 2
  • Magicka
  • Victoria 2: Heart of Darkness
  • 200k Club
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Achtung Panzer
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Crusader Kings II
  • Darkest Hour
  • Deus Vult
  • East India Company Collection
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Hearts of Iron Anthology
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Lead and Gold
  • Leviathan: Warships
Hi, I asked in another thread for an event that would periodically reduce belligerence of australia and brazil, Kibbles promptly replied with this event:

Code:
event = { 
id = 1231231
country = AST
pesistent = yes
random = no
	 
trigger = { belligerence = { country = AST value = 10 }


name = "Belligerence"
desc = "..."
style = 0

date = { day = 1 month = january year = 1936 }
offset = 100
deathdate = { day = 30 month = december year = 1954 }

action_a = {
	name = "We're not bad guys! Really!
	command = { type = belligerence value = -5 }
	}
}

event = { 
id = 1231232
country = BRA
pesistent = yes
random = no
	 
trigger = { belligerence = { country = BRA value = 10 }

name = "Belligerence"
desc = "..."
style = 0

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

action_a = {
	name = "We're not bad guys! Really!
	command = { type = belligerence value = -10 }
	}
}

It crashes the game, though, saying an uknown trigger = Belligerence was found. I looked around and is the same trigger used for some USA events, can someone help me?

Thank you very much.
 

Gen. Skobelev

Werewolf therapist
81 Badges
May 9, 2005
3.387
242
  • Victoria: Revolutions
There are at least missing brackets. The trigger is not closed properly
Code:
event = { 
id = 1231231
country = AST
pesistent = yes
random = no
	 
trigger = { 
belligerence = { country = AST value = 10 }
          [COLOR=YellowGreen]}[/COLOR]


name = "Belligerence"
desc = "..."
style = 0

date = { day = 1 month = january year = 1936 }
offset = 100
deathdate = { day = 30 month = december year = 1954 }

action_a = {
	name = "We're not bad guys! Really!
	command = { type = belligerence value = -5 }
	}
}

event = { 
id = 1231232
country = BRA
pesistent = yes
random = no
	 
trigger = { belligerence = { country = BRA value = 10 }
          [COLOR=YellowGreen]}[/COLOR]

name = "Belligerence"
desc = "..."
style = 0

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

action_a = {
	name = "We're not bad guys! Really!
	command = { type = belligerence value = -10 }
	}
}
Add those green-coloured brackets and see if it works now.