Skip to content

Instantly share code, notes, and snippets.

@warmist
Created May 13, 2016 18:03
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 warmist/1f0ba90c0f2aaa6f80dc637e85b643d0 to your computer and use it in GitHub Desktop.
Save warmist/1f0ba90c0f2aaa6f80dc637e85b643d0 to your computer and use it in GitHub Desktop.
local args={...}
local site
for k,v in ipairs(df.global.world.world_data.sites) do
if dfhack.TranslateName(v.name)==args[1] then
site=v
end
end
if site==nil then
qerror("Site not found")
end
local m=df.global.world.map
m.region_x=site.global_min_x-2 --not sure about this -2 thingy
m.region_y=site.global_min_y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment