• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

Best way to deposit an item from inventory A to inventory B?

Status
Not open for further replies.

Sverkerman

Hosted Project: BoW
Level 17
Joined
Feb 28, 2010
Messages
1,325
Heya guys!

I'm currently working on a system for depositing items from your main hero's inventory to your "backpack's" inventory bag. I'm wondering if there is any spell that can be used ON an item as to deposit it? Of course this would be made in triggers, but I'm curious as to if there is a way to refer to "Item that the spell has been used on" for an example. Note that I'm not talking about an item already on the ground but inside the hero's actual inventory.

Right now my best solution is to make it command-based but I'd much rather use a more usage-friendly system, such as use a spell on the item inside your inventory that you want to deposit.

Any ideas on this?

Any help or insight on the subject results in +rep :)
 
One can use any single target spells on items in your own inventory, when allowing item as target in Object Editor.
Owned items are items beeing in an inventory.
Then use somekind of this trigger.
  • Item To backpack
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ToBackpack
      • ((Target item of ability being cast) is owned) Equal to True
    • Actions
      • -------- Repos --------
      • Hero - Give (Target item of ability being cast) to backpack
 
Status
Not open for further replies.
Top