- Joined
- Nov 20, 2007
- Messages
- 660
I need help at my bag system ... i don't know why it didn't work ... there is the Trigger.Who solve the problem, please post here 
Bag System

Bag System
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Close Bag
-
-
Then - Actions
-
Set Player_Bag_Detect = (((Player number of (Owner of (Casting unit))) x 6) - 6)
-
For each (Integer A) from Player_Bag_Detect to (Player_Bag_Detect + 6), do (Actions)
-
Loop - Actions
-
Set Bag_System_Temp_Integer = (Bag_System_Temp_Integer + 1)
-
Set Players_Bags_Items[(Integer A)] = (Item-type of (Item carried by (Casting unit) in slot Bag_System_Temp_Integer))
-
Item - Remove (Item carried by (Casting unit) in slot Bag_System_Temp_Integer)
-
Hero - Create Player_Items[(Integer A)] and give it to (Casting unit)
-
-
-
Unit - Add Open Bag to (Casting unit)
-
Unit - Remove Close Bag from (Casting unit)
-
Set Bag_System_Temp_Integer = 0
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Open Bag
-
-
Then - Actions
-
Set Player_Bag_Detect = (((Player number of (Owner of (Casting unit))) x 6) - 6)
-
For each (Integer A) from Player_Bag_Detect to (Player_Bag_Detect + 6), do (Actions)
-
Loop - Actions
-
Set Bag_System_Temp_Integer = (Bag_System_Temp_Integer + 1)
-
Set Player_Items[(Integer A)] = (Item-type of (Item carried by (Casting unit) in slot Bag_System_Temp_Integer))
-
Item - Remove (Item carried by (Casting unit) in slot Bag_System_Temp_Integer)
-
Hero - Create Players_Bags_Items[(Integer A)] and give it to (Casting unit)
-
-
-
Unit - Add Close Bag to (Casting unit)
-
Unit - Remove Open Bag from (Casting unit)
-
Set Bag_System_Temp_Integer = 0
-
-
Else - Actions
-
-