• 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.
Could someone make an event that solves the problem with Vichy France? I mean, I'm playing as Soviet Union, and I've overrun Germany in 1941. I would like to have an event that: gives all Vichy colonies (Africa, Madagascar, Guyana, Djibouti, Chad, Central africa - just in case) to France (along with moving it's capital to Algiers, and maybe some 10 free IC and Algieria as a French core), while Germany captures european Vichy...

Trigger? Let's say: UK controls italian Tripoli, Soviet Union controls... Breslau/Cottubus.

Another thing have anyone made a Soviet "Vichy" France, similar to DDR?
 
Would it be possible to create an event, called 'Military Volunteers' which spawns a military unit in the capital with the following probabilities for the type of unit:
Militia - 75%
Infantry - 20%
Cavalry- 4%
Light Armor - 1%
as a random event for any nation...with a low probability (1% or 0.2% if possible) of happening any day that the country is at war?
 
TheCrimsonMajor said:
If possible, could you write an event that gives japan the option of surrender if they are nuked, which the AI has some chance of taking, to avoid the non-historical conquest of the Japanese Islands at least some of the time?

I'll sit to that tomorrow or Friday. It might be challanging, but I already have an idea or two. Will let you know when it's done, unless someone beats me to it ;)
 
This should work now.

Code:
#############################################
###### Reinforcments 
#############################################
event = {
         id = 9999999
         random = yes
         country = 
         trigger = {
                   atwar = yes
                   random = 1

         }
 
         name = "EVT_9999999_NAME"
         desc = "EVT_9999999_DESC"
         style = 0
          persistent = yes
         picture = "youth_movment"
 
 
           action_a = {
                  name = "ACTIONNAME9999999A"
                  ai_chance = 75
                  command = { type = add_division which = Local Rifles value = militia when = 1 }
           }
           action_b = {
                  name = "ACTIONNAME9999999B"
                  ai_chance = 20
                  command = { type = add_division which = 1st Volunteer Heavy Rifles value = infantry when = 3 }
           }
           action_c = {
                  name = "ACTIONNAME9999999C"
                  ai_chance = 4
                  command = { type = add_division which = New Cavalry Rifles value = cavalry when = 4 }
           }
           action_d = {
                  name = "OMFG ACTIONNAME9999999D"
                  ai_chance = 1
                  command = { type = add_division which = Guards Armor Division value = light_armor when = 4 }
           }

}

and the Event.txt!

Note: This goes in config/event text.txt

Code:
EVT_9999999_NAME;Reinforcments;;;;;;;;;;x
EVT_9999999_DESC;We have lucked out, and got reinforcments for the front;;;;;;;;;;x
ACTIONNAME9999999A;Spawn Militia;;;;;;;;;;x
ACTIONNAME9999999B;Spawn Infantry;;;;;;;;;;x
ACTIONNAME9999999C;Spawn Cavalry;;;;;;;;;;x
OMFG ACTIONNAME9999999D;OMFG Light Armor!;;;;;;;;;;x

I think the problem was the capital Y :rofl:

I apologize dearly for any trouble I caused. Thanks for your help L'Afrique and Screaming-Eagle. I am still new to this, and everything is appreciated.

If it doesn't work, tell me immediately. Sorry again, -Somua53
 
Last edited:
Here is the Austria Event

Code:
#############################################
###### Restoring the Habsburg Monarchy 
#############################################
event = {
         id = 5000000
         random = no
         country = AUS
         trigger = {
                   NOT = { 
                            exists = HUN
                   }

         }
 
         name = "EVT_5000000_NAME"
         desc = "EVT_5000000_DESC"
         style = 0
         picture = "Austria_Alliance"
 
 
           action_a = {
                  name = "ACTIONNAME5000000A"
                  ai_chance = 50
                  command = { type = headofstate which = 23041 }
                  command = { type = addcore which = 385 }
                  command = { type = addcore which = 386 }
                  command = { type = addcore which = 382 }
                  command = { type = addcore which = 383 }
                  command = { type = addcore which = 381 }
                  command = { type = addcore which = 384 }
                  command = { type = addcore which = 387 }
                  command = { type = addcore which = 388 }
                  command = { type = addcore which = 477 }
                  command = { type = addcore which = 490 }
                  command = { type = addcore which = 499 }
                  command = { type = addcore which = 476 }
                  command = { type = addcore which = 470 }
                  command = { type = addcore which = 469 }
                  command = { type = addcore which = 468 }
                  command = { type = addcore which = 471 }
                  command = { type = addcore which = 472 }
                  command = { type = addcore which = 466 }
                  command = { type = addcore which = 467 }
                  command = { type = addcore which = 474 }
                  command = { type = addcore which = 475 }
                  command = { type = addcore which = 478 }
                  command = { type = addcore which = 371 }
                  command = { type = addcore which = 380 }
                  command = { type = addcore which = 489 }
                  command = { type = addcore which = 479 }
                  command = { type = addcore which = 500 }
                  command = { type = addcore which = 454 }
                  command = { type = addcore which = 494 }
                  command = { type = addcore which = 493 }

           }
           action_b = {
                  name = "ACTIONNAME5000000B"
                  ai_chance = 50
                  command = { type = relation which = GER value = -10 }
                  command = { type = dissent value = 3 }
           }

}

