[HOI4 Modding] Creating Diplomatic Actions

  Рет қаралды 8,143

The Iron Workshop

The Iron Workshop

Күн бұрын

This lesson will explain how to add new custom diplomatic actions in Hearts of Iron 4. Make sure to look further down for useful links related to this lesson.
Timestamps for this tutorial/lesson:
00:00 - Lesson Start
00:01 - Important Instructions for this lesson
01:20 - DA File Scoping
02:57 - DA Conditions
12:00 - DA Effects
16:05 - DA AI Modding
19:16 - Creating DA Localisation
25:05 - Creating DA Icon
30:50 - DA Additional Syntax
Useful links:
DATF files mod link: steamcommunity.com/sharedfile...
The files will be located in: Program Files (x86)\Steam\steamapps\workshop\content\394360\2186335484
Enabling Debug mod video: • [HOI4 Modding] Enablin...
List of conditions you can put in the DA: hoi4.paradoxwikis.com/Conditions
List of effects you can put in the DA: hoi4.paradoxwikis.com/Commands
Iron Workshop Discord server: / discord
My twitch channel: / playerhoi
Hearts of Iron IV wiki modding page: hoi4.paradoxwikis.com/Modding
If you would like to contribute to make the Iron Workshop better you can do so on Patreon: / playerhoi
Here are the download links to the various tools used during The Iron Workshop lessons/tutorials.
Notepad++ Download: notepad-plus-plus.org/downloads/
Paint.net Download: www.dotpdn.com/files/paint.ne...
Please consider disabling your AdBlocker on KZbin to support this channel and any other channel that creates content you enjoy and makes revenue from ads.

