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

Merging Items?

Status
Not open for further replies.
Level 3
Joined
Apr 21, 2012
Messages
33
Sorry, but I don't understand your use of language.
Maybe you are asking about how can you make an item that require merging 2 or more items together? If that you just use trigger to check the inventory of the unit, and if it has all required item then remove those requirements and add new merged item. If I misunderstood then sorry.
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Sorry, but I don't understand your use of language.
Maybe you are asking about how can you make an item that require merging 2 or more items together? If that you just use trigger to check the inventory of the unit, and if it has all required item then remove those requirements and add new merged item. If I misunderstood then sorry.

Rephrased
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
The question is still very vague.
If you want something like a recipe system, then search the spells-section.

I've also made a recipe system like that (GUI), but haven't actually released that anywhere.
The idea is simple: you have 2 items in your inventory. You buy a recipe and it combines those 2 (or more) items into 1 item.
(Like Claws of Attack + Orb of Lightning --> Claws of Lightning).
 
Level 11
Joined
Jun 15, 2011
Messages
447
Events - A unit acquires an item
Conditions - (none)
Actions - (Use If then else multiple actions)

If item type of item being manipulated equal to (1st item) and Hero manipulating item has item type of (2nd item) then do remove item carried by hero of type (1st item) remove item carried by hero of type (2nd item) Create (3rd item) and give it to (Unit)

If item type of item being manipulated equal to (2nd item) and Hero manipulating item has item type of (1st item) then do remove item carried by hero of type (1st item) remove item carried by hero of type (2nd item) Create (3rd item) and give it to (Unit)

(You may also add a special effect when the items are merged...)
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Like I said in ur last thread, Legendary, before making a new thread, search for some thread that have similar problem to urs. If u dont find any of them, then that's when u make a new thread (or may be when u are too tired to do the search :D).
For the merging system, it's not really complicated. U just need to do the trigger like this:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Boots of Speed
              • ((Triggering unit) has an item of type Gloves of Haste) Equal to True
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Gloves of Haste
              • ((Triggering unit) has an item of type Boots of Speed) Equal to True
    • Actions
      • Item - Remove (Item carried by (Triggering unit) of type Boots of Speed)
      • Item - Remove (Item carried by (Triggering unit) of type Gloves of Haste)
      • Item - Create Berserker Boots at (Position of (Triggering unit))
      • Hero - Give (Last created item) to (Triggering unit)
This is just an example.
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Like I said in ur last thread, Legendary, before making a new thread, search for some thread that have similar problem to urs. If u dont find any of them, then that's when u make a new thread (or may be when u are too tired to do the search :D).
For the merging system, it's not really complicated. U just need to do the trigger like this:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Boots of Speed
              • ((Triggering unit) has an item of type Gloves of Haste) Equal to True
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Gloves of Haste
              • ((Triggering unit) has an item of type Boots of Speed) Equal to True
    • Actions
      • Item - Remove (Item carried by (Triggering unit) of type Boots of Speed)
      • Item - Remove (Item carried by (Triggering unit) of type Gloves of Haste)
      • Item - Create Berserker Boots at (Position of (Triggering unit))
      • Hero - Give (Last created item) to (Triggering unit)
This is just an example.

Thanks
 
Status
Not open for further replies.
Top