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

vanin

Colonel
65 Badges
May 7, 2008
1.090
510
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Rome Gold
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • For The Glory
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Deus Vult
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Arsenal of Democracy
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV
  • Victoria 2
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
Code:
	allow = {
		is_female = no
		age = 18
		in_command = no
		is_governor = no
		has_tech_office = no
		prisoner = no
		has_title = title_ex_general
		is_ruler = yes
		OR = {
			OR = {
				country = { government = monarchy }
				AND = {
					OR = {
						from_ruler_family = yes
					}
				}
			}
			OR = {
				country = { government = tribal }
				AND = {
					OR = {
						has_title = title_clan_chief
					}
				}
			}
			OR = {
				country = { government = republic }
				AND = {
					OR = {
						has_title = title_ex_ruler
						has_title = title_pro_ruler
						has_title = title_ex_civic_tech
						has_title = title_pro_civic_tech
						has_title = title_ex_censor
					}
				}
			}
		}
	}

So, yeah, basically that mess is what I have tried so far. In short, I want separate conditions for " allow = { " depending on the government. This is mostly because I think monarchies and tribes have an unfair advantage towards republics since they can pick whomever they want to lead armies. Also, I would like kings to lead armies more often, wich is alot ore historical than the current setup. While a republic is more stable, the monarchies and tribes will still have a yet to be added title wich will allow generalship too, but that will come later.

I don't know how the AND - OR stuff work together, I think the above code shows that quite clearly. How can I get separate conditions? Right now it checks all of the above, so either I get zero generals available or everyone as usual (talking about monarchies).

All help greatly appreciated.
 

mate0815

Field Marshal
62 Badges
Feb 2, 2007
3.165
259
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Sengoku
  • Supreme Ruler 2020
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III Complete
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Prison Architect
  • Europa Universalis III
  • Cities in Motion 2
  • 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
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • East India Company
  • Cities in Motion
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
i´m not sure, if i understand the problem, but:

why you make a lot of conditions without any sense (OR with only 1 option)?

should the following not working in the way, you want?:

Code:
	allow = {
		is_female = no
		age = 18
		in_command = no
		is_governor = no
		has_tech_office = no
		prisoner = no
	#	has_title = title_ex_general
	#	is_ruler = yes
		OR = {
			AND = {
				country = { government = monarchy }
				OR = { 
                                       from_ruler_family = yes
                                       has_title = title_ex_general
                                }
			}

			AND = {
				country = { government = tribal }
				OR = { 
                                       has_title = title_clan_chief
                                       has_title = title_ex_general
                                }
			}

			AND = {
				country = { government = republic }
                                OR = {
                                        is_ruler = yes
                                        has_title = title_ex_general
					has_title = title_ex_ruler
					has_title = title_pro_ruler
					has_title = title_ex_civic_tech
					has_title = title_pro_civic_tech
					has_title = title_ex_censor
				}
			}
		}
	}

the outcommended lines make it, that it was only for an ex-general ruler and for no more characters. now it should work for all the chars you described. i hope so. ;)
 
Last edited:

vanin

Colonel
65 Badges
May 7, 2008
1.090
510
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Rome Gold
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • For The Glory
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Deus Vult
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Arsenal of Democracy
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV
  • Victoria 2
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
As I said, I don't know how OR and AND work together, and I placed OR in front of only one condition because when I tried putting an AND there it took that condition into account in addition to all the other ones.

If the country is a monarchy, the ones able to be generals are the the ruler, those of the ruler family and former generals.

If the country is a republic, it should be the same as now.

If the country is a tribe, clan chiefs and the ruler would be available generals.

My issue is that I don't know how to get the conditions working for three different instances. The general title now only has exceptions for republics, wich seems to be the only way to give one type of government a different without the conditions clipping.
 

mate0815

Field Marshal
62 Badges
Feb 2, 2007
3.165
259
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Sengoku
  • Supreme Ruler 2020
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III Complete
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Prison Architect
  • Europa Universalis III
  • Cities in Motion 2
  • 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
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • East India Company
  • Cities in Motion
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
i checked the allow-conditions as i described in my last post by replacing the allow-conditions for title_general in common/titles.txt. and it works as you described your wishes:
playing a monarchy only the ruler, the males from the ruler-family and ex-generals can be picked for the job.
playing a tribe only the clanchiefs and ex-generals are available.
playing a republic its the same shown as known from vanilla.

try it out - it works, i swear. :)

My issue is that I don't know how to get the conditions working for three different instances. The general title now only has exceptions for republics, wich seems to be the only way to give one type of government a different without the conditions clipping.

no. in vanilla there are conditions for all three types of governement, but only for republics there are more conditions defined. the other types have no more limits than the general limits in the start of the allow-definitions. but its possible to add more limits as i did it in the post.
 
Last edited:

mate0815

Field Marshal
62 Badges
Feb 2, 2007
3.165
259
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Sengoku
  • Supreme Ruler 2020
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III Complete
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Prison Architect
  • Europa Universalis III
  • Cities in Motion 2
  • 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
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • East India Company
  • Cities in Motion
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
´cause i like your ideas, i made some tests, too.

after that, i guess that its necessary to preventing frustration, to give high martial skilled man a chance. therefore i made 2 new titles representing martial education and "cadet"-status. it works like a charm.

second: i think not only republics should have ways to let "outside"-chars come in command (rep: granting civic_tech and make them ex or religious_tech ->censor and ex). so i added courtiers for monarchies and bodyguards to tribals.

after all the game is playable and republics have the same good chance to get high skilled generals as the other types of governments.

all changes you can find in attachement - fell free to use it or not. ;)
 

Attachments

  • Vanins Martial MiniMod.zip
    7,6 KB · Views: 34

vanin

Colonel
65 Badges
May 7, 2008
1.090
510
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Rome Gold
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • For The Glory
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Deus Vult
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Arsenal of Democracy
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV
  • Victoria 2
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
Thanks for that one mate0815, this way it is probably alot more balanced, since you can be stuck with only 5 martial generals if you are very unlucky. This should remedy it a bit.
 

Hardradi

Lt. General
33 Badges
Apr 20, 2008
1.450
7
  • Crusader Kings II
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • For the Motherland
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Crusader Kings II: Holy Knight (pre-order)
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Divine Wind
  • Deus Vult
  • Europa Universalis III Complete
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
This is pretty cool. It nicely rebalances the command abilities of the different government types. It also makes the regional governors more important as they will be the other characters who can command.

It would also be nice to give the ruler of a monarchy a command bonus, perhaps morale. The macedonians were particularly attached to this idea of a monarch general leading them, particularly after Alexander.

Maybe it could be a decision/law like "Heroic Monarch Society" or something.