Пікірлер: 63
@Hadahuda
@Hadahuda 3 жыл бұрын
I needed this i wanted to add “Embargo” thanks!
@youytsk7154
@youytsk7154 3 жыл бұрын
Dat would be gut.
@Hadahuda
@Hadahuda 3 жыл бұрын
@YouYTsk lol
@PatriotMapper
@PatriotMapper 3 жыл бұрын
I’m gonna make a way to buy territory from other countries using PP.
@dbneptune
@dbneptune 5 ай бұрын
look at mr hoi4 predictor over here
@SuperRabbit195
@SuperRabbit195 3 жыл бұрын
Thanks dad very cool
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
You welcome son
@user-yf1mh5ru5p
@user-yf1mh5ru5p Жыл бұрын
Man, this tutorial is amazing! I'm so grateful, you explain much better than hoi4 wiki :)
@stefanthecoconut110
@stefanthecoconut110 3 жыл бұрын
Thanks for a new great tutorial.
@GM-gb1eu
@GM-gb1eu 3 жыл бұрын
Thank you. You are the best!
@orange-thing
@orange-thing 2 жыл бұрын
your like the goat, man
@alexander_ca
@alexander_ca 3 жыл бұрын
Will you be making a tutorial for interface modding in order to fix the overlap when you make a new ideology, for example?
@BelaliPasha
@BelaliPasha Жыл бұрын
Nice tuttorial
@conservativedemocracyenjoyer
@conservativedemocracyenjoyer 3 жыл бұрын
Could you be able to do a lesson on using how you can edit workshop content, like map resources? The nudger doesn't seem to like the mods.
@morasia7976
@morasia7976 3 жыл бұрын
Tutorial for making a New map? Would be cool
@extremegamer362
@extremegamer362 3 жыл бұрын
The Iron Workshop can you please also make a video how to create a new technology you have done before how to upgrade technologies but I don't know how to create a new technology . and nice Viedo :)
@hexcss9153
@hexcss9153 3 жыл бұрын
He has
@zimavi
@zimavi 2 жыл бұрын
@The Iron Workshop may you please upload datf file anywhere except steam workshop?
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS Жыл бұрын
i have an issue. i would like an answer if it isnt too inconvenient. i did my scripted diplo actions, and they work fine. BUT sometimes, or many times in lategame, the AI just refuses to answer my diplo action when i send it. is there a way to make AI ALWAYS answer the diplomatic action, while maintaining the can_be_accepted = yes ?
@GM-gb1eu
@GM-gb1eu 3 жыл бұрын
And i have a question, how to opinion ai_acceptance modifier like in eu4? ( and how to edit existing in-game diplomatic actions) please help
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS Жыл бұрын
1- use the opinion variable 2- impossible, its hardcoded
@kennertgarcia3486
@kennertgarcia3486 3 жыл бұрын
Thank you for this video, i have a question how do you change the position of your new diplomatic action? for example been at the bottom
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
All custom diplomatic actions will appear on top of the vanilla diplomatic action, that is not something you can change. What you can change is the order of the diplomatic actions you created by changing their location in the file.
@quake-uy1es
@quake-uy1es 3 жыл бұрын
is it possible to modify lend lease? I would like the transport to be shipped faster. I can't find the files of this anywhere
@omerfaruksezgil2362
@omerfaruksezgil2362 Жыл бұрын
How can I invisible the all diplomatic actions ?
@gut8433
@gut8433 3 жыл бұрын
You have other Mike? Or what you sounds other than in other guides
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
Yes, I've upgraded my equipment a little although I am having doubts about the quality...
@brycefoster8547
@brycefoster8547 3 жыл бұрын
Can you add a how to create a faction quick nodding tutorial
@Fergieluna12
@Fergieluna12 3 жыл бұрын
how would I make it so that the AI only does the action one time? I am having trouble making a "recall volunteers" action for the AI. If they are non-socialist and they have volunteers sent to a country that suddenly becomes socialist, they are supposed to recall them, but they do this over and over and over and it glitches out.
@mateom3908
@mateom3908 3 жыл бұрын
Hey off topic question but do you know where the customtool tip file is locates? I wanted to make a focus similar to the one with new zealand where the uk transfers ships but i cant find the custom tool tip file please help
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
It's not a file but a command you have to use, for example: custom_effect_tooltip = "LOCALISATION_KEY_ENTRY" So you put this in your focus/event/decision and the actual effects you put in hidden_effect = { } That way the player will only see whats in the custom_effect_tooltip as the result of the focus/event/decision.
@mateom3908
@mateom3908 3 жыл бұрын
@@TheIronWorkshop ahhhhh, Thank you so much!
@doktord.8403
@doktord.8403 3 жыл бұрын
How do you make it show up in the diplomatic window (left next to the diplomatic actions)
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
That involves scripted GUI modding which I will cover before the end of the month.
@hzyoni
@hzyoni 2 жыл бұрын
How do you make the diplomatic button turn GRAY after you use and complete the diplomatic action. it stays Green and is re-usable although I already completed the action. I want it to turn gray and unavailable for some time.
@TheIronWorkshop
@TheIronWorkshop 2 жыл бұрын
That process is not automatic, you will have to set a country flag on the country that used the button. For example: complete_action = { ROOT = { set_country_flag = used_button } } ROOT = country that used the button FROM = country that the button was used on You can also set it in the visible = {} section to make the button disappear if you don't want it to be visible after being used.
@pountoun6328
@pountoun6328 Жыл бұрын
Hi, if anyone has an idea on what could be the problem : whenever i create an ai_acceptance modifier, whether the conditions are triggered or not, the modifier is visible in the tooltip. What i type is the following : ai_acceptance = { great_power = { base = 0 modifier = { add = -10 if = { THIS = { is_major = yes } } } } } It does work and applies the -10 on majors but still appears as 0 positive for non majors, it does the same for other modifiers when the triggers aren't met.
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS Жыл бұрын
With my limited knowledge, I would tell the problem is the base = 0, delete that line and test it to see if the modifier applies to majors, and doesn't show anything to minors
@pountoun6328
@pountoun6328 Жыл бұрын
@@DatBoi_TheGudBIAS thanks for the attempt to help but i still can't figure it out 😢
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS Жыл бұрын
@@pountoun6328 I finished my diplomatic action today and couldn't figure it out as well, I kept 0 as base value, I'll try to figure out some way
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS Жыл бұрын
@@pountoun6328 ok, im late, but i think i figured. the modifier block is checking for a trigger, so u dont need to put the if, just put this = { is_major = yes } after the add = -10
@GM-gb1eu
@GM-gb1eu 3 жыл бұрын
The Iron Workshop, I have a question, how to create opinion based ai_acceptance ?
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
That is actually a tough one and I struggled with it a bit but here's the code I came up which (seems to be working) opinion_checks = { modifier = { has_opinion = { target = ROOT value > 5 } add = 10 } } This checks if the target the DA is aimed towards has 5 or more opinion and if it does adds 10 points to their acceptance. You can change the values as you need.
@GM-gb1eu
@GM-gb1eu 3 жыл бұрын
thank you, you are the best
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
Hope it works, from my testing its a bit wonky but works most of the time...
@Philcoulson918
@Philcoulson918 2 жыл бұрын
Can you force a diplomatic action via a focus? Lets say the embargo diplomatic action?
@chadofthexxthcentury4741
@chadofthexxthcentury4741 2 жыл бұрын
yes
@youytsk7154
@youytsk7154 3 жыл бұрын
yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay
@hoi4rat788
@hoi4rat788 3 жыл бұрын
are you dallatorretdu from gmod?
@tsuaftl3885
@tsuaftl3885 3 жыл бұрын
DA
@hexon6956
@hexon6956 3 жыл бұрын
Scripted GUI next pls
@MiMiBltzr
@MiMiBltzr 3 жыл бұрын
can you please make a guide for entity modding
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
What's entity modding?
@MiMiBltzr
@MiMiBltzr 3 жыл бұрын
@@TheIronWorkshop for example the mesh and asset of a building
@MiMiBltzr
@MiMiBltzr 3 жыл бұрын
of a unit
@morasia7976
@morasia7976 3 жыл бұрын
@@TheIronWorkshop units
@hexon6956
@hexon6956 3 жыл бұрын
Mic is dead
@PatriotMapper
@PatriotMapper 3 жыл бұрын
What DLC is it?
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
That may actually be incorrect since it is possible they were added with a patch that came along with a DLC so you don't need the DLC to work with them.
@PatriotMapper
@PatriotMapper 3 жыл бұрын
@@TheIronWorkshop Oh, ok.
@PatriotMapper
@PatriotMapper 3 жыл бұрын
@@TheIronWorkshop I’ve created the diplomatic action, now I need to figure out how I can make it so you can choose a state to get (I’m making a buy state system).
@TheIronWorkshop
@TheIronWorkshop 3 жыл бұрын
That is a bit complex to do, you will need to use both arrays and a scripted GUI... There are lessons on how to use both.
@DatBoi_TheGudBIAS
@DatBoi_TheGudBIAS Жыл бұрын
@@PatriotMapper ull require a scripted gui. u can make a state selector gui, and then do the changes to those selected states after u send the diplo and they accept
[HOI4 Modding] Using Arrays
39:15
The Iron Workshop
Рет қаралды 6 М.
[HOI4 Modding ] Creating a new country
32:42
The Iron Workshop
Рет қаралды 306 М.
Ну Лилит))) прода в онк: завидные котики
00:51
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 55 МЛН
How to bring sweets anywhere 😋🍰🍫
00:32
TooTool
Рет қаралды 27 МЛН
When Steve And His Dog Don'T Give Away To Each Other 😂️
00:21
BigSchool
Рет қаралды 15 МЛН
[HOI4 Modding] Creating New States
21:03
The Iron Workshop
Рет қаралды 62 М.
[HOI4 Modding] Creating New Characters
1:08:14
The Iron Workshop
Рет қаралды 85 М.
[HOI4 Modding] Creating Sea Crossings
8:09
The Iron Workshop
Рет қаралды 4,3 М.
[HOI4 Modding ] Creating New Ideas
30:12
The Iron Workshop
Рет қаралды 53 М.
HOI4'S MOST USELESS FORMABLE NATION.
49:55
HollowBeing
Рет қаралды 8 М.
[HOI4 Modding] Creating a basic focus tree
38:30
The Iron Workshop
Рет қаралды 209 М.
[Stellaris Modding] Creating Race Traits
16:57
The Iron Workshop
Рет қаралды 4,6 М.
[HOI4 Modding] - Creating new events
41:39
The Iron Workshop
Рет қаралды 60 М.
РАНГ ЖАНА СЕЗОН  - АДЕЛАЙДА СТРИМ !
5:53:20
ЛУЧШАЯ ИГРА ПРО АНОМАЛИИ ► Platform 8
38:57
Kuplinov ► Play
Рет қаралды 1,2 МЛН