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.
1.2K
Get Outfits from Tile #101
Get outfit of all creatures on tile onKeyPress
381b | 13 lines.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
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)

26 Jul 2022
Ads