Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local qmap=dfhack.gui.getCurViewscreen()
- local qx=qmap.cursor_x*48
- local qy=qmap.cursor_y*48
- local rx=qmap.player_region_x*48
- local ry=qmap.player_region_y*48
- local qarm=df.global.world.armies.all
- for k,v in ipairs(qarm) do
- if v.flags[0] then
- local my_arm=df.global.world.armies.all[k].pos
- if rx~=qx then do
- my_arm.x=qx
- my_arm.y=qy
- qmap.player_region_x=qmap.cursor_x
- qmap.player_region_y=qmap.cursor_y
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement