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

[General] Item Drop System

Status
Not open for further replies.
Level 5
Joined
Jul 31, 2011
Messages
103
Hi hive, in my map i added a Item drop system based on the level of the item:

Level: Item
1: first weapon
2: Shield or Arrow
3: Helmet
4: Armor
5: Accessory 1
5: Accessory 2

And i added the action of move the item to a corresponding slot

Slot: Item
1: first weapon
2: Shield or Arrow
3: Helmet
4: Armor
5: Accessory 1
6: Accessory 2

Now i want to add a doble hand item, but i dont know how do it.

I need the hero acquire somethings item and cant get another item like a Shield, only the both hands weapon, keeping the slot 2 empty or with a dummy item, how i can do that?


Traslate:

Acontecimientos= Events
Condiciones= Conditions
Acciones= Actions
Unidad= Unit
here is the system

  • Item System
    • Events
      • Unit - A unit Acquire an item
      • Conditions
        • (Unit-type of (Hero manipulating item)) No Equal to |BAG|R
      • Action
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • Yes: Conditions
            • (Item level of (Item being manipulated)) Equal a 1
          • Then: Actions
            • Unit - Order (Hero manipulating item) to move (Item being manipulated) to inventory slot 1
            • Set Item = 0
            • For each (Integer Slot_Integer) from 1 to 6, do (Actions)
              • Loop: Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • Yes: Conditions
                    • (Item level of (Item carried by (Hero manipulating item) in slot Slot_Integer)) Equal a 1
                    • Then: Actions
                      • Set Item = (Item + 1)
                  • Other: Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • Yes: Conditions
                • Item Greater que 1
          • Then: Actions
            • Hero- Drop (Item being manipulated) from (Hero manipulating item)
            • Game - Display to (All players) for 5.00 seconds the text: Solo puedes equipar...
            • Other:Actions
          • Other:Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • Yes: Conditions
                • (Item level of (Item being manipulated)) Equal a 2
              • Then: Actions
                • Unit - Order (Hero manipulating item) to move (Item being manipulated) to inventory slot 2
                • Set Item = 0
                • For each (Integer Slot_Integer) from 1 to 6, do (Actions)
                  • Loop: Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • Yes: Conditions
                        • (Item level of (Item carried by (Hero manipulating item) in slot Slot_Integer)) Equal a 2
                      • Then: Actions
                        • Set Item = (Item + 1)
                      • Other:Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • Yes: Conditions
                    • Item Greater que 1
                  • Then: Actions
                    • Hero- Drop (Item being manipulated) from (Hero manipulating item)
                    • Game - Display to (All players) for 5.00 seconds the text: Solo puedes equipar...
                  • Other:Actions
              • Other:Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • Yes: Conditions
                    • (Item level of (Item being manipulated)) Equal a 3
                  • Then: Actions
                    • Unit - Order (Hero manipulating item) to move (Item being manipulated) to inventory slot 3
                    • Set Item = 0
                    • For each (Integer Slot_Integer) from 1 to 6, do (Actions)
                      • Loop: Actions
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • Yes: Conditions
                            • (Item level of (Item carried by (Hero manipulating item) in slot Slot_Integer)) Equal a 3
                          • Then: Actions
                            • Set Item = (Item + 1)
                          • Other:Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • Yes: Conditions
                        • Item Greater que 1
                        • Then: Actions
                          • Hero- Drop (Item being manipulated) from (Hero manipulating item)
                          • Game - Display to (All players) for 5.00 seconds the text: Solo puedes tener u...
                      • Other:Actions
                  • Other:Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • Yes: Conditions
                        • (Item level of (Item being manipulated)) Equal a 4
                      • Then: Actions
                        • Unit - Order (Hero manipulating item) to move (Item being manipulated) to inventory slot 4
                        • Set Item = 0
                        • For each (Integer Slot_Integer) from 1 to 6, do (Actions)
                          • Loop: Actions
                            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • Yes: Conditions
                                • (Item level of (Item carried by (Hero manipulating item) in slot Slot_Integer)) Equal a 4
                              • Then: Actions
                                • Set Item = (Item + 1)
                              • Other:Actions
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • Yes: Conditions
                            • Item Greater que 1
                            • Then: Actions
                              • Hero- Drop (Item being manipulated) from (Hero manipulating item)
                              • Game - Display to (All players) for 5.00 seconds the text: Solo puedes equipar...
                            • Other:Actions
                      • Other:Actions
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • Yes: Conditions
                            • (Item level of (Item being manipulated)) Equal a 5
                            • Then: Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • Yes: Conditions
                                  • ((Hero manipulating item) has an item of type (Item-type of (Item carried by (Hero manipulating item) in slot 5))) Equal a True
                                  • Then: Actions
                                    • Unit - Order (Hero manipulating item) to move (Item being manipulated) to inventory slot 6
                                • Other:Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • Yes: Conditions
                                      • ((Hero manipulating item) has an item of type (Item-type of (Item carried by (Hero manipulating item) in slot 5))) Equal a False
                                      • Then: Actions
                                        • Unit - Order (Hero manipulating item) to move (Item being manipulated) to inventory slot 5
                                      • Other:Actions
                              • Set Item = 0
                              • For each (Integer Slot_Integer) from 1 to 6, do (Actions)
                                • Loop: Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • Yes: Conditions
                                      • (Item level of (Item carried by (Hero manipulating item) in slot Slot_Integer)) Equal a 5
                                      • Then: Actions
                                        • Set Item = (Item + 1)
                                      • Other:Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • Yes: Conditions
                                  • Item Greater que 2
                                  • Then: Actions
                                    • Hero- Drop (Item being manipulated) from (Hero manipulating item)
                                    • Game - Display to (All players) for 5.00 seconds the text: Solo puedes equipar...
                                  • Other: Actions
                          • Other: Actions
 
Status
Not open for further replies.
Top