Modding Leaders

From Victoria 1 Wiki
Jump to navigation Jump to search

(Original text by Havard)

Leader definitions

The leaders in Victoria are defined in files for each country - leaders.tag - located in the VICTORIA\db\leaders folder. In addition to the required id, type, name and dates there are two parameters: personality and background.

As an example, let's take a look at the Mexican general Santa Ana:

leader = {
	name = "Santa Ana"  ## Antonio Lopez de Santa Ana ##
	category = general
	id = {
		type = 6
		id = 14801
	}

	date = { year = 1836 }
	deathdate = { year = 1866 }

	personality = wrathful
	background = warmonger
}

The name can be any text string but too long names will spill over into the UI and won't look good. That is the reason only last names are used by default.

The category has two alternatives: general for army leaders and admiral for navy leaders

The id must be unique for each leader.

Dates can be year only like the example or a full date, like e.g.:

date = {
	year = 1834
}
deathdate = {
	day = 13
	month = july
	year = 1856
}

The leader personalities and backgrounds give each leader their special caracteristica. For further information about personality and background definitions, see below.

Leader backgrounds

The various leader backgrounds give bonuses or penalties to up to ten different parameters: Shock, Defence, Elan, Org(anization), Speed, Terrain, Attrition, Fire, Exp(erience) and Reliability. These are defined in the file background_effects.csv located in the VICTORIA\db\leaders folder.

The file is a semicolon-separated file with twelve columns: The background name and the ten parameters. The last column contains an X. The numbers are percentage modifiers (are they???), so e.g. a 6 on shock gives a 6% better shock value for the unit under this leader's command. E.g.:

eccentric_genius;1;0;2;0;15;0;0;2;0;0;X


Leader personalities

In the same was as the backgrounds, the leader personalities gives modifiers to the same ten parameters: Shock, Defence, Elan, Org(anization), Speed, Terrain, Attrition, Fire, Exp(erience) and Reliability. These are defined in the file personality_effects.csv located in the VICTORIA\db\leaders folder.

As for the background definitions the file is a semicolon-separated file with twelve columns: The personality name and the ten parameters. The last column contains an X.