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

unmerged(25131)

Colonel
Jan 28, 2004
1.098
1
Hi again modders.

Inspired by my successful modding with ships, I would like to know how to create events, in order to do this even better...

I would like to follow BeBro's example and make an event for the reconstruction of the old Italian BB:s, although not exactly in the same way. If some of you ever have the time and feel you can stand the effort, feel free to assist me on how to create this.

Thanks in advance
/Galahad

*making some coffee while I wait*
 

unmerged(42723)

Field Marshal
Apr 6, 2005
3.564
0
Here's a very simple event I made:

#########################################################################
# BB upgrades
#########################################################################
event = {
id = 2950
random = no
country = ITA

date = { day = 10 month = may year = 1937 }
offset = 5
deathdate = { day = 25 month = june year = 1938 }

name = "Modernization complete"
style = 0

action_a = {
name = "OK" # Great!
command = { type = energypool value = -xxxx }
command = { type = metalpool value = -xxxx }
command = { type = rarematerialspool value = -xxxx }
command = { type = remove_division which = "RM Conte di Cavour" value = ITA }
command = { type = remove_division which = "RM Giulio Cesare" value = ITA }
command = { type = add_corps which = "Modernized BBs" value = naval where = 523 } # Taranto
command = { type = add_division which = "RM Conte di Cavour" value = battleship when = 2 }
command = { type = add_division which = "RM Giulio Cesare" value = battleship when = 2 }
}
}

Feel free to change the "xxxx" entries for metal, energy, and rares to your liking. Or remove these lines. You could also add in some costs in money or supplies. And change the BB3 to BC IV, same for the two other BBs.

If you don't know the commands, I recommed the mod section of the HOI2 Wiki.

Afaik some of the bigger mods have much more sophisticated stuff, like events chains removing the BBs first, then wait a while ("modernization time") before giving the new ones.
 

unmerged(25131)

Colonel
Jan 28, 2004
1.098
1
Damn, BeBro. That was fast! I really like this forum - and the people in it. :)

Nice! This is a start no doubt. I had something more detailed in mind, but I´ll try to work my way from your example. And, no, I don´t know anything about making commands or anything within the events.

Where it says "name" and you have written "modernization complete" - is that the text popping up?

Again, thanks!