Does anyone know of a way to test if the newly acquired item is an item of a certain category under the conditions option? I can't seem to find the comparison for item category/Classes.
you want to get the class of an item? For example you have a trigger that you want to happen only when you pick up a container to run?
There a way but i'll tell you right now it might not make too much sense. I needed something like this in the map im working on, and the way i did it was use 2 catalog get functions.
(Value of Items (Value of Units (String((Unit type of (Triggering inventory item)))) "Item" for player Any Player) "Class" for player Any Player) == Value 2
I also attached a picture of how it looks to help you understand that ^
Note, that it gets the class of the item as a string, Also make sure that the ID of the item is the same as the name except w/o spaces(didnt test this, but just makes sense)
Does anyone know of a way to test if the newly acquired item is an item of a certain category under the conditions option? I can't seem to find the comparison for item category/Classes.
Any help is much appreciated,
-Rage
@RighteousRage:
you want to get the class of an item? For example you have a trigger that you want to happen only when you pick up a container to run?
There a way but i'll tell you right now it might not make too much sense. I needed something like this in the map im working on, and the way i did it was use 2 catalog get functions.
(Value of Items (Value of Units (String((Unit type of (Triggering inventory item)))) "Item" for player Any Player) "Class" for player Any Player) == Value 2
I also attached a picture of how it looks to help you understand that ^
Note, that it gets the class of the item as a string, Also make sure that the ID of the item is the same as the name except w/o spaces(didnt test this, but just makes sense)