The Event Text as well

Code:
EVT_5000000_NAME;Restoring the Habsburg Monarchy;;;;;;;;;;x
EVT_5000000_DESC;Following its Alliance with Germany, Austria now is attempting to reestablish its governing over its old territory from Vienna. ;;;;;;;;;;x
ACTIONNAME5000000A;A New Austrian Empire!;;;;;;;;;;x
ACTIONNAME5000000B;Why?;;;;;;;;;;x

I am doing the work for a day or two, Screaming Eagle apologizes for not being able to help, but he had business to attend to.
 
The Black Roija said:
Your event crashes my game :wacko:
It says the problem is the 'atwar = yes' line... :confused:

Well, I think you need a country tag after the atwar, meaning a remake of the event is needed. If anyone knows the problem, speak up now. If not, I will remake the event later or tommorow morning, or even sooner.

You did put in the Event.txt right?
 
This should work now.

EDIT: I have redone the country = line, which doesn't exist anymore.

Code:
#############################################
###### Reinforcments 
#############################################
event = {
         id = 9999999
         random = yes 
         trigger = {
                   atwar = yes
                   random = 1

         }
 
         name = "EVT_9999999_NAME"
         desc = "EVT_9999999_DESC"
         style = 0
          persistent = yes
         picture = "youth_movment"
 
 
           action_a = {
                  name = "ACTIONNAME9999999A"
                  ai_chance = 75
                  command = { type = add_division which = Local Rifles value = militia when = 1 }
           }
           action_b = {
                  name = "ACTIONNAME9999999B"
                  ai_chance = 20
                  command = { type = add_division which = 1st Volunteer Heavy Rifles value = infantry when = 3 }
           }
           action_c = {
                  name = "ACTIONNAME9999999C"
                  ai_chance = 4
                  command = { type = add_division which = New Cavalry Rifles value = cavalry when = 4 }
           }
           action_d = {
                  name = "ACTIONNAME9999999D"
                  ai_chance = 1
                  command = { type = add_division which = Guards Armor Division value = light_armor when = 4 }
           }

}

and the Event.txt!

Note: This goes in config/event text.txt

Code:
EVT_9999999_NAME;Reinforcments;;;;;;;;;;x
EVT_9999999_DESC;We have lucked out, and got reinforcments for the front;;;;;;;;;;x
ACTIONNAME9999999A;Spawn Militia;;;;;;;;;;x
ACTIONNAME9999999B;Spawn Infantry;;;;;;;;;;x
ACTIONNAME9999999C;Spawn Cavalry;;;;;;;;;;x
OMFG ACTIONNAME9999999D;OMFG Light Armor!;;;;;;;;;;x

I think the problem was the capital Y :rofl:

I apologize dearly for any trouble I caused. Thanks for your help L'Afrique and Screaming-Eagle. I am still new to this, and everything is appreciated.

If it doesn't work, tell me immediately. Sorry again, -Somua53
 
Last edited:
Could you write an event giving all Allied ships (Britain and France) in the Mediterranean to Italy?
 
Screaming-Eagle said:
Well, I think you need a country tag after the atwar, meaning a remake of the event is needed. If anyone knows the problem, speak up now. If not, I will remake the event later or tommorow morning, or even sooner.

You did put in the Event.txt right?

So should I put a country in the 'country = ' line?
or does the space mean any country?

*Edit* tried again, still crashes, at least without anything in the country line
The error is 'unknown lhs' if that means anything to you

but just to make sure I am doing this right
The first part I am putting in db/event/randomevents.txt
and the second in config/event_text.csv
If thats not how it goes then :eek:o my bad
 
Last edited:
The Black Roija said:
So should I put a country in the 'country = ' line?
or does the space mean any country?

*Edit* tried again, still crashes, at least without anything in the country line
The error is 'unknown lhs' if that means anything to you

but just to make sure I am doing this right
The first part I am putting in db/event/randomevents.txt
and the second in config/event_text.csv
If thats not how it goes then :eek:o my bad

Your doing it fine, but group the event.txt in the middle of the other event.txt.

As for the Country Line, delete it and this should work.
 
I have a couple of requests/questions:

