Talk:Edicts modding

From Stellaris Wiki
Jump to navigation Jump to search


Outliner top.png
Start - This article is considered a Start-class article on the wiki quality scale

Scripted effects[edit source]

I am going to share my about how to add a scripted effect. Note that this is not a copy paste from a working code so it can contain typos and syntax erros. That is why I am not adding it to the article

(inside of the planet edict)

    effect = {		#adds scripted effects
  add_modifier={modifier = dummy_planetary_modifier #this modifier has to be created in the static_modifiers
                      days= 360 #duration of the planetary modifier
   log ="edict of [This.GetName] " #writes to the log file and adds name of the planet 
       hidden_effect = { #this is supposedly about unshown effects but I don't know the difference. 
   set_planet_flag = dummy_flag   # adds a planet flag

— Preceding unsigned comment added by (talk) 07:39, 4 June 2017‎ (CEST)