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

germanpeon

Angel of Death
106 Badges
Feb 21, 2007
2.237
5
  • 500k Club
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Starvoid
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis III Complete
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Mount & Blade: Warband
  • 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
  • Stellaris: Nemesis
  • Europa Universalis III
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • 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: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
I'm thinking about a modding project. I've never done any modding before, other than minor mods in Total War games, so I'm starting from scratch. I believe that I can figure out enough to accomplish what I want by copying code and code patterns from existing event files.

Basically what I'm going to try to achieve is a chain of events that, following a nationalist electoral victory in South Africa, results in the removal of democracy and the declaration of a new pan-African state, appropriately titled 'New Africa'. Obviously this is inspired by the Domination of Draka, but without slavery and all that other nonsense.

My first question is: are there any unused tags left in KR that I could use for 'New Africa'?
 

germanpeon

Angel of Death
106 Badges
Feb 21, 2007
2.237
5
  • 500k Club
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Starvoid
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis III Complete
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Mount & Blade: Warband
  • 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
  • Stellaris: Nemesis
  • Europa Universalis III
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • 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: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
Thanks, good idea.

Does anyone know if there is an tutorial or guide for writing events somewhere on the forums or elsewhere on the webs? That'd make things much easier.
 

jamhaw

Lt. General
21 Badges
Feb 16, 2008
1.653
63
  • Darkest Hour
  • 500k Club
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Penumbra - Black Plague
  • Majesty 2
  • Heir to the Throne
  • Hearts of Iron III
  • For The Glory
  • Divine Wind
  • Europa Universalis III Complete
  • Diplomacy
  • Deus Vult
  • Hearts of Iron Anthology
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Supreme Ruler 2020
  • Victoria 2
  • 200k Club
  • Mount & Blade: Warband
There are some events which can create Rhodesia in this mod, so I would suggest using the APR or one of the other Armaggedon tags.

I think that the wiki would have some useful modding information.
 

germanpeon

Angel of Death
106 Badges
Feb 21, 2007
2.237
5
  • 500k Club
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Starvoid
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis III Complete
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Mount & Blade: Warband
  • 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
  • Stellaris: Nemesis
  • Europa Universalis III
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • 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: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
I'm gonna go without the tag change for now. I've got three events so far.

Code:
#97001	SAF		The Ultranationalists
#97002	SAF		Accept Ultranationalist agenda?
#97003	SAF		Ultranationalist expansion
#97004	SAF		A New Africa
#97005	SAF		
#97006	SAF		
#97007	SAF		






event = {
	id = 97001
	random = no
	country = SAF
	style = 0

	trigger = {
		flag = SAF_ULTRA_1
	}

	name = "The Ultranationalists"
	desc = "Following the success of the National party in the election of 1938 and the implementation of their policies, a massive surge of South African nationalism has swept through our country. People from Cape Town to Pretoria wave our flag proudly and enjoy our fine culture and traditions. One branch of the national movement, however, feels that the South African nation is not yet whole. They envision a pan-African state under South African dominance, from the shores of the Mediterranean to the Cape of Good Hope. These are the Ultranationalists, and they can not be ignored for long."

	date = { day = 7 month = july year = 1949 }

	action_a = {
		name = "There is merit to what they say, but they may be dangerous."
		command = { type = clrflag which = SAF_ULTRA_1
		command = { type = setflag which = SAF_ULTRA_2 }
		}
}

event = {
	id = 97002
	random = no
	country = SAF
	style = 0

	trigger = {
		flag = SAF_ULTRA_2
	}

	name = "Accept Ultranationalist agenda?"
	desc = "Nationalism has become a very powerful force in South Africa and many people, within and outside the government, believe that the growing movement of Ultranationalism is the best path for our country to explore. With the coming of the new year, our government must decide whether or not to pursue this popular new agenda. Should we accept Ultranationalism?"

	date = { day = 5 month january year = 1940 }

 	action_a = {
		ai_chance = 90
		name = "They go too far. Refuse their agenda."
		command = { type = dissent value 7 }
		command = { type = domestic which = defense lobby value = -1 }
		command = { type = clrflag which = SAF_ULTRA_2 }
		}
	action_b = {
		ai_chance = 10
		name = "Embrace Ultranationalism!"
		command = { type = dissent value -2 }
		command = { type = domestic which = defense_lobby value = 3 }
		command = { type = domestic which = interventionism value = 3 }
		command = { type = domestic which = political_left value = -5 }
		command = { type = clrflag which = SAF_ULTRA_2 }
		command = { type = setflag which = SAF_ULTRA_3 }
		}
}

event = {
	id = 97003
	random = no
	country = SAF
	style = 0

	trigger = {
		flag = SAF_ULTRA_3
	}

	name = "Ultranationalist expansion"
	desc =  Now is the time to decide on our territorial goals."

	date = { day = 13 month = march year = 1940 }

	action_a = {
		name = "We will be satisfied with Mittelafrika and the neighboring colonies of the European imperialists."
		ai_chance = 85
		command = { type = addcore which = 			#Mittelafrika, nearby Spanish and Portuguese colones, plus Madagascar
		command = { type = clrflag which = SAF_ULTRA_3 }
	}

	action_b = {
		name = "We shall create a new, unified Africa from the Mediterranean to the Cape of Good Hope."
		ai_chance = 15
		command = { type = addcore which = 			#all of Africa
		command = { type = clrflag which = SAF_ULTRA_3 }
	}
}

The problem I'm having right now is finding an easy to read world province list so that I can add the correct cores for each choice in the incomplete third event. The one on the wiki is incomplete and has no African provinces. Any idea where I could find one?
 

unmerged(171402)

First Lieutenant
1 Badges
Oct 5, 2009
237
0
  • Darkest Hour
Press F12 while in game, then type showid. This way, every time you place the cursor over a province you will be able to see its ID. However, since we are talking here about a large number of provinces, this will take some time. I don't know about an easy to read world province list, so, this is the way I use. I know, though, that the HoI2 editor that came with Doomsday has a list of provinces' IDs with the names of each province. But, since you'd need to look at the in game map in order to see where each province is, you'll be pretty much in the same situation.

I'll tell you a way, though, through which you can accomplish this without much difficulty. Since Mittelafrika occuppies much of the African continent, and in both choices of your last event you plan to give SAF all of their cores, all you need is Mittelafrika's (original, not a save game) .inc file. All of their provinces' IDs are there, so this will easy your task much. For the second choice, in which you want to give them all of Africa, do the same with Nationalist France, Ethiopia, Egypt and Lybia. As for the colonial empires' possessions, you may find it easier to check their IDs manually.

Hope this helps. ;)
 

germanpeon

Angel of Death
106 Badges
Feb 21, 2007
2.237
5
  • 500k Club
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Starvoid
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis III Complete
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Mount & Blade: Warband
  • 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
  • Stellaris: Nemesis
  • Europa Universalis III
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • 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: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
I'll tell you a way, though, through which you can accomplish this without much difficulty. Since Mittelafrika occuppies much of the African continent, and in both choices of your last event you plan to give SAF all of their cores, all you need is Mittelafrika's (original, not a save game) .inc file. All of their provinces' IDs are there, so this will easy your task much. For the second choice, in which you want to give them all of Africa, do the same with Nationalist France, Ethiopia, Egypt and Lybia. As for the colonial empires' possessions, you may find it easier to check their IDs manually.

Hope this helps. ;)

This same thought occurred to me a few days ago too, and so I did that for Mittelafrika. It may be harder to find ids for uncored provinces such as Germany's various colonies so I'll probably end up using a combination of the methods you recommended. In any case, your methods are going to make this project loads easier. Thanks a ton!