1. Could you write an event giving the US cores on all of Canada if
Canada is annexed by a foreign power
or
the US has a Fascist or Socialist government?


2. Is it feasible to do an event chain to check if Certain soviet cities have been captured over the course of the game? If the cities were captured but are in Soviet hands once GER is no longer around then they could be declared "Hero cities" and given an extra victory point. A few real life examples would be Minsk, Sevastopol, Odessa, and Kiev. Also Moscow, Leningrad, and Stalingrad could have a similar event chain for if they are threatened or captured and then liberated.
 
danielshannon said:
I have a couple of requests/questions:

1. Could you write an event giving the US cores on all of Canada if
Canada is annexed by a foreign power
or
the US has a Fascist or Socialist government?


2. Is it feasible to do an event chain to check if Certain soviet cities have been captured over the course of the game? If the cities were captured but are in Soviet hands once GER is no longer around then they could be declared "Hero cities" and given an extra victory point. A few real life examples would be Minsk, Sevastopol, Odessa, and Kiev. Also Moscow, Leningrad, and Stalingrad could have a similar event chain for if they are threatened or captured and then liberated.

I can do the first one, ask Ort Hadox about the second.

Code:
#############################################
###### Canada 
#############################################
event = {
         id = 100000
         random = no
         country = USA
         trigger = {
                            government = fascist
                   }
         }
 
         name = "EVT_100000_NAME"
         desc = "EVT_100000_DESC"
         style = 0
         picture = "outlaw_fascist_parties"
 
         date = { day =  month =  year =  }
         offset = 0
         deathdate = { day =  month = none year =  }
 
           action_a = {
                  name = "ACTIONNAME100000A"
                  command = { type = addcore which = 796 }
                  command = { type = addcore which = 797 }
                  command = { type = addcore which = 795 }
                  command = { type = addcore which = 798 }
                  command = { type = addcore which = 799 }
                  command = { type = addcore which = 566 }
                  command = { type = addcore which = 570 }
                  command = { type = addcore which = 567 }
                  command = { type = addcore which = 568 }
                  command = { type = addcore which = 569 }
                  command = { type = addcore which = 571 }
                  command = { type = addcore which = 572 }
                  command = { type = addcore which = 573 }
                  command = { type = addcore which = 565 }
                  command = { type = addcore which = 584 }
                  command = { type = addcore which = 585 }
                  command = { type = addcore which = 586 }
                  command = { type = addcore which = 587 }
                  command = { type = addcore which = 588 }
                  command = { type = addcore which = 589 }
                  command = { type = addcore which = 564 }
                  command = { type = addcore which = 591 }
                  command = { type = addcore which = 574 }
                  command = { type = addcore which = 581 }
                  command = { type = addcore which = 580 }
                  command = { type = addcore which = 1909 }
                  command = { type = addcore which = 578 }
                  command = { type = addcore which = 579 }
                  command = { type = addcore which = 576 }
                  command = { type = addcore which = 575 }
                  command = { type = addcore which = 541 }
                  command = { type = addcore which = 556 }
                  command = { type = addcore which = 555 }
                  command = { type = addcore which = 554 }
                  command = { type = addcore which = 557 }
                  command = { type = addcore which = 796 }
                  command = { type = addcore which = 558 }
                  command = { type = addcore which = 794 }
                  command = { type = addcore which = 559 }
                  command = { type = addcore which = 552 }
                  command = { type = addcore which = 558 }
                  command = { type = addcore which = 554 }
           }

}

and the Event.txt that goes in config/event text

Code:
EVT_100000_NAME;Canada;;;;;;;;;;x
EVT_100000_DESC;With our Government's change of policy, we now have sent our official claims to Canada.;;;;;;;;;;x
ACTIONNAME100000A;Canada shall be ours!;;;;;;;;;;x
 
Hi, I just had a question. I'm trying to make my own events but the computer keeps giving me crap about date or deathdate. Some stuff about data being unknown. Here's an example of my events.

event = {
id = 300003
random = no
country = HOL

name = "Defense plan with Belgium"
desc = "NL_003"
picture = "defense_policy_initiative"
style = 0

trigger = {
exists = BEL
atwar = no
random = 1
technology = 5100
NOT = {
non_aggression = { country = GER country = HOL }
non_aggression = { country = GER country = BEL }
ispuppet = { country = BEL }
}
}

date = { day = 1 month = january year = 1937 }
offset = 1
deathdate = { day = 1 month = february year = 1940 }

action_a = {
ai_chance = 90
name = "Ask Belgium to adapt to our plans"
command = { type = trigger which 300004 }
}
action_b = {
ai_chance = 10
name = "We shouldn't ask"
command = { type = domestic which = interventionism value = -1 }
}
}

If you know what I could be doing wrong, pease tell me so I can fix it.
 
I am having problems with my event triggers and I thought maybe you could help me.. Basically I am trying to make a chain of events for a custom nation that are triggered when Germany goes to war with poland, which more or less revolves around a race for the capital...but anyways the problem is that the events all trigger at once right at the start of the game instead of being triggered by other events...

Here are the event codes:

#########################################################################
# Danzig or War - WAR!
#########################################################################
event = {
id = 2028
random = no
country = GER

# Triggered by POL 3601

name = "EVT_2028_NAME"
desc = "EVT_2028_DESC"
style = 0
picture = "Poland_Invasion"

action_a = {
name = "OK" # Fortune will grant us victory!
command = { type = war which = POL }
command = { type = trigger which = 2912024 }
}
}
#########################################################################
# Challange to the Germans
#########################################################################
event = {
id = 2912024
random = no
country = U00
# triggered by GER 2028
name = "EVT_2912024_NAME"
desc = "EVT_2912024_DESC"
style = 0
picture = "15th_army"
date = { day = 0 month = january year = 1936 }
offset = 1
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "ACTIONNAME2912024A" # Issue Challange
ai_chance = 99
command = { type = trigger which = 3012024 } #GER
}
action_b = {
name = "ACTIONNAME2912024B" # Don't issue challange.
ai_chance = 1
command = { type = relation which = POL value = 15 }
command = { type = sleepevent which = 3612024 }
}
}
#########################################################################
# Draconain Challange
#########################################################################
event = {
id = 3012024
random = no
country = GER
# triggered by U00 2912024
name = "EVT_3012024_NAME"
desc = "EVT_3012024_DESC"
style = 0
picture = "15th_army"
date = { day = 0 month = january year = 1936 }
offset = 1
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "ACTIONNAME3012024A" # Agree to challange.
ai_chance = 99
command = { type = trigger which = 2812024 } #U00
}
action_b = {
name = "ACTIONNAME3012024B" # Stop wasting our time.
ai_chance = 1
command = { type = relation which = U00 value = -15 }
command = { type = trigger which = 3112024 } #U00
}
}
#########################################################################
# Race for Warsaw
#########################################################################
event = {
id = 2812024
random = no
country = U00
# triggered by GER 3012024
name = "EVT_2812024_NAME"
desc = "EVT_2812024_DESC"
style = 0
picture = "15th_army"
date = { day = 0 month = january year = 1936 }
offset = 1
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "ACTIONNAME2812024A" # Race for Warsaw is on
ai_chance = 99
command = { type = addcore which = 206 }
command = { type = addcore which = 208 }
command = { type = addcore which = 213 }
command = { type = addcore which = 214 }
command = { type = addcore which = 209 }
command = { type = addcore which = 210 }
command = { type = addcore which = 211 }
command = { type = addcore which = 222 }
command = { type = addcore which = 503 }
command = { type = addcore which = 504 }
command = { type = addcore which = 505 }
command = { type = addcore which = 507 }
command = { type = addcore which = 508 }
command = { type = addcore which = 562 }
command = { type = addcore which = 303 }
command = { type = addcore which = 304 }
command = { type = addcore which = 305 }
command = { type = addcore which = 509 }
command = { type = addcore which = 510 }
command = { type = addcore which = 484 }
command = { type = addcore which = 485 }
command = { type = addcore which = 486 }
command = { type = addcore which = 487 }
command = { type = addcore which = 500 }
command = { type = addcore which = 501 }
command = { type = addcore which = 502 }
command = { type = addcore which = 506 }
command = { type = addcore which = 488 }
command = { type = addcore which = 229 }
command = { type = addcore which = 479 }
command = { type = addcore which = 480 }
command = { type = addcore which = 489 }
command = { type = addcore which = 306 }
command = { type = addcore which = 307 }
command = { type = addcore which = 481 }
command = { type = addcore which = 483 }
command = { type = addcore which = 482 }
command = { type = war which = POL }
}
}
#########################################################################
# Germans reject our challange
#########################################################################
event = {
id = 3112024
random = no
country = U00
# triggered by GER 3012024
name = "EVT_3112024_NAME"
desc = "EVT_3112024_DESC"
style = 0
picture = "15th_army"
date = { day = 0 month = january year = 1936 }
offset = 1
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "ACTIONNAME3112024A" # Insults!
ai_chance = 99
command = { type = war which = GER }
command = { type = peace which = ENG }
command = { type = relation which = ENG value = 10 }
command = { type = relation which = FRA value = 15 }
command = { type = relation which = POL value = 20 }
command = { type = sleepevent which = 3612024 }
}
action_b = {
name = "ACTIONNAME3112024B" # Pussies.
ai_chance = 1
command = { type = relation which = POL value = 15 }
command = { type = sleepevent which = 3612024 }
}
}