• 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.
Well, whatever works for you really :D If you are not sure the event effects are the best possible or there is some problem with the events, then post here to get some discussion about it. If you think you've got a masterpiece and it works fine, then just send it to generalisimo_arg@hotmail.com for inclusion in the next version.

FWIW, in my arrogance I never post events here but rather test them for a couple of days myself before sending them to Generalisimo (but then nobody would thank me for posting 1200+ lines of code which was how long my first event file was :(). Sometimes I make it available on FTP for people who want to get a sneak preview or if it's something I think people should install ASAP.
 
Does anyone have a savegame for Vichy France - HOI 103b, CORE 01beta?

I have the weekend from hell. I have had to install uninstall HOI numerous times as it wont work to great with 104! (Uber Memory leakage )

Running from 36 -39 is now pissing me off as the last couple of times theyve become corrupted.

My appreciated will be limitless.

Well ok maybe not that much!;)
 
I don't think my save files will be compatible with your install :( as I've been testing the naval tech mod.

Try this: go into core_events.txt and place a # in front of the files #event = "scenarios\CORE_campaign\events\Post_War.txt" and #event = "scenarios\CORE_campaign\events\core_Test.txt" ## testing events ## if they exist in your installation. I have good reason to believe this will resolve any CTD or hang (due to memory overflow) problems.
 
Originally posted by Steel
I don't think my save files will be compatible with your install :( as I've been testing the naval tech mod.

Try this: go into core_events.txt and place a # in front of the files #event = "scenarios\CORE_campaign\events\Post_War.txt" and #event = "scenarios\CORE_campaign\events\core_Test.txt" ## testing events ## if they exist in your installation. I have good reason to believe this will resolve any CTD or hang (due to memory overflow) problems.
he doesn't have that... by now... ;)
 
Im having trouble with the inherit cmd

##########################################
# Vichy France defies German Demands to try the French Traitors
##########################################
event = {
id = 432041
random = no
country = GER

# Event triggered by VIC 432035 - War guilt trial
trigger = {
exists = VIC
}

name = "Marshall Petain shows some backbone"
desc = "The Vichy France people demonstrate against any blacklash to their former leaders.

This results in the Vichy regime deciding to placate their people. This infuriates the German government who immediately annex Vichy France"
style = 0

#date = { day = 09 month = December year = 1940 }

action_a = {
name = "OK" #
command = { type = inherit which = VIC }
}
}


This event does trigger and I can select either option. But Vichy remains intact!

Can you help?
 
Re: Im having trouble with the inherit cmd

Originally posted by 2Coats
##########################################
# Vichy France defies German Demands to try the French Traitors
##########################################
event = {
id = 432041
random = no
country = GER

# Event triggered by VIC 432035 - War guilt trial
trigger = {
exists = VIC
}

name = "Marshall Petain shows some backbone"
desc = "The Vichy France people demonstrate against any blacklash to their former leaders.

This results in the Vichy regime deciding to placate their people. This infuriates the German government who immediately annex Vichy France"
style = 0

#date = { day = 09 month = December year = 1940 }

action_a = {
name = "OK" #
command = { type = inherit which = VIC }
}
}


This event does trigger and I can select either option. But Vichy remains intact!

Can you help?

Hi,

I see only one option in your command section... anyway...

If this is triggered from another event you don't need a trigger section.

When the event triggers, do you see anything in the box when you put the mouse over the "Ok" button. It usually list the commands to be executed...

IIRC ( I'm a little rusty... ) the country who is trying to annex must have 2/3 of the annexed country key provinces under it's control... ( Again I'm rusty and this might not be entirely correct... )

Again check if the inherit command shows up when you roll the mouse over the Ok button... If it doesn't show up it's maybe because of my previous statement...

I'lll try to get up to date with all this ASAP ( I'm still at 1.03 ) and I'll try to get back to you after I receive your feedbacks...

Trying to help...

Extro :)
 
Re: Im having trouble with the inherit cmd

Originally posted by 2Coats
##########################################
# Vichy France defies German Demands to try the French Traitors
##########################################
event = {
id = 432041
random = no
country = GER

# Event triggered by VIC 432035 - War guilt trial

name = "Marshall Petain shows some backbone"
desc = "The Vichy France people demonstrate against any blacklash to their former leaders.

This results in the Vichy regime deciding to placate their people. This infuriates the German government who immediately annex Vichy France"
style = 0

action_a = {
name = "OK" #
command = { type = inherit which = VIC }
}
}


This event does trigger and I can select either option. But Vichy remains intact!

Can you help?

according to this event:

#########################################################################
# Anschluss of Austria - Annexation
#########################################################################
event = {
id = 2001
random = no
country = GER
# Triggered by AUS 2100
name = "EVT_2001_NAME"
desc = "EVT_2001_DESC"
style = 0

action_a = {
name = "OK"
command = { type = inherit which = AUS }
command = { type = manpowerpool value = 300 }
command = { type = dissent value = -10 }
command = { type = warentry which = USA value = 2 }
command = { type = warentry which = FRA value = 2 }
command = { type = warentry which = ENG value = 2 }
}
}


the inherit command should work fine (we could see the Anschluss every time, so...)
Also, you could remove the "trigger = { .... }" clause, because if the event is triggered by another event, the trigger conditions are never checked, so you better check that VIC exists in the previous event. ;)
 
Extro, Generalisimo thx.

Ive removed the trigger from the event.

But I was using the sleepevent command in the calling event to sleep the other event! Once I moved these lines to the actual called events the events fire.

However, the inherit command does not annex Vichy France. The event can been seen in the history log at the bottom of the screen.

I have done what I can with these events. They all seem to work bar the 432035 event (which fires). Ill post them in the France trread and see what happens.
 
first try on a new event

Hi guys.

Im trying to put together an event for the capture/escape of the atomic physicist Niels Bohr from Denmark.

I want to make it a 50/50 chance wether he escapes or not.

Ive tried looking at the different event writing help sites around but i cant seem to find anything on this. (maybe im just going blind)

the initial event would be german.
1. You captured niels bohr and presses him into working on the german A- bomb project. Germany gains 2 Nuclear techs.
Triggers. Us event. Groving fear of german A- bomb Project(maybe increase in US neuclear research priority for US Ai to counter the threat, if possible?)

2. Bohr escapes. Damn!!!!
triggers Us. event. Bohr Joins Manhatten project. Gain 3 Nuclear techs.

Hope you guys can help me out.

Thanx in advance

Ghost_dk
 
Re: first try on a new event

Originally posted by Ghost_dk
Hi guys.

Im trying to put together an event for the capture/escape of the atomic physicist Niels Bohr from Denmark.

I want to make it a 50/50 chance wether he escapes or not.

Ive tried looking at the different event writing help sites around but i cant seem to find anything on this. (maybe im just going blind)

the initial event would be german.
1. You captured niels bohr and presses him into working on the german A- bomb project. Germany gains 2 Nuclear techs.
Triggers. Us event. Groving fear of german A- bomb Project(maybe increase in US neuclear research priority for US Ai to counter the threat, if possible?)

2. Bohr escapes. Damn!!!!
triggers Us. event. Bohr Joins Manhatten project. Gain 3 Nuclear techs.

Hope you guys can help me out.

Thanx in advance

Ghost_dk

Hi ghost_dk,

Give me a little bit more info as far as when in time should the event fires.

It may be difficult to have a shift of priority for the USA toward nuclear research. I would suggest maybe giving them 1 Nuclear tech against the 2 received by the German for "Inviting" Bohr to Germany in case option 1 happens.

Also give me which tech you want to give each country in each situation and I'll write the event chain for you...

Extro :)
 
The way gain_tech works you'll need to give them every pre-requisite, so I suggest you research the "reasonable" level and then write the event to grant all nukes up to that level. Preferably keep it pretty low-level as otherwise we will be playing Hearts of Iron: Fallout. The AI has no issues with nuking Paris :eek:

To get a 50/50 split, you will need 2 events. Give both a start date in the appropriate year and add a trigger like random = 5 and another like NOT = { event = xxx} where xxx is the other event. In the event effects, sleep the other event (to make sure it stops being checked so we save system resources). Both events should then be checked by HOI for random triggering, as soon as one triggers the other is slept.
 
Re: Re: first try on a new event

Originally posted by Extro
Hi ghost_dk,

Give me a little bit more info as far as when in time should the event fires.

It may be difficult to have a shift of priority for the USA toward nuclear research. I would suggest maybe giving them 1 Nuclear tech against the 2 received by the German for "Inviting" Bohr to Germany in case option 1 happens.

Also give me which tech you want to give each country in each situation and I'll write the event chain for you...

Extro :)


Hi Extro.

I had a look in the history books and Bohr escaped in teh fall of 1943. that is approx. 3 ½ years after the occupation of Denmark.

I want to make it with an offset of 1100 days after Germany annexes or puppets Denmark.

