Edicts 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.4.

Empire edicts[edit]

 country_edict = {                                       # marks an empire edict
   name = "share_the_burden"                             # name of the edict
   modifier = {
       slave_production_output = 0.1
       slave_food_output = 0.1                           # list of modifiers
       pop_robot_production_output = 0.1
   }
   influence_cost = 1                                    # influence unkeep
   allow = {
       has_policy_flag = slavery_allowed_regulated       # restrictions to activate
   }
   ai_weight = {
       weight = 1                                        # whether the AI can use the edict (1 - yes, 0 - no)
   }	
   prerequisites = {
       "tech_artificial_moral_codes"                     # tech requirements
   }
 }

Planetary edicts[edit]

 planet_edict = {                                        # marks a planetary edict
   name = "farming_subsidies"                            # name of the edict
   influence_cost = @standardEdictCost                   # influence cost (@standardEdictCost means 150)
   modifier = {
       tile_resource_food_mult = 0.25                    # list of modifiers
   }
   length = 3600                                         # edict duration in days
   potential = {
       owner = {
           NOT = {
               has_ethic = ethic_fanatic_spiritualist    # restrictions to activate
           }
       }
   }
   ai_weight = {
       weight = 1                                        # whether the AI can use the edict (1 - yes, 0 - no)
       modifier = {
           factor = 0
           num_pops > 9
       }
       modifier = {
           factor = 0
           planet_size < 10
       }		
   }	
   prerequisites = { 
       "tech_hydroponics"                                 # tech requirements
   }
 }
Modding
Static modding DefinesStatic modifiersMapSpeciesTraitsEthosGovernmentsEmpiresPoliciesEdictsTechnologyBuildingsShipsFleetsEventsCrisisAnomaliesAgenda
Dynamic modding EffectsConditionsScopesModifiersGameplayDecisionsObjectivesAI
Media/localisation Maya exporterGraphicsPortraitsFlagsEvent picturesEvent soundsInterfaceIconsMusicLocalisation
Other Console commandsSave-game editingSteam Workshop