• 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
72 Badges
May 7, 2008
1.090
675
  • Crusader Kings II
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis 4: Emperor
  • 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
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.
 
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:
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.
 
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:
´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
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.
 
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.