- Joined
- Jan 11, 2009
- Messages
- 282
I think much of you bother of blizzard's Inventory, that it can only carry 6 items and that you can't change it without knowing Jass or something else.
So, Here's my solution of making a Inventory with 12 places with only 2 triggers and 13 Variables:
Requirements:
13 Variables
2 Triggers
2 Abilitys
1 Unit
Variables (all have to be Item-Typ):
Inventory1A,B,C,D,E,F
Inventory2A,B,C,D,E,F
Unit
Abilitys:
Inventory1 (how the number says, give THIS ability to the unit FIRST)
Inventory2
Unit (Don't forget, set the Variable Unit = The Unit with the Ability):
Just one random unit, testet it on much units, all work properly.
Triggers :
Inventory 1
Inventory 2
Added a item Version, now the trigger has a little bit changed and you have only 10 places (2 for each bags) but it is instant cast time, so now there is no waiting in fight to change sets or items.
So, Here's my solution of making a Inventory with 12 places with only 2 triggers and 13 Variables:
Requirements:
13 Variables
2 Triggers
2 Abilitys
1 Unit
Variables (all have to be Item-Typ):
Inventory1A,B,C,D,E,F
Inventory2A,B,C,D,E,F
Unit
Abilitys:
Inventory1 (how the number says, give THIS ability to the unit FIRST)
Inventory2
Unit (Don't forget, set the Variable Unit = The Unit with the Ability):
Just one random unit, testet it on much units, all work properly.
Triggers :
Inventory 1
- Events
-
Einheit - A unit stops casting an Ability
- Conditions
-
(Ability being cast) is Inventory 1
- Actions
- Set Inventory1A = (Item-type of (Item carried by Unit in slot 1))
- Set Inventory1B = (Item-type of (Item carried by Unit in slot 2))
- Set Inventory1C = (Item-type of (Item carried by Unit in slot 3))
- Set Inventory1D = (Item-type of (Item carried by Unit in slot 4))
- Set Inventory1E = (Item-type of (Item carried by Unit in slot 5))
- Set Inventory1F = (Item-type of (Item carried by Unit in slot 6))
- Hero - Drop (Item carried by Unit in slot 1) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 2) from Unit
- Item - Remove (Last dropped item)
- Held - Drop (Item carried by Unit in slot 3) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 4) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 5) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 6) from Unit
- Item - Remove (Last dropped item)
- Hero - Create Inventory2A and give it to Unit
- Hero - Create Inventory2B and give it to Unit
- Hero - Create Inventory2C and give it to Unit
- Hero - Create Inventory2D and give it to Unit
- Hero - Create Inventory2E and give it to Unit
- Hero - Create Inventory2F and give it to Unit
- Unit - Remove Inventory 1 from Unit
- Unit - Add Inventory 2 to Unit
Inventory 2
- Events
-
Einheit - A unit stops casting an Ability
- Conditions
-
(Ability being cast) is Inventory 2
- Actions
- Set Inventory2A = (Item-type of (Item carried by Unit in slot 1))
- Set Inventory2B = (Item-type of (Item carried by Unit in slot 2))
- Set Inventory2C = (Item-type of (Item carried by Unit in slot 3))
- Set Inventory2D = (Item-type of (Item carried by Unit in slot 4))
- Set Inventory2E = (Item-type of (Item carried by Unit in slot 5))
- Set Inventory2F = (Item-type of (Item carried by Unit in slot 6))
- Hero - Drop (Item carried by Unit in slot 1) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 2) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 3) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 4) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 5) from Unit
- Item - Remove (Last dropped item)
- Hero - Drop (Item carried by Unit in slot 6) from Unit
- Item - Remove (Last dropped item)
- Hero - Create Inventory1A and give it to Unit
- Hero - Create Inventory1B and give it to Unit
- Hero - Create Inventory1C and give it to Unit
- Hero - Create Inventory1D and give it to Unit
- Hero - Create Inventory1E and give it to Unit
- Hero - Create Inventory1F and give it to Unit
- Unit - Remove Inventory 2 from Unit
- Unit - Add Inventory 1 to Unit
Added a item Version, now the trigger has a little bit changed and you have only 10 places (2 for each bags) but it is instant cast time, so now there is no waiting in fight to change sets or items.
Attachments
Last edited by a moderator: