• 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 Problems

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
133
I am trying to make this trigger. The item is a rune like item, a Power-UP.

  • Events
    • Unit - A unit Uses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Super Mushroom
  • Actions
  • Set Variable= (Hero manipulating item)
Somehow it doesn't work. Actions don't Apply. Can someone help?
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
Is the variable an Item? In that case, use Item Being Manipulated.
If it is a unit, use Triggering Unit. (Or hero if it is a Hero Variable, if they are even created xD)
 
Level 9
Joined
Oct 11, 2009
Messages
477
As I have noticed in my previous maps. When you pick up a rune, it is not stored in your inventory instead it is destroyed and that's why your condition does not match.

Better create a buff for the ability of the rune and create a periodic trigger in which it detects the buff and executes the action(s).

I have noticed it because when I make the rune to be invulnerable in the object editor. Tested the map, I selected a hero to pick up the rune but I read a message "That target is invulnerable".
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
I don't think power-ups trigger the unit uses an item event. Instead use the unit acquires an item event.

I just tested it in the editor now. An item powerup will trigger the Unit acquires item event but not the Unit uses item event, which is why none of your actions were executing. Other than that the trigger can be exactly the same, since the same event responses are used.
 
Status
Not open for further replies.
Top