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

First Lieutenant
Mar 27, 2001
225
0
I had this brilliant idea. To keep the US out of the war until it was realistic for them to enter (1936 scenario) I was going to script an event which would set their warentry back to 0 whenever it reached 30. The event worked fine...once. Then I realized that country specific events only fire once. So, my question is how do I get my event to fire every time US warentry hits 30?

Thanks in advance.
 

unmerged(3999)

Man Of Constant Sorrow
May 22, 2001
1.386
0
Visit site
Not a perfect solution, but you could put it in the random event file and only trigger it for the US.

One problem is that no one seems to know how often, on average, random events are called in HOI. In EU2 it was very roughly once every 300 days; that is close to what I've seen, but the timespan is so much shorter that the average doesn't mean much. The US might not get one at all for two years after WE>30, which defeats the whole purpose.

If you try this you'd also want to really load up the random events with copies of your event, to make sure that if the US does get one it'll probably be yours.
 

unmerged(2368)

First Lieutenant
Mar 27, 2001
225
0
I suppose one possibility is to create 24 copies of the event and space it out so at the very least it will fire off every two months until 1940. That's still not really satisfactory though. The US really shouldn't get involved in the war unless it has war declared upon it.
 

unmerged(12007)

Lt. General
Nov 27, 2002
1.638
0
Visit site
Originally posted by Hans
I had this brilliant idea. To keep the US out of the war until it was realistic for them to enter (1936 scenario) I was going to script an event which would set their warentry back to 0 whenever it reached 30. The event worked fine...once. Then I realized that country specific events only fire once. So, my question is how do I get my event to fire every time US warentry hits 30?

Thanks in advance.

Thats funny because in the normal HoI there is a US Lend Lease event which is commented in the event file as #may happen several times.

This is a US specific random event (random = yes).

I set up similar country specific events in Bolted HoI to represent US/UK aid shipments to Nationalist China. I have never seen them fire off more than once per game either.
 

Ktarn

Ideological Crusader
84 Badges
Apr 15, 2001
1.116
0
  • Europa Universalis III: Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III Complete
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris: Nemesis
  • Europa Universalis IV
  • 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
  • Europa Universalis III
  • Divine Wind
  • Crusader Kings II
  • 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 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
I think a random = yes for a specific country is supposed to be able to trigger more than once, but I havent tried if it actually works.
 

Havard

Dark Power
49 Badges
Jun 28, 2001
15.686
170
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Wealth of Nations
  • 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: Sword of Islam
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • 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
  • Cities: Skylines - After Dark
Originally posted by Hans
I suppose one possibility is to create 24 copies of the event and space it out so at the very least it will fire off every two months until 1940. That's still not really satisfactory though. The US really shouldn't get involved in the war unless it has war declared upon it.
You don't have to space them. What you do is add a trigger on a previous event. Say you have events 9001-9024. For event 9002 you add:

trigger = {
event = 9001
warentry = 30
}


For event 9003:

trigger = {
event = 9002
warentry = 30
}


and so forth. Leave the dates on the full period, and they will fire one after the other once the level is reached.
 

unmerged(13054)

Second Lieutenant
Dec 23, 2002
132
0
Visit site
random = yes

Originally posted by Ktarn
I think a random = yes for a specific country is supposed to be able to trigger more than once, but I havent tried if it actually works.

I'm having a lot of trouble with it. I have random country-specific events built exactly the same as Bolt's; his work (supplies over the hump), mine don't (KMT corruption). I suspect there is some kind of trick to it, but I don't know what it is yet.

I am still working through this one, eliminating possible problems. Posted the code a few days back.

Incidentally, I've added a war event for Austria refusing anschluss, and this will _only_ work if it goes into germany.txt. I tried putting it in another file, and it wouldn't fire. Moved it back to germany.txt: worked fine.

It would sure be nice if paradox released a bit more detail about scripting. There is much that is hidden...

Chuck