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

Combining Same Items

Status
Not open for further replies.
Level 3
Joined
May 6, 2007
Messages
32
Heres the deal:

I need a simple GUI system that can combine 2 or 3 items of the same
kind together in the same inventory. I need a system that can combine
the two items without stacking(i no how to do that already).
-Clarify: E.g. Ring of protection +1 combines with Ring of protection +1
yields Ring of protection +2

Any suggestions?

Edit: A system that is not bounded by slot numbers.
Custom scripts are okay, i understand some.
+ Rep to whoever figures it out.
 
Last edited:
Level 3
Joined
May 6, 2007
Messages
32
there is a tutorial about it here on the hive, let me just find the link :p

EDIT : http://www.hiveworkshop.com/forums/f279/how-make-item-recipes-33931/

at the first post, look as far down as possible(you will see a quote with the easiest and most effiecient ways to do it :p)

thanks for the info, but its not exactly wut im lookin for.
Im looking for a GUI system that can count the number of
same items and then combine them without them stacking
or being set to certain slot numbers.
Im still looking at it so...
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
ehm.....

GST_Nemesis said:
  • Untitled Trigger 001
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
  • Actions
    • For each (Integer A) from 1 to 6, do (If ((Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Claws of Attack +15) then do (Set ItemAmount = (ItemAmount + 1)) else do (Do nothing))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ItemAmount Equal to 2
      • Then - Actions
        • Hero - Drop (Item carried by (Hero manipulating item) of type Claws of Attack +15) from (Hero manipulating item)
        • Item - Remove (Last dropped item)
        • Hero - Drop (Item carried by (Hero manipulating item) of type Claws of Attack +15) from (Hero manipulating item)
        • Item - Remove (Last dropped item)
        • Hero - Create Crown of Kings +5 and give it to (Hero manipulating item)
      • Else - Actions
        • Set ItemAmount = 0
this can be used to turn two items of the same type into another item (for example Claws of Attack +15 + Claws of Attack +15 = Crown of Kings +5). this happens automatically but by adding the condition and action mentioned above you can make it require a recipie item. for this you need the integer variable ItemAmount.
isnt this what you are looking for? :p
 
Level 1
Joined
Nov 22, 2008
Messages
5
How would it go if you wanted to make it require a recipie and still require two of the same item.
 
Level 3
Joined
May 6, 2007
Messages
32
Many thanks Razorbrain
+ Rep for you
---
Would you also have a system that can combine more than 2 items and still be in GUI?
Say for example: RoP+1 + RoP+1 + RoP+1 = RoP+3

Thanks again for your great system.

-EDIT: There seems to be an error with your program - Does it work for more than one recipe(using same technique but with different items)
and is it stable for multiplayer?
 
Last edited:
Level 12
Joined
Aug 18, 2006
Messages
1,193
1. It works for more than 2 items of the same type, just change the "ItemAmount Equal to 2" into "ItemAmount Equal to X" with X being how many of the same item you want

2. It works for more than one recipe

3. It is stable for multiplayer
 
Level 1
Joined
Nov 22, 2008
Messages
5
I have looked around on the forums and found something on thehelper.net which is a "tutorial" on how to combine items the way DoTA does it. This link includes how to combine items both ways, with a recipie or by using automatic combinations.
Go to this link. Items - Recipes - The Helper Forums
 
Level 3
Joined
May 6, 2007
Messages
32
1. It works for more than 2 items of the same type, just change the "ItemAmount Equal to 2" into "ItemAmount Equal to X" with X being how many of the same item you want

2. It works for more than one recipe

3. It is stable for multiplayer

Thanks for the info, I found out that the trigger wasn't responding was on my behalf.

And another thanks for showing me how to use more than 2 Same-Items.
 
Status
Not open for further replies.
Top