Checking Inventory Slot Help

death_knight

Dark is the heart of a corrupted man.
Reaction score
24
How do I check whether or not a hero has an item in a particular inventory slot?

Cheers
 

johnnymra

New Member
Reaction score
14
In my knowledge you can't check if he has or not any item. You can only check if he has a specific item or item of type/class/level...
As for particular slots, that is easy... there is the trigger that checks if a hero has ITEM (specific, of type, of class, of level) in slot 1/2/3/4/5/6/ANY INTEGER.
You could try, tough:
Check if number of charges remaining in item hold by hero in slot X is equal with 0.
Yet i think that items like, with no charges (example some blades of attack) because they don't have any charges may have the charges remaining number = 0... and would mess up the trigger.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Trigger:
  • ItemCheck
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Tome of Experience
            • Then - Actions
            • Else - Actions

Change '(Triggering Unit)' and 'Tome of Experience' to suit your needs.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top