Been looking trying to find a system with a simple backpack ability to allow 6 more spots.
This one was rejected, but I want something like this.
https://www.hiveworkshop.com/threads/simple-backpack-system-v1-1-by-xorkatoss.181742/
The error in the above system is this
1. Open backpack
2. Put item in backpack
3. Close backpack
4. Open backpack again
5. Drop item from step 2 on the floor
6. Close backpack again
7. open backpack one more time
Item from steps 2 and 5 is teleported from the ground back into backpack.
Does anyone know what in the triggers is causing this?
This one was rejected, but I want something like this.
https://www.hiveworkshop.com/threads/simple-backpack-system-v1-1-by-xorkatoss.181742/
The error in the above system is this
1. Open backpack
2. Put item in backpack
3. Close backpack
4. Open backpack again
5. Drop item from step 2 on the floor
6. Close backpack again
7. open backpack one more time
Item from steps 2 and 5 is teleported from the ground back into backpack.
Does anyone know what in the triggers is causing this?
-
Hashtable
-

Events
-

Map initialization
-

Conditions
-

Actions
-

-------- This is the point where the saved items will be placed --------
-

-------- Does not really matter since they will be hidden anyway --------
-

Set Backpack_SavePoint = (Point(0.00, 0.00))
-

Hashtable - Create a hashtable
-

Set Backpack_Hashtable = (Last created hashtable)
-
-
OpenBackpack
-

Events
-

Unit - A unit Starts the effect of an ability
-

Conditions
-

(Ability being cast) Equal to Open Backpack
-

Actions
-

For each (Integer i) from 1 to 6, do (Actions)
-

Loop - Actions
-

Hashtable - Save Handle Of(Item carried by (Triggering unit) in slot i) as (Key (Triggering unit)) of i in Backpack_Hashtable
-

Item - Move (Item carried by (Triggering unit) in slot i) to Backpack_SavePoint
-

Item - Hide (Item carried by (Triggering unit) in slot i)
-

Hero - Give (Load i of (Key (Triggering unit)) in Backpack_Hashtable) to (Triggering unit)
-

Unit - Remove Open Backpack from (Triggering unit)
-

Unit - Add Close Backpack to (Triggering unit)
-
-
CloseBackpack
-

Events
-

Unit - A unit Starts the effect of an ability
-

Conditions
-

(Ability being cast) Equal to Close Backpack
-

Actions
-

For each (Integer i) from 1 to 6, do (Actions)
-

Loop - Actions
-

Hashtable - Save Handle Of(Item carried by (Triggering unit) in slot i) as i of (Key (Triggering unit)) in Backpack_Hashtable
-

Item - Move (Item carried by (Triggering unit) in slot i) to Backpack_SavePoint
-

Item - Hide (Item carried by (Triggering unit) in slot i)
-

Hero - Give (Load (Key (Triggering unit)) of i in Backpack_Hashtable) to (Triggering unit)
-

Unit - Remove Close Backpack from (Triggering unit)
-

Unit - Add Open Backpack to (Triggering unit)
-