Because this is pretty late in the war I think the techs gained should be around 2/3 of the way towards the first real bomb.

I know that if you havent got the pre-req. techs you wont gain get the techs. But then i argue that if you dont have those by that time your not really interested in the bomb anyway. It gives an incentive to do the pre-req's. especially for the germans who in my experience have a tendency to focus on the Armor/inf/artilley branches.

hope this helps.

Thanx in advance :)

Ghost
 
Hello,

I'm trying to write an event for Holland. Because this is my first attempt to write an event, about the Dutch Waterline, I have some questions.
First the event:

event = {
id = <ID>
trigger = {
atwar = { country = GER } # Germany must be at war but not with Holland
control = { province = 561 country = HOL} # Arnhem
control = { province = 590 country = HOL} # Groningen
NOT = {
alliance = { country = GER country = HOL } # Holland and Germany musn't be aligned
atwar = { country = GER country = HOL} # Holland and Germany musn't be at war

}
}
random = no
country = HOL
name = "The Dutch Waterline"
desc = "The Dutch used flooded land to protect it's main cities from the Germans. Also fortresses were build at the Afluitdijk, to protect Amsterdam from an attack from the north."
style = 0
date = { day = 1 month = january year = 1938 }
offset = 30
deathdate = { day = 30 month = december year = 1940 }

action a = {
name = "Lets Protect Amsterdam!"
command = {type = infrastructure which = 561 value = -14}
command = {type = land_fort which = 561 value = 1} # Grebbelinie, Arnhem
command = {type = land_fort which = 590 value = 2}# Kornwerderzand, Groningen
command = {type = dissent value = 10 } # farmers don't like flooded land
command = {type = alignment which = facism value = -30}
command = {type = industry which = 561 value = -2}
}
action b = {
name = "Lets keep our neutrality"
command = {type = alignment which = facism value = 0} # don't know how to do this!
command = {type = dissent value = -2 } # the neutrality statement should please the Dutch
}
}

Well, in this little type-screen the event looks like a mess, I hope it comes through a little better!
First the trigger. I want to check if Germany is at war, for example with Poland or with France, but not with Holland. Holland musn't be in the Axis, because if they are, the Waterline is of no use.
Is the trigger correctly scripted this way?
Then the actions. I want two options, option a, the historical one, and option b. If option b is chosen, Holland must stay completely neutral (say, just like Switzerland). But how can I do that?

I hope you can help,

Thanks,
Paul
 
Looks good. To make them centrist try to give them a large value (for example move them all the way to fascism) so you get a known starting point, and then have a second effect that moves them to the desired point. Never tried it but it should work.

BTW, the dissent might be a bit high and the AI is very poor at dealing with it. 10 points translates to losing 10% of IC and 5% of military efficiency so it might actually make it easier for Germany to take Holland (slower, but easier) :eek:
 
comments about the event...

it looks good...
here are some corrections:
Bold: errors
Italic: new things added

event = {
id = <ID>
trigger = {
atwar = GER # Germany must be at war but not with Holland
control = { province = 561 country = HOL} # Arnhem
control = { province = 590 country = HOL} # Groningen
NOT = {
OR = {
alliance = { country = GER country = HOL } # Holland and Germany musn't be aligned
war = { country = GER country = HOL} # Holland and Germany musn't be at war
}
}
}
random = no
country = HOL
name = "The Dutch Waterline"
desc = "The Dutch used flooded land to protect it's main cities from the Germans. Also fortresses were build at the Afluitdijk, to protect Amsterdam from an attack from the north."
style = 0
date = { day = 1 month = january year = 1938 }
offset = 30
deathdate = { day = 30 month = december year = 1940 }

action_a = {
name = "Lets Protect Amsterdam!"
command = {type = infrastructure which = 561 value = -14}
command = {type = land_fort which = 561 value = 1} # Grebbelinie, Arnhem
command = {type = land_fort which = 590 value = 2}# Kornwerderzand, Groningen
command = {type = dissent value = 3 } # farmers don't like flooded land
command = {type = alignment which = fascist value = -30}
command = {type = industry which = 561 value = -2}
command = {type = supplies value = -300 }
}
action_b = {
name = "Lets keep our neutrality"
command = {type = alignment which = fascist value = 100} #
command = {type = dissent value = -2 } # the neutrality statement should please the Dutch
}
}

