HOI4 Mod

by DAKKA in Circuits > Software

21 Views, 1 Favorites, 0 Comments

HOI4 Mod

images.jpg
  1. Project Overview
  2. What does your project do?
  3. My project is to make a HOI4 mod that fires a single event.
  4. Why did you choose it?
  5. I chose this mod so that I could have fun while making it. I also overestimated my abilities, thinking it could be done easily :(
  6. Reflection
  7. What challenges did you face?
  8. I was unprepared for the coding portion and out of my league when it came to fixing said coding issues.
  9. What would you do differently next time?
  10. I would give myself far more time to do it, and i'd also like to have a better guide than what the HOI4 channel gives.
  11. What did you learn?

Supplies

Hearts of Iron IV: Beginner's Modding Guide | Part 1 - Getting Started
Hearts of Iron IV: Intermediate Modding Guide | Part 1 - Map modding
Screenshot 2025-05-27 123523.png

Also this (can't be embedded): https://code.visualstudio.com/download

Watching the Above Videos and Others in Playlists

FASK3YBMB6J23Z6.jpg
F1WAE0EMB6J23WE.jpg

https://www.youtube.com/watch?v=E7zIU3L2eUs&list=PL6EAZcF5cWbg57Srq6BTVvguMl6YfP9pG&index=1


https://www.youtube.com/watch?v=vU4_5X1JEbM&list=PL6EAZcF5cWbiwdGsdZs-C3o6-uwgD4RKs&index=1

Watch the above:

Download Visual Code Studio

Screenshot 2025-05-27 133357.png

This is what we use to code!

Creating Our First Event!

Screenshot 2025-05-27 133610.png

The above is my event. This showcases something similar to what you must make. Since your mod won't be the exact same as mine, copying mine word for word is not a good idea. Anyway, constructing this is relatively simple:

"add_namespace= (event name)" is telling the system that this is an event with "country_event" being what the event actually is.


"is_triggered_only = yes is_instant = yes" Is stating that the event fires once and is instant.


"mean_time_to_happen" states how many days from the game start it unlocks and is fireable.


"fire_only_once = yes" is, I'd say, self-explanatory.


And finally, "option" is the flavor text shown to the player

The Event Itself

Screenshot 2025-05-28 112552.png

"ideas =" is telling the game that this event exists and where to find it. The following below that, it is me declaring what type of event it is and then giving it a name.


"picture =" is what it looks like in the game


"modifier =" is the effects of the events

Your Done!

bxfslv1l8e4e1.jpeg

Congratulations are in order if it works. Otherwise, get troubleshooting and then declare your victory!