• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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