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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Backpack Inventory System by Bugbuster96.w3x
Variables
Backpack Inventory System
Initialize system
move backpack
backpack inventory
hero inventory
clear leak
change items
Stuff
Readme
Initialization
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
Hero
unit
No
region
rect
No
Default melee game initialization for all players
Initialize system
Events
Map initialization
Conditions
Actions
Unit - Hide Backpack 0001 <gen>
Set Variable Set region = ItemBackpackPickUp <gen>
move backpack
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit - Move Backpack 0001 <gen> instantly to (Position of Paladin 0000 <gen>)
Region - Center region on (Position of Paladin 0000 <gen>)
backpack inventory
Events
Unit - Paladin 0000 <gen> Begins casting an ability
Conditions
(Ability being cast) Equal to Open Backpack
Actions
Unit - Unhide Backpack 0001 <gen>
Selection - Select Backpack 0001 <gen> for Player 1 (Red)
hero inventory
Events
Unit - Backpack 0001 <gen> Begins casting an ability
Conditions
(Ability being cast) Equal to Close Backpack
Actions
Unit - Hide Backpack 0001 <gen>
Selection - Select Paladin 0000 <gen> for Player 1 (Red)
clear leak
Events
Player - Player 1 (Red) Deselects a unit
Conditions
(Triggering unit) Equal to Backpack 0001 <gen>
Actions
Unit - Hide Backpack 0001 <gen>
change items
Events
Unit - Paladin 0000 <gen> Loses an item
Conditions
Actions
Wait 0.10 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Item being manipulated) is in region) Equal to True
Then - Actions
Unit - Unhide Backpack 0001 <gen>
Unit - Order Backpack 0001 <gen> to Right-Click . (Item being manipulated)
Wait 1.00 seconds
Unit - Hide Backpack 0001 <gen>
Else - Actions
-----------------Backpack Inventory System by Bugbuster96-----------------
This is a simple backpack system, it's in GUI but it is NOT MUI, it is supposed to be used in Singleplayer maps
To add this to you map be sure to check the "Automatically create unkown while pasting trigger data" in File >> Preferences >> General
- Copy the "Backpack Inventory System" folder and the "Open Backpack", "Close Backpack" and the "Inventory (Backpack)" abilities and the "Backpack" unit.
- Add the ''Open Backpack'' ability to your Hero and create the little region somewhere, be sure that it has to be that small.
- Change every "Paladin 0000" to your Hero, every "Backpack 0001" to your Backpack unit and the "Set region = ItemBackpackPickUp" to your region (the small region)
(I am sorry that it can't be simpler) Also Add the Inventory Unit somewhere.
Enjoy!
Initialization
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Game - Display to (All players) for 1000000000.00 seconds the text: -----------|c00FAEE05Backpack Inventory System|r by |c00FF0000Bugbuster96|r-----------|c0000BF00To switch items just right-click on the item in your inventory then click on the Hero. To show or hide the Backpack click the Backpack ability.|r
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.