Agenda modding

From Stellaris Wiki
Jump to: navigation, search

Version

Outliner top.png
This article may contain outdated information that is inaccurate for the current version of the game. It was last updated for 1.6.

Agendas are special modifiers given to leaders in Oligarchies.

Agendas[edit]

Vanilla game agendas include:

  • Reduced Military Station build cost
  • Reduced ship build cost, upkeep, and build speed
  • Reduced constructor, mining station, and mining network build cost
  • Increased research speed
  • Increased energy multiplier
  • Decreased population growth requirement

A completed agenda looks like so:

agenda_defensive_focus = {
	weight_modifier = {
		weight = 100
		modifier = {
			factor = 1.5
				from = {
					has_ethic = ethic_militarist
				}
			}
		modifier = {
			factor = 2
				from = {
					has_ethic = ethic_fanatic_militarist
				}
			}
		modifier = {
			factor = 1.5
			leader_class = admiral
		}
		modifier = {
			factor = 2
			leader_class = general
		}
	}
	
	modifier = {
		shipclass_military_station_build_cost_mult = -0.15
	}
}

Scopes[edit]

weight_modifier scope: The weight_modifier scope is used to reference the leader that has this agenda.

weight_modifier = {
	weight = 100
	modifier = {
		factor = 1.5
			from = {
				has_ethic = ethic_militarist
			}
		}
	modifier = {
		factor = 2
			from = {
				has_ethic = ethic_fanatic_militarist
			}
		}
	modifier = {
			factor = 1.5
			leader_class = admiral
	}
	modifier = {
		factor = 2
		leader_class = general
	}
}

The above code is used in the "Defensive Focus" agenda to increase the chances of a leader having said agenda from the leader's position or the government's ethics.

from scope: The from scope references the country that this agenda affects. In the previous code we see the lines:

modifier = {
 	factor = 2
 		from = {
 			has_ethic = ethic_fanatic_militarist
 		}
 	}

This is used to check the ethics of the government for an increased chance at a leader having the agenda.

Modifiers[edit]

Modifiers are used in two ways for agendas:

  • Modifying chances for a leader to have the agenda
  • Modifying what attributes the agenda has

Leader Chances[edit]

To modify the Leader Chances you first need to be in the weight_modifier scope. Then we need to provide a base value for weight, this should in most cases just be 100. It should look like this:

weight_modifier = {
	weight = 100
}

This makes sure equal chances are set but we want to modify it with specific values now. To do this all we need to do is start a modifier scope. We then tell the modifier the factor to multiply the base weight by, I'm going to choose 1.5. It should now look something like this:

weight_modifier = {
	weight = 100
	modifier = {
		factor = 1.5
	}
}

Looks good, but we need to add a statement that determines if we should add this. There are many ways of doing this, we can use conditions or we can use an easy if statement such as leader_class = admiral. Alternatively we can use our from scope to check the conditions in the government. If we use the from scope, it looks a little like this:

weight_modifier = {
	weight = 100
	modifier = {
		factor = 1.5
		from = {
			has_ethic = ethic_militarist
		}
	}
}

The above code describes how to modify the value of weight by 1.5 if the government has the ethic militarist.

Agenda Attributes[edit]

These are pretty simple to do, simply add the modifier scope in the agenda with what attribute you want to give it in side of the scope. It looks a little like this:

modifier = {
	shipclass_military_station_build_cost_mult = -0.15
}
Modding
Static modding DefinesStatic modifiersMapSpeciesTraitsEthosGovernmentsEmpiresPoliciesEdictsTechnologyBuildingsShipsFleetsEventsCrisisAnomaliesAgenda
Dynamic modding EffectsConditionsScopesModifiersGameplayDecisionsObjectivesAI
Media/localisation Maya exporterGraphicsPortraitsFlagsEvent picturesEvent soundsInterfaceIconsMusicLocalisation
Other Console commandsSave-game editingSteam Workshop