Created
May 13, 2016 18:03
-
-
Save warmist/1f0ba90c0f2aaa6f80dc637e85b643d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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