• 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.
May 21, 2005
686
0
Yet again the axis AI navies have been wiped out too early for a challenge.

I would like to make an event that each day checks to see if Brest (province #32) is German controlled, and if so there is a 1% chance that 2 submarine flotillas at max strength and org will appear there, of the highest level researched by the Germans (that would be either model ill_div_GER_28_3 or ill_div_GER_28_4 I think). It should start in the spring of 1941. And please tell me exactly where to paste it.

If someone can do that then I will write a similar one for Bordeaux, for a single level 4 flotilla.

If anyone wants to do this, brilliant :) and thank you very much!
 

JRShield

Generalfeldmarschall
90 Badges
Sep 1, 2005
753
0
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Victoria 3 Sign Up
  • Divine Wind
  • 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
  • Europa Universalis III: Chronicles
  • Cities in Motion 2
  • Europa Universalis IV
  • 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
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
Well, never made any event that looks like it, but in theory it should be possible. If there is an vanilla event that looks like it, you can start from there ofcourse.
 
May 21, 2005
686
0
Well at the moment http://hoi2.nsen.ch/wiki/index.php/Main_Page
which would also give me some help is down.

By looking at various things I've come up with this:

event = {
id = 8000000
random = 1 [I WANT THIS TO BE 1% CHANCE EACH DAY]
offset = 1
persistent = yes
country = GER

name = "Uboote in Brest"
desc = "a 1% chance each day that 2 u-boat flotillas will appear in Brest"
style = 0

date = { day = 21 month = march year = 1941 }

AND = {
control = { province = 32 data = GER } #Brest controlled by Germany
}

command = { type = add_fleet which = "Uboote in Brest" when = 1 where = 32 }

# Province #32 is Brest

command = { type = add_division which = value = submarine when = 0 }
command = { type = add_division which = value = submarine when = 0 } [WILL THIS PUT 2 OF THE MOST MODERN U-BOAT FLOTILLAS INTO PORT IN PROVINCE 32? I THINK THIS BIT NEEDS HELP!]

}

Any thoughts please?
 

JRShield

