• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Item comparison condition

Status
Not open for further replies.
Level 7
Joined
May 30, 2018
Messages
290
Is there some kind of condition that detects "last item used" or something like that...I just cant find anything like that in GUI.
I have an event "Unit uses an Item" and I need a way to refer to a certain Item-Type that is used.

Maybe somebody has an idea.
 
Level 7
Joined
May 30, 2018
Messages
290
Item-Type comparison.

Then you reference "Item being manipulated".

A unit uses an item -> Item-type of item being manipulated equal to Claws of Attack -> Do stuff

I tried the following:

  • Food
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to 1 Point
    • Actions
      • Player - Set (Owner of (Hero manipulating item)).Current gold to (((Owner of (Hero manipulating item)) Current gold) + 1)

But it doesnt seem to work. Do you have any idea what I did wrong. Basically after a hero grabs a power-up like item the player gets 1 gold added.
 
Level 7
Joined
May 30, 2018
Messages
290
Change the Event to "A unit acquires an item".

Note that there's already a powerup item (Gold Coins) that adds gold if you wish to use that instead.

mhhh, I tried that, but the trigger still doesn't seem to work, weird... Thanks for the hint with the gold coins, I could do that alternatively.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,871
mhhh, I tried that, but the trigger still doesn't seem to work, weird... Thanks for the hint with the gold coins, I could do that alternatively.
It should work, make sure your Powerup is setup correctly (copy it from an existing one) and make sure you didn't overlook anything. Also, Display a text message to see if the trigger is even going off.

Post your trigger as well.
 
Level 7
Joined
May 30, 2018
Messages
290
It should work, make sure your Powerup is setup correctly (copy it from an existing one) and make sure you didn't overlook anything. Also, Display a text message to see if the trigger is even going off.

Post your trigger as well.

Perfect, it works now, my bad! Thanks for your time :)!
 
Status
Not open for further replies.
Top