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

pick up / drop items

Status
Not open for further replies.
Level 7
Joined
Dec 4, 2007
Messages
121
ive been working on this all morning and still got me stumped,

-hero has item A,
-hero picks up item B
-picking up item B causes item A to drop out of invintory

how can i get something like this to work?, it looks simple, but i cant seem to figure it out
 
Level 16
Joined
May 1, 2008
Messages
1,605
  • Trigger
  • Events
    • Unit - A unit acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Item B //Item-type comparison
    • ((Triggering unit) has an item of type Item A) Equal to True //Boolean Comparison
  • Actions
    • Hero - Drop (Item being manipulated) from (Triggering unit)

Wouldn't this drop item B if you pick it up?

== Try this ==
  • Test
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
      • ((Hero manipulating item) has an item of type Crown of Kings +5) Equal to True
    • Actions
      • Hero - Drop (Item carried by (Hero manipulating item) of type Crown of Kings +5) from (Hero manipulating item)
 
Status
Not open for further replies.
Top