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

shop without dropping items

Status
Not open for further replies.
Level 6
Joined
Mar 2, 2013
Messages
127
Example player 1 has 6 items in his inventory and 3 of the items are all the items you need to make an item, but you need 1 more item (scroll) to finish the item.
How would I set it up so you wound'nt have to drop an item to buy complete a recipe item combine.
 
Level 6
Joined
Mar 2, 2013
Messages
127
That doesn't work, it just doesn't let me shop from the marketplace at all...

EDIT: Here is what I need
How can I have a full inventory and I purchase an item for a recipe it doesn't say "Inventory Full" and completes the recipe instead?
 
Last edited:
Level 6
Joined
Mar 2, 2013
Messages
127
Well I started working on it, looks like Im gonna have to do this for every item. Reason for the last part of code is for kon/pakkuns(unit courier) Is there a way to put the item into a units inventory?

  • Scroll of ANBU Platings
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • Set ItemCombine = (Position of (Triggering unit))
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Item-type of (Item being manipulated)) Equal to (==) Scroll of ANBU Platings(NEW)
            • ((Triggering unit) has an item of type Shinobi Cloak) Equal to (==) True
            • ((Triggering unit) has an item of type Shinobi Uniform) Equal to (==) True
            • (Number of items carried by (Triggering unit)) Equal to (==) 6
            • ((Triggering unit) is A Hero) Equal to (==) True
          • Then - Actions
            • Item - Remove (Item carried by (Hero manipulating item) of type Shinobi Cloak)
            • Item - Remove (Item carried by (Hero manipulating item) of type Shinobi Uniform)
            • Hero - Create ANBU Platings and give it to (Triggering unit)
          • Else - Actions
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Item-type of (Item being manipulated)) Equal to (==) Scroll of ANBU Platings(NEW)
                • ((Triggering unit) is A Hero) Equal to (==) True
              • Then - Actions
                • Hero - Create Scroll of ANBU Platings and give it to (Hero manipulating item)
              • Else - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Item-type of (Item being manipulated)) Equal to (==) Scroll of ANBU Platings(NEW)
                  • Then - Actions
                    • Item - Create Scroll of ANBU Platings at ItemCombine
                  • Else - Actions
 
Status
Not open for further replies.
Top