Items are units. All items in a unit's inventory form a unit group.
Get that group from your hero, iterate through it and search for that items and count them.
I know this is a year long Necro but it seems to fit im trying to Test wether a specific unit/Item is of a certain Item Class Type
So i want to test whether
Picked Unit == Helmet
Well, for starters, you are going to need to do a pick each unit type loop to grab whatever is in the inventory at the time. Second, you need to have a way of knowing if an item is a helmet or not. You could simply name all your helm items (Helm)Brass Headgear, (Helm)Cap, etceteras. Or you could look through a list of item string names that you know are helmets, how you accomplish that is up to you.
So what im really hoping to accomplish is check whether a unit/item is of a certain class lets say i have
Helmets
Armor
Weapons
I use a Pick Each Unit in Inventory of Triggering Player
Then im trying to see if their is a way to use a condition to check whether a unit is of that certain class.
I know i could do it your way Deadzergling but im hoping for a less time consuming answer.
I have the trigger working and everything and i can just make about 30 if then else statements
but im hoping i can just check the the item is a Helmet Type
hey guys
working on a *QUEST* / objective for my map...
it requires the hero to pick up XX amount of a specific item.
but i can figuer out the triggers that CHECK for specific items in inventory.....
quest goes something liek this.
Go kill Enemy , enemy drops items , pick up items , return to Friendly that gave u quest for reward..( once u have your XX items )
Items are units. All items in a unit's inventory form a unit group. Get that group from your hero, iterate through it and search for that items and count them.
I know this is a year long Necro but it seems to fit im trying to Test wether a specific unit/Item is of a certain Item Class Type So i want to test whether
Picked Unit == Helmet
@zaysite: Go
Well, for starters, you are going to need to do a pick each unit type loop to grab whatever is in the inventory at the time. Second, you need to have a way of knowing if an item is a helmet or not. You could simply name all your helm items (Helm)Brass Headgear, (Helm)Cap, etceteras. Or you could look through a list of item string names that you know are helmets, how you accomplish that is up to you.
So what im really hoping to accomplish is check whether a unit/item is of a certain class lets say i have
Helmets
Armor
Weapons
I use a Pick Each Unit in Inventory of Triggering Player
Then im trying to see if their is a way to use a condition to check whether a unit is of that certain class.
I know i could do it your way Deadzergling but im hoping for a less time consuming answer.
I have the trigger working and everything and i can just make about 30 if then else statements
but im hoping i can just check the the item is a Helmet Type