- Joined
- Jul 6, 2009
- Messages
- 1,885
I've got a problem with some item manipulating trigger.
I saved units' items using hashtables:
So how can i make them properly load inventories? (I hope you get point)
+rep for help
I saved units' items using hashtables:
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Hashtable - Save Handle Of(Item carried by (Picked unit) in slot (Integer A)) as (9 + (Integer A)) of (Key (Picked unit)) in Save_Hashtable
-
-
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Item - Remove (Item carried by (Picked unit) in slot (Integer A))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load (9 + (Integer A)) of (Key (Picked unit)) in Save_Hashtable) Not equal to No item
-
-
Then - Actions
-
Hero - Create (Item-type of (Load (9 + (Integer A)) of (Key (Picked unit)) in Save_Hashtable)) and give it to (Picked unit)
-
-
Else - Actions
-
Do nothing
-
-
-
-
So how can i make them properly load inventories? (I hope you get point)
+rep for help