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

pakotorino

Fatherland Mod Owner
13 Badges
Jan 28, 2008
941
391
  • Darkest Hour
  • Iron Cross
  • Europa Universalis IV
  • 500k Club
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Crusader Kings II
Guys,
i want to put any garrison division on the beach of the German Empire if is at war with the UK (they always land in Hamburg :eek:) and i want to put other garrison along the italian border and on the Maginot Line ... how i can do that ? Just an example event and i do the rest. There's another mode for do that ?
Thank you.
Other thing ... which are the ids free ?
 
As far as I know Hamburg is not even a coastal province.
 
So why don't you produce one with artillery? The Britts will never be able to take your coast if you use a tactical bomber squadron or naval bombers in the meanwhile.

EDIT:
Also if you take Coppenhagen the Britts will never bother you in the Baltic again, then you have just to make sure your atlantic wall will hold out.
Or if you play WW1 don't keep your fleet in the ports...
 
It's an idea but i don't play with the German Empire. I play with the A-H. And in all the game who the GE is at war with the UK, the UK ever land on the beach. And i want to add garrison division on the italian border too, it's a little personal modification ... :)
I write an event, but don't work :( so i hope someone on the forum help me with an example event.
 
A good starting point would be looking into the lendlease common decesions (if I'm right that is the name of the decesion, democracies can take it if they have enough cash) since they add you one unit into your capital.
 
Guys,
i want to put any garrison division on the beach of the German Empire if is at war with the UK (they always land in Hamburg :eek:) and i want to put other garrison along the italian border and on the Maginot Line ... how i can do that ? Just an example event and i do the rest. There's another mode for do that ?
Thank you.
Other thing ... which are the ids free ?

Hey P try this. It is what I used to add a garrison div in our RDD mod. You may need the correct ID for the province and the number for garrison div in DH.
command = { type = activate_division which = 12700 value = 100 where = 919 } #Tobruk
I hope this helps.
d
 
Thank you guys i've tried to make the event and this it's the result :

#############################################
###### # Beach Patrol
#############################################
event = {
id = XXX
random = no
country = U08
trigger = {
atwar = ENG

}

name = "EVT_XXX_NAME"
desc = "EVT_XXX_DESC"
style = 0

date = { day = 01 month = january year = 1914 }
offset = 15
deathdate = { day = 01 month = january year = 1920 }

action_a = {
name = "Let's go !"
command = { type = add_division which = "StrandDivision" value = garrison when = 1 where = engineer }
ai_chance = 95
}
action_b = {
name = "Nope !"
ai_chance = 5
}

}

But the event don't work.
Two problem ... what ID i must use ? And how i can indicated the province id in the add_division command ?
Thanks in advance
 
Explain what do you mean with "don't work". You may have added to the wrong file.
For the ID, check the UK.txt file and look at the last event, I guess that's the last used id for UK
You can select the province with add_division, but you can use an add_corps command before that and the division will be associated with that corp. Check event_commands.txt to see the syntax of the add_corp command and how to choose the province id for it.
 
Greetings
"Don´t work" can be:
- wrong ID, could be 123456789
- wrong country Tag, should be GER?
- wrong folder? DH full / light / no mod.

Well, it shouldn't be GER since it doesn't exsist, perhaps U07 (which I belive to be Imperial Germany, but check the revolters to be sure) will do it
 
Explain what do you mean with "don't work". You may have added to the wrong file.
For the ID, check the UK.txt file and look at the last event, I guess that's the last used id for UK
You can select the province with add_division, but you can use an add_corps command before that and the division will be associated with that corp. Check event_commands.txt to see the syntax of the add_corp command and how to choose the province id for it.

I've added the event in the generic_event file ... And when with the f12 i run the event manually the event don't start, this is the sense of "don't work" (obviously with the trigger respected). I will try to create a custom event text file add it in the events.txt file and run it manually ... I think my problem it's an " Id problem" i don't known the range of free id for a custom event. It's possible i've used an yet existance id. For the positioning of the garrison i will follow your suggest.


PS : The version it's 1.01.1 - dh full
 
Ok guys, i've made it !

### 2069011 U08 Beach Patrol

#############################################
###### # Beach Patrol
#############################################
event = {
id = 2069011
random = no
country = U08

trigger = {
atwar = ENG
}

name = "Beach Patrol"
desc = "Defend the beach !"
style = 2
picture = "German_mobilization2"

date = { day = 01 month = january year = 1914 }
offset = 15
deathdate = { day = 01 month = january year = 1920 }

action_a = {
name = "Let's go !"
command = { type = add_corps which = "StrandArmee I" value = land where = 147}
command = { type = add_division which = "StrandDivision I" value = garrison when = 0 where = engineer}

command = { type = add_corps which = "StrandArmee II" value = land where = 152}
command = { type = add_division which = "StrandDivision II" value = garrison when = 0 where = engineer}

command = { type = add_corps which = "StrandArmee III" value = land where = 153}
command = { type = add_division which = "StrandDivision III" value = garrison when = 0 where = engineer}

command = { type = add_corps which = "StrandArmee IV" value = land where = 158}
command = { type = add_division which = "StrandDivision IV" value = garrison when = 0 where = engineer}

command = { type = add_corps which = "StrandArmee V" value = land where = 226}
command = { type = add_division which = "StrandDivision V" value = garrison when = 0 where = engineer}

command = { type = add_corps which = "StrandArmee VI" value = land where = 181}
command = { type = add_division which = "StrandDivision VI" value = garrison when = 0 where = engineer}

command = { type = supplies value = -100 }

ai_chance = 90
}

action_b = {
name = "Nope !"
ai_chance = 10
command = { type = supplies value = 100 }
command = { type = add_division which = "StrandDivision I" value = garrison when = 0 where = engineer}
command = { type = add_division which = "StrandDivision II" value = garrison when = 0 where = engineer}
command = { type = add_division which = "StrandDivision III" value = garrison when = 0 where = engineer}
}
}

Little question ... if i want to lock the divison ... how i can do that ?
I've see in the event_commands.txt this :

type = lock_division which = [id type] value = [id id]

Ok, but what are the id's indicated ? How i can lock the garrison division in my event ?
 
pakotorino, assuming the mechanism from plain HoI2 still works, you can actually lock divisions in place as long as they are defined in the country.inc file with an ID known to you.
 
pakotorino, assuming the mechanism from plain HoI2 still works, you can actually lock divisions in place as long as they are defined in the country.inc file with an ID known to you.

yep i known G'Kar .... but i would to lock the garrison who i've been created. This unfortunally it's not possible :(
BTW i've solved adding more percentage on the beach defend value in the AI files of the German Empire (U8_1914.ai).