i just reduced the dissent hits like Steel suggested, because the AI is very bad at handling that... :(
To replace the high dissent hit, i've added supplies to represent the equipment to do that. ;)

cheers.
Fer.
:cool:
 
Last edited:
danish events

Hi gang

i have just finished writing a number of events concerning the german occupation of Denmark.
################
# Events by Ghost_dk #
################

ID COUNTRY EVENT
-------------------------------
1002030 DEN #Create Frikorps Danmark(Danish SS Inf Div.) or NO Volunteers
173000 GER #FriKorps Danmark Created
-------------------------------
173001 GER #Expand Military Airport in Aalborg
1002031 DEN #Germany Expands Airport
-------------------------------
173002 GER #Demand Danish torpedoboats for training and patrol duty
1002032 DEN #Rechnitzer supports giving torpedoboats and is forced to resign by mistrust vote among navy top officers
1002033 DEN #Give in to the Demands/No according to agreement you cannot demand them
173003 GER #Danish government agrees to loan the torpedoboats
173004 GER #Denmark refuses. Attempt to take the whole navy
1002034 DEN #German soldiers are seizing Holmen navybase. Sink the ships/surrender ships.
173005 GER #They sunk their own ships!
173006 GER #We captured them
-------------------------------
173007 GER #We take control of Danish AA guns
1002035 DEN #Hand over AA guns to Germany
-------------------------------
173008 GER #Sieze Danish navy ships/salvage
1002036 DEN #Sink them
-------------------------------
173009 GER #After talks between Niels Bohr and the Germans Bohr is taken into custody and forced to work for the German
#A-bomb program.
322050 USA #After talking with the Germans Niels Bohr flees to the USA and joins the Manhatten project
322051 USA #After Niels Bohr's capture by the germans the USA intensivate their A-bomb project. They fear the germans
#might get it first.
-------------------------------
173010 GER #Germany extends the Atlantic wall to include fortifications in Jutland
-------------------------------

where do i send the entire events?

Generalisimo could you reserve those id's for my events?

Thanks Ghost_dk
 
Re: danish events

Originally posted by Ghost_dk
Hi gang

i have just finished writing a number of events concerning the german occupation of Denmark.
################
# Events by Ghost_dk #
################

ID COUNTRY EVENT
-------------------------------
1002030 DEN #Create Frikorps Danmark(Danish SS Inf Div.) or NO Volunteers
173000 GER #FriKorps Danmark Created
-------------------------------
173001 GER #Expand Military Airport in Aalborg
1002031 DEN #Germany Expands Airport
-------------------------------
173002 GER #Demand Danish torpedoboats for training and patrol duty
1002032 DEN #Rechnitzer supports giving torpedoboats and is forced to resign by mistrust vote among navy top officers
1002033 DEN #Give in to the Demands/No according to agreement you cannot demand them
173003 GER #Danish government agrees to loan the torpedoboats
173004 GER #Denmark refuses. Attempt to take the whole navy
1002034 DEN #German soldiers are seizing Holmen navybase. Sink the ships/surrender ships.
173005 GER #They sunk their own ships!
173006 GER #We captured them
-------------------------------
173007 GER #We take control of Danish AA guns
1002035 DEN #Hand over AA guns to Germany
-------------------------------
173008 GER #Sieze Danish navy ships/salvage
1002036 DEN #Sink them
-------------------------------
173009 GER #After talks between Niels Bohr and the Germans Bohr is taken into custody and forced to work for the German
#A-bomb program.
322050 USA #After talking with the Germans Niels Bohr flees to the USA and joins the Manhatten project
322051 USA #After Niels Bohr's capture by the germans the USA intensivate their A-bomb project. They fear the germans
#might get it first.
-------------------------------
173010 GER #Germany extends the Atlantic wall to include fortifications in Jutland
-------------------------------

where do i send the entire events?

Generalisimo could you reserve those id's for my events?

Thanks Ghost_dk

I thgouth for sure most of the Danish navy chose not to surrender and fled.

BTW: Im absolutely delighted with the Danish puppet event, but shouldn't they actually stay what they were as the Queen/King was still in power?

Also, is there an event where Germany annexes the rest? (Give denmark an Option b to Negotiate with Germany), option c outright no, and war.
 
danisk events...

Great, Bohr event is here... I was going to write it myself, but since you scripted it... :)

One suggestion - don't overestimate his ability to speed up German nuclear programme. Best solution would be giving just one, two techs and change in german AI priorities. If you want, I can help you with AI's.
 
Also... events creating the atlantic wall shouldn't be added. It should be up to the player if you ask me.
 
I think it could be rather silly if Romania gets Debrech from Hungary and then Hungary gets Ruthenia. Was this modified?