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

Nekromans

Sergeant
108 Badges
Jul 25, 2010
70
0
  • Europa Universalis IV: Third Rome
  • Heir to the Throne
  • March of the Eagles
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Stellaris: Galaxy Edition
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Cities in Motion
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Sword of Islam
  • Arsenal of Democracy
  • 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: Sunset Invasion
  • Hearts of Iron III
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • 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 Glory
  • For the Motherland
  • Victoria 3 Sign Up
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Europa Universalis III Complete
So I bought AoD on Steam the other week, and so far it's taking up an irritatingly* large chunk of my time.

I'm starting the 1939 scenario as Nationalist Spain, and I want to mod in the option to become the Iberian Union on the annexation of Portugal (my personal goal). Is there any way to implement this in game terms?

Thanks to anyone who can answer :)

*from the PoV of my lecturers
 
Indeed there is. First you have to create an Iberian Union-country using one of the available tags - UZ9, for instance. That entails adding an entry for UZ9 in world_names (avoid using Excel - text editors work fine, though. This goes in general), creating a minister-file, a tech-teams file and a leader file. Given the country in question, it is probably best to copy Spain's files, paste in Portugal's counterparts, and edit the IDs to make them unique. The country also needs a flag and a shield (gfx\map\flags and gfx\map\shields, that is), which is somewhat harder - unless you already have an Iberian Union flagset for the Europa Engine, I'm afraid you'll have to ask someone else for instructions if you want something better than Spain's or Portugal's flag.
Unless you take on of the UXX-tags (er... the one with a U and two numbers, that is), IIRC, you'll also have to make entries for the tag in db\airnames, armynames, navynames, countries unitnames and randomleaders). Finally, you need to make an entry in revolt.txt, so the game knows where the capital is supposed to be, and which cores it is supposed to have.
That is what you need to create an Iberian Union-tag. If you want it ministers, leaders and tech-teams to disappear when they should, you'll also have to track down all the death-events for Portugal and Spain, copy them and change the id of the events to something unique and the ids in the command to the Iberian Union's counterpart-ministers/team/leader's id.

This wouldn't have worked in Arma, but thankfully the country-changing command has been fixed in AOD.

Lastly, you need the event to create the Union. For example, something like this:
Code:
event = {
	id = XXXXX #insert an unused id here
	random = no
	country = SPA

	name = EVT_13_NAME
	desc = EVT_13_DESC
	picture = "partition_of_england"
	style = 0

	trigger = {
		control = { province = 336 data = SPA } #Lisbon
		NOT = {
			exists = POR
		}
	}

        date = { day = 0 month = january year = 1936 }
        offset = 10
	deathdate = { day = 29 month = december year = 1963 }

	action_a = {
		ai_chance = 50
		name = EVT_13_ACTA
		command = { type = country which = UXX } #replace UXX with your chosen tag
	}
	action_b = {
		ai_chance = 50
		name = EVT_13_ACTB
		command = { type = dissent value = -1 }
	}
}

If it works as I think it does - not a given - within ten days of the requirements - Lisbon under Spanish control and Portugal not existing - being fulfilled the event should trigger, and if action a is chosen, SPA will be changed to UXX. Erm, though the description and event-name will talk about England's surrender to Germany, so you might want to change that.