GetCurrentBackpackUpgrade

From ESOUI Wiki

Revision as of 23:58, 22 February 2019 by DavidJCobb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the number of times the player has upgraded their inventory capacity.

Syntax

local upgrades = GetCurrentBackpackUpgrade()
local max      = GetMaxBackpackUpgrade()
if upgrades < max then
   local slotsPerUpgrade   = GetNumBackpackSlotsPerUpgrade()
   local remainingUpgrades = max - upgrades
   local remainingSlots    = slotsPerUpgrade * remainingUpgrades
   --
   d("Keep upgrading your backpack, and you'll be able to hold " .. remainingSlots .. " more items!")
else
   d("You've fully upgraded your backpack!")
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox