• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!


This bundle is marked as pending. It has not been reviewed by a staff member yet.


TasInventoryEx is a custom UI system/addition for Warcraft 3 V1.31 or higher, In vjass or Lua.
With it heroes can equip more items (use item-boni).

There is a version (jass or vjass) for Warcraft 3 V1.26 without customUI, using an Unit as substitude.


The storage UI is a grid of buttons, each contains upto one item. One can scroll up and down by rolling the mouse wheel while the mouse points at the TasInventoryEx UI. The storage is only shown after you clicked the showbutton (default next to the inventory) and it can be closed/hidden again.

The position and amount of buttons can be changed inside the System's setup (top of TasInventorEx script file).
To change the Size of buttons or the highlight on mouse over you need to change the included fdf.
Reuses the Tooltipscale from HeroScoreFrame options when provided.

How this works: When an unit has more than one Inventory skill the unit can equip/carry more items, but the items not in the main inventory have no user Interface.
TasInventoryEx displays the items from this other inventories and allows to move Items into the main inventory or drop them, if the main inventory is full.

Hence to use this System you need to have clones of the inventory hero and tell TasInventoryEx the objectIDs.
There is a bug that custom abilities without any changed field (pink) can not be given to units.
Find these in TasInventoryEx to setup the inventory skills used by TasInventoryEx:
private function UserInit takes nothing returns nothing
    set InventorySkills[0] = 'AInv'
    set InventorySkills[1] = 'A000'
    set InventorySkills[2] = 'A001'
,InventorySkills = {
These inventories are added to an unit which gains an item, when it has the first Inventory-Skill (jass index 0 Lua index 1) (automatic by TasInventoryEx).
This System does not clean dead/removed units.
When there should be units that have an inventory but should not use TasInventoryEx then give them not the first inventory skill (default Inventory Hero 'AInv') (jass index 0 Lua index 1).

As this is based on the Inventory-Skills each provided ability increases the max inventory Size by upto 6.
The default trigger item api does not work for items in the other inventories.
Therefore "unit has Item (of type)" might say false when the item is equiped to the hero.

Items transfered between units only consider main inventory
Item given by trigger only consider main inventory

When the main inventory is full, no items can be gained until there is a free slot again.
TasInventoryEx creates it's events at 0s or 0.01s hence they happen after events created before (all normal created GUI events).

TasInventoryEx destroys & recreates Items to drop/move them. Hence many trigger item changes are gone when using TasInventoryEx. Data kept is:

The function ValidUnit can be used to disallow units to use this System. You find it near the top of the code.
private function ValidUnit takes unit u returns boolean
    // Units with the Locust skill do not use this System
    if GetUnitAbilityLevel(u, 'Aloc') > 0 then 
        return false

    // The extra Players don't use this
    if GetPlayerId(GetOwningPlayer(u)) >= bj_MAX_PLAYERS then
        return false

    if not IsUnitType(u, UNIT_TYPE_HERO) then 
        return false
    return true
-- filters out units that should not Use TasInventoryEx
,ValidUnit = function(unit)

How to install



Requiers Warcraft 3 1.31+ or higher
  • Copy the TasInventoryEx Folder (trigger Editor).
  • remove the Lua folder, if you are in jass mode. Or remove the vjass folder, if your map is in Lua mode.
  • export
    • war3mapImported\TasInventoryEx.fdf
    • war3mapImported\TasInventoryEx.toc
    • import them into your map
  • Tell the system the inventory Abilities
  • Installed

  • Copy the TasInventoryEx Folder (trigger Editor) or only the vjass script.
  • Copy the TasInventoryEx abilities
  • Copy the TasInventoryEx Unit
  • Update references to abilites and the unit in the TasInventoryExInit (normal jass) otherwise in the globals/UserInit of the vjass script
  • Tell the system the inventory Abilities
  • Installed




V1.5) ShowButton can Close
V1.4b) mp desync fix
V1.4a) (vjass) Reinc fix, hide InventoryEx button for non valid
V1.4) ValidUnit filter function
V1.3c) Hero only
V1.3b) Reincarnation Fix
V1.3a) Revive Fix, Drop update
V1.3)Filters destroyed Gained Items
1.2a) vjass
optional works without table.
Fixed a local reference to an item in function RemoveIndex​
Fix prehold Items, purge consumed​
Fixed some bug with morphing Heroes
Recreated Items keep more data​
Keywords: Inventory, More Items, Equip

TasInventoryEx (Map)

TasInventoryEx WC126 (Map)

Level 17
Oct 17, 2012
After testing the system for a bit, I went into some issues.
  • When the first grid is filled up and I use the scroll bar to go to the next grid, I get Sammy icons until I move the scroll further. Bugs.png
  • If the custom inventory and the default inventory are both full and I free up an item slot of the custom inventory, I can't pick up an item because the default one is full.
A suggestion: Perhaps, provide a button to display more than one row at a time. Even though there is the scroll bar and your other system sort of fills the niche here, this feature could potentially make the viewing of items more pleasant.
Last edited:
Updated Post and System to V1.1)
inventories are now made permanent, which fixes problems with morphing heroes.
Recreated Items now copy: Charges, Invul, UserData, Player, Life

A suggestion: Perhaps, provide a button to display more than one row at a time. Even though there is the scroll bar and your other system sort of fills the niche here, this feature could potentially make the viewing of items more pleasant.
Can't you just change the Rows/Cols values in the systems data? They define the amount of buttons.

When the first grid is filled up and I use the scroll bar to go to the next grid, I get Sammy icons until I move the scroll further.
Can you tell a bit more about this?

Edit: Updated to V1.2)
Items carried before getting TasInventoryEx are now added to TasInventoryEx, before they were unreachable.
Using an item checks for broken items removes them

Edit: Updated vjass to V1.2a)
optional works without table (lighter version, but takes a hashtable).
Fixed a reference leak to an item in function RemoveIndex.

Edit: Updated to V1.3)
Filters now items that are destroyed (ItemCode <= 0) inside the item gain event. Previously they were added as broken item into the inventory UI

Edit: Updated to V1.3a)
Moved the removed Item Filter to the top of the gain item function
Removed the ItemUse check and use the Drop event instead
Fixed additional Inventories after Revive, does not Include Reincarnation. Sadly the last inventory items will droped after revive, if an unit has to many items.
Last edited:
Can you duing a ver. For warcraft 1.26
I can not create custom UI in Warcraft 3 V1.26. Some can, but I do not.

I could make a version in which an additional unit replaces the custom UI. It would show 1 inventory Page and has abilities to navigate the current page & move item of the current page to the main inventory. A little bit clunky as one than moves selection but would not require any item specific data (which is the idea of this system works with default items).
Should work in default warcraft 3 V1.26, without any hacks/3.Party additions.

Updated to V1.3b)
Now keeps working after reincarnation.

Edit: Added the Warcraft 3 V1.26 Version, (normal jass). Instead of CustomUI there is an Unit with abilities and a preview inventory.
Last edited:
The game does something quite unexpected:
Warcraft 3 returns rubbish when using GetUnitAbilityLevel onto a inventory skill (at least in V1.26 and V1.31.1). I check for inventory (Hero) > 0, unit has inventory (unit, human) and the game says that is fine and gives the unit the inventories.
Edit: It seems to be only rubbish for the inventory(Hero) 'Ainv'.

Edit: Updated to V1.3c)
Works now only for Heroes, because the inventory Skill check is buggy.

Edit: Updated to V1.4)
Added a function ValidUnit(unit) to filter out unwanted users.
On default now units of Players that can not be real players are excluded (like Neutral Hostile, Neutral Extra..).
Last edited:
Nice job! I thought this was impossible. One small criticism: In the demo map the footman still has the bag icon despite not being a valid unit according to the filter. I tested it with a unit with no inventory, a phoenix, and it doesn't show the bag icon which is normal.

edit: Found another bug. If a hero dies with 18 items they lose/drop (?) 6 of them upon reviving. To reproduce, pick up items until no more can be carried,then kill the hero. I tied commenting out the reference to the 2nd inventory skill and items were still lost so I suspect it has to do with a loop.

edit2: Please test the revive hero actions more. They are very glitchy right now. I was testing on the JASS version. It seems the items are dropped at the hero's feet during revival not deleted.


  • footman with icon.png
    footman with icon.png
    481.3 KB · Views: 59
  • normal phoenix.png
    normal phoenix.png
    812 KB · Views: 60
Last edited:
Ty, for your feedback.
Hiding for non heroes is easy to do.

I am stuck with how I would fix the revive problem.

fixing that revive glitch is not so easy. Problem is that after revive the multiple inventory feature breaks. And hence the inventories have to be removed and readded. But here one also has to be careful because when one just readds all inventories the inventory grows, then the hero could carry 6 items more after each revive/reinc.

Currently I add items than add a skill to move them into the next page, but it seems that InventorySkill[0] somehow breaks and has 0 Size until InventorySkill[1] is regained. Which means the hero will drop 6 items after revive/reinc.

Edit: Updated to V1.4a.
The Bag Button will only show when the unit is a ValidUnit.
(vjass) Fixed a bug with reincarnation not readding inventories. Also for vjass in the V1.26 map.
Last edited:
It seems pauseunit can cause bug on this system
Thanks for your feedback.
One has to do the same as after revive/reinc.
Right after you unpause the unit tell the system to readd the inventories and items. Otherwise the unit can only fill the main inventory with items (no more additional inventories).

call TasInventoryEx_ReAddInventories(unit)

Can't do that right now as there is no external access to ReAddInventories(unit).

Edit: It also happens when an unit uses a channel abiliy with "disable other abilities" enabled.
Edit: And even for Doom. Probably for all skills/situations that silence inventories.
Last edited:
Level 8
May 19, 2016
awesome! i'd love to use it!
but its a bit weird if your Heroes Normal Inventory is full but you have space in your ''bag'' it says that you cant pick up the item because ''Inventory full'' so you have to rearrange your whole inventory - to bag - from bag - to pick up the new item