Traits modding

Version

Please help with verifying or updating older sections of this article. At least some were last verified for version 2.6.

This article is for the PC version of Stellaris only.

This page is about Traits modding, both Species Traits and Leader Traits. Traits are defined at "common/traits/xxx.txt".

## Examples

### Species Traits

#### Ingenious

```
trait_ingenious = {
	cost = 2
	potential_crossbreeding_chance = 1.0
	allowed_archetypes = { BIOLOGICAL LITHOID }
	modifier = {
		planet_jobs_energy_produces_mult = 0.15
	}
	slave_cost = {
		energy = 50
	}
}

```

#### Proles (Pre-Sapient)

```
trait_presapient_proles = {
	cost = 1
	opposites = { "trait_presapient_natural_intellectuals" }
	initial = no
	sapient = no
	modification = yes
	icon = "gfx/interface/icons/traits/trait_primitive.dds"
	allowed_archetypes = { BIOLOGICAL PRESAPIENT LITHOID }
	modifier = {
		army_damage_mult = 0.10
		planet_jobs_minerals_produces_mult = 0.10
		planet_jobs_food_produces_mult = 0.10
		planet_jobs_physics_research_produces_mult = -0.15
		planet_jobs_engineering_research_produces_mult = -0.15
		planet_jobs_society_research_produces_mult = -0.15
	}
}

```

#### Proles (Syncretic Evolution)

```
trait_syncretic_proles = {
	cost = 1
	potential_crossbreeding_chance = 0.33
	opposites = { "trait_intelligent" "trait_erudite" "trait_natural_engineers" "trait_natural_physicists" "trait_natural_sociologists" }
	initial = no
	modification = yes
	species_potential_add = { always = no }
	icon = "gfx/interface/icons/traits/trait_primitive.dds"
	allowed_archetypes = { BIOLOGICAL LITHOID }

	custom_tooltip = TRAIT_SYNCRETIC_PROLES_EFFECT
	modifier = {
		pop_happiness = 0.10
		planet_jobs_produces_mult = 0.10
	}
}

```

### Leader Traits

#### Adaptable

```
leader_trait_adaptable = {
	cost = 1
	modification = no
	icon = "gfx/interface/icons/traits/leader_traits/leader_trait_adaptable.dds"
	self_modifier = {
		species_leader_exp_gain = 0.25
	}
	leader_potential_add = {
		NOT = { leader_class = ruler}
		NOT = { from = { has_ethic = "ethic_gestalt_consciousness" } }

	}
	leader_class = { admiral scientist general governor }
	opposites = { "leader_trait_stubborn" }
	leader_trait = all

	ai_categories = {
		engineering
		physics
		society
		survey
	}

	ai_weight = {
		weight = 50
	}
}

```

#### Corvette Focus

```
trait_ruler_corvette_focus = {
	cost = 1
	modification = no
	icon = "gfx/interface/icons/traits/leader_traits/trait_ruler_corvette_focus.dds"
	leader_potential_add = {
		NOT = { from = { has_ethic = "ethic_gestalt_consciousness" } }
	}
	modifier = {
		ship_corvette_cost_mult = -0.2
	}
	leader_trait = { ruler }
	leader_class = { ruler }
	prerequisites = { tech_destroyers } # 'corvette focus' is a bit silly when it's the only available ship
	opposites = { "trait_ruler_destroyer_focus" "trait_ruler_cruiser_focus" "trait_ruler_battleship_focus" }
}

```

#### Chosen One (Admiral)

```
leader_trait_admiral_chosen = {
	cost = 0
	modification = no
	icon = "gfx/interface/icons/traits/leader_traits/leader_trait_psionic_chosen_one.dds"
	immortal_leaders = yes
	modifier = {
		ship_weapon_damage = 0.2
		ship_evasion_mult = 0.3
	}
	leader_trait = { admiral }
	leader_class = { admiral }
	initial = no
	randomized = no
}

```

**Modding**