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

Items straight to a building?

Status
Not open for further replies.
Level 2
Joined
Jan 24, 2012
Messages
8
So, here's my problem.
I'm making a TD-map were I want a purchased Items go directly to an hero-tower/building (Inventory)
,no matter how long range.
...or without being delivered by another unit.
So, how can I get this to work?
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
So, here's my problem.
I'm making a TD-map were I want a purchased Items go directly to an hero-tower/building (Inventory)
,no matter how long range.
...or without being delivered by another unit.
So, how can I get this to work?

So you want a purchased item to be moved into the inventory of a hero?
Create a trigger with an event of: a unit aqcuires an item
then a condition of item being manipulated equals to item type of item being sold and then move it to the inventory of the hero through actions, this same thing can be done for units with inventory's. It should be quite simple.
 
Last edited:
Level 17
Joined
Feb 11, 2011
Messages
1,860
Try something like this:

  • Trigger
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Alleria's Flute of Accuracy
          • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
    • Actions
      • Hero - Drop (Item being manipulated) from (Triggering unit)
      • Hero - Give (Item being manipulated) to (Your_Building)
Note: Add all the item-types that you want the system to work for under the "Or - Any (Conditions) are true" part.
 
Status
Not open for further replies.
Top