Generalfeldmarschall
90 Badges
Sep 1, 2005
753
0
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Victoria 3 Sign Up
  • Divine Wind
  • 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
  • Europa Universalis III: Chronicles
  • Cities in Motion 2
  • Europa Universalis IV
  • 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
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
You need a trigger trigger = { instead of AND, also I don't know if value = submarine is correct. the command should look something like this

For the corps (fleet)
command = { type = add_corps which = "AK Warzaw District" value = land when = 8002 where = 485 }

For the division
command = { type = add_division which = "Kedyw AK" value = infantry when = 0 }

#(from Warsaw Uprising, event 77)
 

invertigo2004

Captain
90 Badges
Jan 28, 2005
429
3
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris: Necroids
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Victoria 2
unless you want an event for each level of sub technology, checking whether or not germany has acquired it, you're going to have to assign the sub model. i chose model 3, the type ix, because historically it was the most modern sub in production when france fell. but its your event now, ur choice.

event = {
id = 800000
country = GER
random = no

Trigger = {
control = { province = 32 data = GER }
random = 1
}

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

name = "Uboote in Brest"
desc = "a 1% chance each day that 2 u-boat flotillas will appear in Brest"
style = 0

action_a = {
name = "OK"
command = { type = add_corps which = "Unterseebootsflottille Brest" value = naval when = 389 where = 32 } #Donitz commanding, change WHEN to leader id of preference
command = { type = add_division which = "101. Unterseebootsflotte" value = submarine when = 3 } #type ix
command = { type = add_division which = "102. Unterseebootsflotte" value = submarine when = 3 } #type ix
}
}
 
May 21, 2005
686
0
Thanks JRShield and invertigo2004.
I hope to test this out tomorrow.
I guess I put it in
Hearts of Iron 2\db\events\germany.txt
right?

I thought I'd read somewhere that if you didn't specify the model, it was always the most recent by default. Or am I mistaken?
 

invertigo2004

Captain
90 Badges
Jan 28, 2005
429
3
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris: Necroids
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Victoria 2
flock said:
Thanks JRShield and invertigo2004.
I hope to test this out tomorrow.
I guess I put it in
Hearts of Iron 2\db\events\germany.txt
right?

I thought I'd read somewhere that if you didn't specify the model, it was always the most recent by default. Or am I mistaken?

glad i could help

i would put it (and any other specially made events) in hoi2.txt.

i believe you have to specify the model. IIRC, 0 is the value that makes something random, but for unit models, 0 is generally the prewar model, and i don't believe thats what ur looking for. I'm not 100% sure on this, but HOI2 Wiki should have the definitive answer to that.
 

JRShield

Generalfeldmarschall
90 Badges
Sep 1, 2005
753
0
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Victoria 3 Sign Up
  • Divine Wind
  • 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
  • Europa Universalis III: Chronicles
  • Cities in Motion 2
  • Europa Universalis IV
  • 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
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
You can also make your own .txt file (like my_events.txt) and ad this line to events.txt

event = "db\events\my_events.txt"

events.txt can be found in the db folder.
 

quintelosky

Ingeniero del HoI2
10 Badges
Oct 2, 2005
2.864
88
www.quintelosky.com
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Deus Vult
  • Divine Wind
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Europa Universalis III Complete
  • 500k Club
  • Hearts of Iron IV Sign-up
I not speak english, but I want to collaborate with a program to make events.

a year ago I made a program that helped to make events, this program it was in Spanish, but I have translated the English.

this program helps much, I hope that you prove it

Page of EventMaker

Go to 'Descargas' (Downloads) and the first-right download is the program

if you have doubts, or advice, or changes, please contact me in this forum or quintelosky@mundo-r.com


to translate this program i use the page of baylox "Event Triggers and Commands"
Thanks
 

quintelosky

Ingeniero del HoI2
10 Badges
Oct 2, 2005
2.864
88
www.quintelosky.com
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Deus Vult
  • Divine Wind
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Europa Universalis III Complete
  • 500k Club
  • Hearts of Iron IV Sign-up
the program works perfectly

it works very well, and the result works perfectly, only what there is to know how to use it (sorry, my english is poor, I am using a translator)

it is not necessary to know how to make events

the program is very intuitive
 
May 21, 2005
686
0
Well, this is what I've so far got:


##################################################
# Uboote in Brest
##################################################
event = {
id = 800001
random = no
country = GER
persistent = yes

Trigger = {
control = { province = 32 data = GER }
random = 1
}

date = { day = 21 month = march year = 1941 }
offset = 1
deathdate = { day = 30 month = december year = 1947 }

name = "Uboote in Brest"
desc = "a 1% chance each day that 2 u-boat flotillas will appear in Brest"
style = 0

action_a = {
name = "OK"
command = { type = add_corps which = "Unterseebootsflottille Brest" value = naval when = 389 where = 32 } #Donitz commanding, change WHEN to leader id of preference
command = { type = add_division which = "101. Unterseebootsflotte" value = submarine when = 3 } #type ix
command = { type = add_division which = "102. Unterseebootsflotte" value = submarine when = 3 } #type ix
}
}



##################################################
# Uboote in Bordeaux
##################################################
event = {
id = 800002
random = no
country = GER
persistent = yes

Trigger = {
control = { province = 325 data = GER }
random = 1
}

date = { day = 28 month = march year = 1941 }
offset = 1
deathdate = { day = 30 month = december year = 1947 }

name = "Uboote in Bordeaux"
desc = "a 1% chance each day that 2 u-boat flotillas will appear in Bordeaux"
style = 0

action_a = {
name = "OK"
command = { type = add_corps which = "Unterseebootsflottille Bordeaux" value = naval when = 409 where = 325 } #Raeder commanding, change WHEN to leader id of preference
command = { type = add_division which = "106. Unterseebootsflotte" value = submarine when = 3 } #type ix
command = { type = add_division which = "107. Unterseebootsflotte" value = submarine when = 3 } #type ix
}
}



Loaded an old save game, and watched. No effect, quit game, and then as I exited HoI2 it crashed, first time for me since July 2005 :eek: .
Restarted HoI2 and it crashed, but started at second attempt :eek:
Began new game in 1941 Scenario and soon new uboats were popping up in Brest and Bordeaux :) The AI can handle changing the commanders when he gets assigned to the next uboats that pop up. The uboats left Brest on missions, everything fine, and the event repeats. :cool:
But in the 1941 Scenario Brest is not a naval base, so the uboats that pop up there just stay there losing org. So need a way to check if Brest is a naval base, and if not then start another event to put uboats into Cholet province #59 if it is a naval base. Also would be nice if the event did not have a message box associated with it, so human does not know...but how? I will also look for lower ranking German seawolf officiers.
Is there a way to get this to run in an exsisting game?

http://hoi2.nsen.ch/wiki/index.php/Modding_events
is working again but I have no more time tonight.

Thanks for your help! So many questions! But it works :) not ideally but it works :cool:
quintelosky I have downloaded (Descargas) your program, will try it out another day.

Cheers.