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

Multiple Channel Error?

Status
Not open for further replies.
Level 10
Joined
Apr 22, 2010
Messages
422
Hi, I have recently posted that i was working on an inventory system. Unfortunantly, for some reason, everything works except EQUIPing the item. When i equip the item, 3 separate items show up stimulously for no reason at all?

Since this is hard to explain, i have attached the map below, so you can see the error for yourself. Just pick up the items on the ground, and attempt to equip them by left clicking your "Equipment tab, then clicking your item.

For some reason, if you equip the Sword, it equips the shield, and the chest item too. Help!
(Also, if you equip the dual axes, it equips only the chest)
 

Attachments

  • Blood&Steel1.w3x
    14.8 MB · Views: 43
Level 37
Joined
Mar 6, 2006
Messages
9,243
Use Skip remaining actions:
  • Equip Item
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item being manipulated) Equal to (Item carried by Equipment of type Barbarian's Axes)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Main_Hand_Slot_OCCUPY Equal to False
              • Off_Hand_Slot_OCCUPY Equal to False
            • Then - Actions
              • Set Main_Hand_Slot_OCCUPY = True
              • Set Off_Hand_Slot_OCCUPY = True
              • Item - Remove (Item carried by Equipment of type Barbarian's Axes)
              • Unit - Remove Main-Hand Weapon Slot 0.1 from Equipment
              • Unit - Remove Off-Hand Slot 2.1 from Equipment
              • Unit - Add Barbarian Axes (In Equipment) (Main Hand) to Equipment
              • Unit - Add Barbarian Axes (In Equipment) (Off-Hand) to Equipment
              • Unit - Add Barbarian's Axes (attchment) to Hero 0012 <gen>
              • Unit - Add Barbarian's Axes (+1 Strength) to Hero 0012 <gen>
              • Set Items_in_equipment = (Items_in_equipment - 1)
            • Else - Actions
              • Game - Display to (All players) the text: Unequip your Main-H...
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item being manipulated) Equal to (Item carried by Equipment of type Barbarian Ripper)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Main_Hand_Slot_OCCUPY Equal to False
            • Then - Actions
              • Set Main_Hand_Slot_OCCUPY = True
              • Item - Remove (Item carried by Equipment of type Barbarian Ripper)
              • Unit - Remove Main-Hand Weapon Slot 0.1 from Equipment
              • Unit - Add Barbarian Ripper (In Equipment) (Main Hand) to Equipment
              • Unit - Add Barbarian Ripper (attchment) to Hero 0012 <gen>
              • Set Items_in_equipment = (Items_in_equipment - 1)
            • Else - Actions
              • Game - Display to (All players) the text: Unequip your Main-H...
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item being manipulated) Equal to (Item carried by Equipment of type Wolfskin Pelt)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Chest_Slot_OCCUPY Equal to False
            • Then - Actions
              • Set Chest_Slot_OCCUPY = True
              • Item - Remove (Item carried by Equipment of type Wolfskin Pelt)
              • Unit - Remove Armour Slot 1.1 from Equipment
              • Unit - Add Wooden Buckler (In Equipment) (Off Hand) to Equipment
              • Unit - Add Wolfskin Pelt (+2 Strength) to Hero 0012 <gen>
              • Unit - Add Wolfskin Pelt (attchment) to Hero 0012 <gen>
              • Set Items_in_equipment = (Items_in_equipment - 1)
            • Else - Actions
              • Game - Display to (All players) the text: Unequip your Armour...
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item being manipulated) Equal to (Item carried by Equipment of type Wooden Buckler)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Off_Hand_Slot_OCCUPY Equal to False
            • Then - Actions
              • Set Off_Hand_Slot_OCCUPY = True
              • Item - Remove (Item carried by Equipment of type Wooden Buckler)
              • Unit - Remove Off-Hand Slot 2.1 from Equipment
              • Unit - Add Wolfskin Pelt (In Equipment) (Wolfskin Pelt) to Equipment
              • Unit - Add Wooden Buckler (+2 Def) to Hero 0012 <gen>
              • Unit - Add Wooden Buckler (attchment) to Hero 0012 <gen>
              • Set Items_in_equipment = (Items_in_equipment - 1)
            • Else - Actions
              • Game - Display to (All players) the text: Unequip your Off-Ha...
          • Skip remaining actions
        • Else - Actions
And read about leaks: http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/

A large map like this can take a lot of time to save/load. That is why it might be better to create systems in a smaller test map and then import them into the real map.
 
Level 10
Joined
Apr 22, 2010
Messages
422
Thanks maker, your awesome :D
EDIT- Tested, but it still dosent work????
EDIT2-Wait, i put the skip in wrong place lol, lemme retry...
Edit3- Okay, i place it in the right place, but still doesn't work.
if i try to equip barbarian rippers, it also equips the wooden buckler and wolfskin pelt too.........
If you test it out, you'll see it no work
EDIT4- NEVERMIND i been testing the wrong map all along -.- sorry bout the false alarm
 
Last edited:
Status
Not open for further replies.
Top