• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Item to Ability

Status
Not open for further replies.
Level 8
Joined
Jun 16, 2008
Messages
333
I am working on this capture the flag map and you have to make your own paths with the tree eaters but you have to buy the item from a shop and I want to know how to make the item to turn into an ability like in Custom Hero Line Wars and Footies
 
This should do it

  • trigger
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to item
    • Actions
      • Unit - Add ability to (Buying unit)
      • Item - Remove (Sold Item)
 
First of all, your trigger should look more like this:

  • Tree Branch
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tree Eater
    • Actions
      • Unit - Add Force of Nature to (Triggering unit)
Also, you cannot add an ability to a unit properly when an item is already giving the unit that ability. If you remove the Force of Nature ability from the item and fix the trigger as I have demonstrated, it should work (it does for me, and I have it working now).
 
Status
Not open for further replies.
Back
Top