Get Outfits from Tile
#101
Get outfit of all creatures on tile onKeyPress
onKeyPress(function(keys)
if keys ~= "PageUp" then return end
local tile = getTileUnderCursor()
local creatures = tile:getCreatures()
for i, spec in pairs(creatures) do
print("------------")
print("Outfit for: " .. spec:getName())
local outfit = spec:getOutfit()
for key, stat in pairs(outfit) do
print(key..':' .. stat)
end
end
end)
- remove | + add
26 Jul 2022