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

Valhallas Call

Yankee Air Pirate
68 Badges
Jun 22, 2008
353
26
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Arsenal of Democracy
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Victoria: Revolutions
  • Europa Universalis IV: Common Sense
  • Imperator: Rome Sign Up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Prison Architect
  • Crusader Kings II: Way of Life
  • Rise of Prussia
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2: A House Divided
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Deus Vult
  • Crusader Kings II
  • Semper Fi
  • Pillars of Eternity
  • Magicka
  • Cities in Motion
  • Heir to the Throne
  • Hearts of Iron III
  • For The Glory
############################
#Nanjing China
############################
event = {
id = 999998
random = no
country = U87

trigger = {
atwar = no
exists = U87
ai = yes
alliance = JAP
}


name = "EVT_311000_NAME"
desc = "EVT_311000_DESC"
picture = "ger_surrender"

action_a = {
name = "ACTIONNAME999998A" # Excellent!
command = { type = addcore which = 2525 }
command = { type = addcore which = 2520 }
command = { type = addcore which = 2518 }
command = { type = addcore which = 2517 }
command = { type = addcore which = 2516 }
command = { type = addcore which = 2522 }
command = { type = addcore which = 2515 }
command = { type = addcore which = 2513 }
command = { type = addcore which = 2508 }
command = { type = addcore which = 2556 }
command = { type = addcore which = 2558 }
command = { type = addcore which = 1965 }
command = { type = addcore which = 1964 }
command = { type = addcore which = 1939 }
command = { type = addcore which = 2574 }
command = { type = addcore which = 2567 }
command = { type = addcore which = 2568 }
command = { type = addcore which = 2570 }
command = { type = addcore which = 2572 }
command = { type = addcore which = 2569 }
command = { type = addcore which = 1941 }
command = { type = addcore which = 1938 }
command = { type = addcore which = 1937 }
command = { type = addcore which = 1936 }
command = { type = addcore which = 1880 }
command = { type = addcore which = 1912 }
command = { type = addcore which = 559 }
command = { type = addcore which = 1914 }
command = { type = addcore which = 2507 }
command = { type = addcore which = 2503 }
command = { type = addcore which = 2550 }
command = { type = addcore which = 2551 }
command = { type = addcore which = 2560 }
command = { type = addcore which = 1993 }
command = { type = addcore which = 2573 }
command = { type = addcore which = 1984 }
command = { type = addcore which = 2559 }
command = { type = addcore which = 2505 }
command = { type = addcore which = 2502 }
command = { type = addcore which = 1996 }
command = { type = addcore which = 1997 }
command = { type = addcore which = 1995 }
command = { type = addcore which = 1910 }
command = { type = addcore which = 1922 }
command = { type = addcore which = 1921 }
command = { type = addcore which = 2561 }
command = { type = addcore which = 1913 }
command = { type = addcore which = 2311 }
command = { type = addcore which = 2000 }
command = { type = trigger which = 999999 }
}
}
############################
#Ceding Provinces
############################
event = {
id = 999999
random = no
country = JAP

trigger = {
event = 999998
}

name = "EVT_311001_NAME"
desc = "EVT_311001_DESC"
picture = "ger_surrender"

action_a = {
name = "ACTIONNAME999999A" # Ok
command = { type = secedeprovince which = U87 value = 2525 }
command = { type = secedeprovince which = U87 value = 2520 }
command = { type = secedeprovince which = U87 value = 2518 }
command = { type = secedeprovince which = U87 value = 2517 }
command = { type = secedeprovince which = U87 value = 2516 }
command = { type = secedeprovince which = U87 value = 2522 }
command = { type = secedeprovince which = U87 value = 2515 }
command = { type = secedeprovince which = U87 value = 2513 }
command = { type = secedeprovince which = U87 value = 2508 }
command = { type = secedeprovince which = U87 value = 2556 }
command = { type = secedeprovince which = U87 value = 2558 }
command = { type = secedeprovince which = U87 value = 1965 }
command = { type = secedeprovince which = U87 value = 1964 }
command = { type = secedeprovince which = U87 value = 1939 }
command = { type = secedeprovince which = U87 value = 2574 }
command = { type = secedeprovince which = U87 value = 2567 }
command = { type = secedeprovince which = U87 value = 2568 }
command = { type = secedeprovince which = U87 value = 2570 }
command = { type = secedeprovince which = U87 value = 2572 }
command = { type = secedeprovince which = U87 value = 2569 }
command = { type = secedeprovince which = U87 value = 1941 }
command = { type = secedeprovince which = U87 value = 1938 }
command = { type = secedeprovince which = U87 value = 1937 }
command = { type = secedeprovince which = U87 value = 1936 }
command = { type = secedeprovince which = U87 value = 1880 }
command = { type = secedeprovince which = U87 value = 1912 }
command = { type = secedeprovince which = U87 value = 559 }
command = { type = secedeprovince which = U87 value = 1914 }
command = { type = secedeprovince which = U87 value = 2507 }
command = { type = secedeprovince which = U87 value = 2503 }
command = { type = secedeprovince which = U87 value = 2550 }
command = { type = secedeprovince which = U87 value = 2551 }
command = { type = secedeprovince which = U87 value = 2560 }
command = { type = secedeprovince which = U87 value = 1993 }
command = { type = secedeprovince which = U87 value = 2573 }
command = { type = secedeprovince which = U87 value = 1984 }
command = { type = secedeprovince which = U87 value = 2559 }
command = { type = secedeprovince which = U87 value = 2505 }
command = { type = secedeprovince which = U87 value = 2502 }
command = { type = secedeprovince which = U87 value = 1996 }
command = { type = secedeprovince which = U87 value = 1997 }
command = { type = secedeprovince which = U87 value = 1995 }
command = { type = secedeprovince which = U87 value = 1910 }
command = { type = secedeprovince which = U87 value = 1922 }
command = { type = secedeprovince which = U87 value = 1921 }
command = { type = secedeprovince which = U87 value = 2561 }
command = { type = secedeprovince which = U87 value = 1913 }
command = { type = secedeprovince which = U87 value = 2311 }
command = { type = secedeprovince which = U87 value = 2000 }
}
}

I can't figure out what I've done wrong, can anyone lend me a hand?
 
The first event has a trigger than will let in only be fired by the AI. Was this your intention?
Agree with Dutchemperor, you should enter a startingdate and an enddate for the event to become active. This will simply be the time when the other triggers can trigger your event.
 
The first event has a trigger than will let in only be fired by the AI. Was this your intention?
Agree with Dutchemperor, you should enter a startingdate and an enddate for the event to become active. This will simply be the time when the other triggers can trigger your event.

Yes that AI trigger is deliberate. I'm playing as Japan with SMEP, but I'm also trying out a new map, so after I conquered China and released a puppet state, it only got about half of the provinces it is supposed to. The partisans are absurdly crazy and it also makes the map an eyesore, so I wanted to transfer all those provinces over to Nanjing China.

For the date, would I just need to do put in a 1936-1963 timeframe with a 1-day offset?
 
The events I used for reference (Kaiserreich Mod) usually have an offset of 5 in these cases, I guess that is to make the events fire almost directly after furfilling the goal.

After you imput the dates the event should work.
 
You could also make some other event (for Jap) trigger your NatChi's one, I mean smth like "Ger have surrendered, we'll maybe need to give up our possessions in China... - yes - trigger 999998 (in this case you won't need to define date) / no - some other event of making Chinese mad of Japan".


But anyway the starting event must have defined date.
 
Yeah it's still not working. I've even added another event in the chain to make it a bit easier, but after I loaded the game and waited a month, it still didn't fire.

############################
#Ceding Provinces
############################
event = {
id = 999997
random = no
country = JAP

trigger = {
atwar = no
exists = U87
}

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

name = "EVT_999997_NAME"
desc = "EVT_999997_DESC"

action_a = {
name = "ACTIONNAME999997A"
command = { type = trigger which = 999998
}
}
############################
#Nanjing Response
############################
event = {
id = 999998
random = no
country = U87

trigger = {
event = 999997
}

name = "EVT_999998_NAME"
desc = "EVT_999998_DESC"

action_a = {
name = "ACTIONNAME999998A" # Excellent!
command = { type = addcore which = 2525 }
command = { type = addcore which = 2520 }
command = { type = addcore which = 2518 }
command = { type = addcore which = 2517 }
command = { type = addcore which = 2516 }
command = { type = addcore which = 2522 }
command = { type = addcore which = 2515 }
command = { type = addcore which = 2513 }
command = { type = addcore which = 2508 }
command = { type = addcore which = 2556 }
command = { type = addcore which = 2558 }
command = { type = addcore which = 1965 }
command = { type = addcore which = 1964 }
command = { type = addcore which = 1939 }
command = { type = addcore which = 2574 }
command = { type = addcore which = 2567 }
command = { type = addcore which = 2568 }
command = { type = addcore which = 2570 }
command = { type = addcore which = 2572 }
command = { type = addcore which = 2569 }
command = { type = addcore which = 1941 }
command = { type = addcore which = 1938 }
command = { type = addcore which = 1937 }
command = { type = addcore which = 1936 }
command = { type = addcore which = 1880 }
command = { type = addcore which = 1912 }
command = { type = addcore which = 559 }
command = { type = addcore which = 1914 }
command = { type = addcore which = 2507 }
command = { type = addcore which = 2503 }
command = { type = addcore which = 2550 }
command = { type = addcore which = 2551 }
command = { type = addcore which = 2560 }
command = { type = addcore which = 1993 }
command = { type = addcore which = 2573 }
command = { type = addcore which = 1984 }
command = { type = addcore which = 2559 }
command = { type = addcore which = 2505 }
command = { type = addcore which = 2502 }
command = { type = addcore which = 1996 }
command = { type = addcore which = 1997 }
command = { type = addcore which = 1995 }
command = { type = addcore which = 1910 }
command = { type = addcore which = 1922 }
command = { type = addcore which = 1921 }
command = { type = addcore which = 2561 }
command = { type = addcore which = 1913 }
command = { type = addcore which = 2311 }
command = { type = addcore which = 2000 }
command = { type = trigger which = 999999 }
}
}
############################
#Ceding Provinces
############################
event = {
id = 999999
random = no
country = JAP

trigger = {
event = 999998
}

name = "EVT_999999_NAME"
desc = "EVT_999999_DESC"

action_a = {
name = "ACTIONNAME999999A" # Ok
command = { type = secedeprovince which = U87 value = 2525 }
command = { type = secedeprovince which = U87 value = 2520 }
command = { type = secedeprovince which = U87 value = 2518 }
command = { type = secedeprovince which = U87 value = 2517 }
command = { type = secedeprovince which = U87 value = 2516 }
command = { type = secedeprovince which = U87 value = 2522 }
command = { type = secedeprovince which = U87 value = 2515 }
command = { type = secedeprovince which = U87 value = 2513 }
command = { type = secedeprovince which = U87 value = 2508 }
command = { type = secedeprovince which = U87 value = 2556 }
command = { type = secedeprovince which = U87 value = 2558 }
command = { type = secedeprovince which = U87 value = 1965 }
command = { type = secedeprovince which = U87 value = 1964 }
command = { type = secedeprovince which = U87 value = 1939 }
command = { type = secedeprovince which = U87 value = 2574 }
command = { type = secedeprovince which = U87 value = 2567 }
command = { type = secedeprovince which = U87 value = 2568 }
command = { type = secedeprovince which = U87 value = 2570 }
command = { type = secedeprovince which = U87 value = 2572 }
command = { type = secedeprovince which = U87 value = 2569 }
command = { type = secedeprovince which = U87 value = 1941 }
command = { type = secedeprovince which = U87 value = 1938 }
command = { type = secedeprovince which = U87 value = 1937 }
command = { type = secedeprovince which = U87 value = 1936 }
command = { type = secedeprovince which = U87 value = 1880 }
command = { type = secedeprovince which = U87 value = 1912 }
command = { type = secedeprovince which = U87 value = 559 }
command = { type = secedeprovince which = U87 value = 1914 }
command = { type = secedeprovince which = U87 value = 2507 }
command = { type = secedeprovince which = U87 value = 2503 }
command = { type = secedeprovince which = U87 value = 2550 }
command = { type = secedeprovince which = U87 value = 2551 }
command = { type = secedeprovince which = U87 value = 2560 }
command = { type = secedeprovince which = U87 value = 1993 }
command = { type = secedeprovince which = U87 value = 2573 }
command = { type = secedeprovince which = U87 value = 1984 }
command = { type = secedeprovince which = U87 value = 2559 }
command = { type = secedeprovince which = U87 value = 2505 }
command = { type = secedeprovince which = U87 value = 2502 }
command = { type = secedeprovince which = U87 value = 1996 }
command = { type = secedeprovince which = U87 value = 1997 }
command = { type = secedeprovince which = U87 value = 1995 }
command = { type = secedeprovince which = U87 value = 1910 }
command = { type = secedeprovince which = U87 value = 1922 }
command = { type = secedeprovince which = U87 value = 1921 }
command = { type = secedeprovince which = U87 value = 2561 }
command = { type = secedeprovince which = U87 value = 1913 }
command = { type = secedeprovince which = U87 value = 2311 }
command = { type = secedeprovince which = U87 value = 2000 }
}
}




Would where the file is placed have any effect? Right now I just have all three of these in a separate document in the DB/events folder. Should I try putting them in Japan's?
 
Would where the file is placed have any effect? Right now I just have all three of these in a separate document in the DB/events folder. Should I try putting them in Japan's?

If you place them in a separate document, make sure you've listed it in the "events.txt" which is located in /db.
 
If you place them in a separate document, make sure you've listed it in the "events.txt" which is located in /db.

I moved it all into Japan.txt and at least now it's giving me an error message and crashing the game, so I might be able to pinpoint what's wrong.

The error message is "unknown lhs in game-event" and it's right at where I have event 999997 listed.

Is it possible those numbers are already in use? Or are they too high?
 
Ha, I misplaced a bracket. That's what the error was. The chain's working now, thanks for your help!