unretire-anyone seems to start the people you unretire naked and without any items, only with any artifacts they hold. Is there any way to fix that? e.g by giving them clothing and items appropriate to their civ?
hmm have you tested this with any historical figure that shown up before? or just random ones? this might be the 'historical figure not having a unit body thus when the game gives them one it's only holding what they were told to hold during world gen, vs seeing them at a site which the game loads them into the site themed outfits.
fake edit: ok just tested this with historical figures I seen before in adventure mode and yeah it looks like the issue here is that grabbing anyone from the game's history pool that didn't show up before as a unit will not load in with clothes if you use them.
so it basically unretire anyone allows you to grab any historical figure including those with no unit tied to them and play them, which often ends up with creating a unit for them that doesn't have any standard clothes or inventory.
I guess the solution for this is to uhh retire then unretire the naked adventurer then see if the game would give them clothes in the 2 weeks~ time jump, or only use unretire anyone on folks you have seen before in adventure mode or probably fort mode.
edit:
--Sends your adventurer to the location of your quest log cursor.
--[====[
questport
=========
Sends your adventurer to the location of your quest log cursor.
Usable from travel mode or on foot.
Don't try to travel normally while in forbidden travel areas (mountains, lairs) and you can questport out.
Rum: ok so uhh the fix to this was updating a few lines to the new names.
]====]
local gui = require 'gui'
local qp = dfhack.gui.getViewscreenByType(df.viewscreen_dungeonmodest, 0)
or qerror("Could not find main adventure mode screen")
local qmap = dfhack.gui.getViewscreenByType(df.viewscreen_adventure_logst, 0)
or qerror("Could not find quest log screen")
local qarm = df.global.world.armies.all
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
df.global.ui_advmode.travel_origin_x = qx
df.global.ui_advmode.travel_origin_y = qy
if df.global.ui_advmode.menu == df.ui_advmode_menu.Default then
gui.simulateInput(qp.child, 'LEAVESCREEN')
df.global.ui_advmode.menu = df.ui_advmode_menu.Travel
df.global.ui_advmode.travel_not_moved = true
gui.simulateInput(qp, 'CURSOR_DOWN')
dfhack.timeout(15, 'frames', function()
gui.simulateInput(qp, 'A_TRAVEL_LOG')
end)
elseif df.global.ui_advmode.menu == df.ui_advmode_menu.Travel then
for k,v in ipairs(qarm) do
if v.flags.player then
local my_arm = v.pos
if rx ~= qx or ry ~= qy then
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
for anyone who want to use questport again in the new dfhack