Hello,
I'm currently having trouble with a Validator called "Unit Inventory Contains Item". I've set "Find" to disable, set the "Item" to the Item, and set "Unit" to Caster. I've added the Validator to the "Loot" item, but it seems to not be working still. I'm trying to only allow 1 type of this Item to be inside the unit's inventory to then rejecting if the unit tries to pick up more than 1 type of that Item. What am I doing wrong?
Since you don't seem to be stopping back in the chat, I'll paste what I said here:
This worked for me with the default Test Hero unit and Grenade as a unique item. Simply give the appropriate Inventory ability the Combine validator ('Grenade Validator').
In case the image goes down for some reason:
Validator: Grenade is Target
Validator Type: Unit Type (Basic) Validator: Find = Disabled (Basic) Validator: Value = <Desired Item unit> (in my case, 'Item (Inventory) - Grenades')
Validator: Limit Grenade
Vaidator Type: Unit Inventory Contains Item (Basic) Validator: Find = Disabled (Basic) Validator: Item = <Desired Item unit> (Basic) Validator: Other Unit + = (None):Target:Unknown (Basic) Validator: Unit + = (None):Caster:Unknown
Hello,
I'm currently having trouble with a Validator called "Unit Inventory Contains Item". I've set "Find" to disable, set the "Item" to the Item, and set "Unit" to Caster. I've added the Validator to the "Loot" item, but it seems to not be working still. I'm trying to only allow 1 type of this Item to be inside the unit's inventory to then rejecting if the unit tries to pick up more than 1 type of that Item. What am I doing wrong?
@Darkblizzard:
Since you don't seem to be stopping back in the chat, I'll paste what I said here:
This worked for me with the default Test Hero unit and Grenade as a unique item. Simply give the appropriate Inventory ability the Combine validator ('Grenade Validator').
In case the image goes down for some reason:
Validator: Grenade is Target
Validator Type: Unit Type
(Basic) Validator: Find = Disabled
(Basic) Validator: Value = <Desired Item unit>
(in my case, 'Item (Inventory) - Grenades')Validator: Limit Grenade
Vaidator Type: Unit Inventory Contains Item
(Basic) Validator: Find = Disabled
(Basic) Validator: Item = <Desired Item unit>
(Basic) Validator: Other Unit + = (None):Target:Unknown
(Basic) Validator: Unit + = (None):Caster:Unknown
Validator: Grenade Validator
Validator Type: Combine
(Basic) Validator: Combines + = (Grenade is Target|Limit Grenade)
Thanks for the help!