Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
1K
Get Outfits from Tile #101
Get outfit of all creatures on tile onKeyPress
381b | 13 lines.
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
Ads