Skip to content

Instantly share code, notes, and snippets.

@Rumrusher
Created March 16, 2016 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rumrusher/0d3ab09089e609e61a43 to your computer and use it in GitHub Desktop.
Save Rumrusher/0d3ab09089e609e61a43 to your computer and use it in GitHub Desktop.
this script will randomly add an avaliable civ to embark screen and constant use will add more. up to 10+
local dlg=require("gui.dialogs")
local testciv=df.global.world.entities.all
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[112],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[302],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[234],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[134],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[32],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[274],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[47],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[16],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().local_sites,df.global.world.world_data.sites[747],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[427],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
require("utils").insert_sorted(dfhack.gui.getCurViewscreen().available_civs,df.global.world.entities.all[math.random(1,999)],"id")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment