Hey I need some help with custom scripts, I recently saw a tutorial on leaks and decided to make most of my triggers leakfree, though I cant make this trigger leakfree:
Edit: ops sorry I meant that Im quite certain the trigger wont work.. please help the system to know which player it is..
Edit: ops sorry I meant that Im quite certain the trigger wont work.. please help the system to know which player it is..
-
Starting Setup Copy
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set InventoryRegion[1] = Red Inventory Drop <gen>
-
Set InventoryRegion[2] = Blue Inventory Drop <gen>
-
Set InventoryRegion[3] = Teal Inventory Drop <gen>
-
Set InventoryRegion[4] = Purple Inventory Drop <gen>
-
Set InventoryRegion[5] = Yellow Inventory Drop <gen>
-
Set InventoryRegion[6] = Orange Inventory Drop <gen>
-
Set InventoryRegion[7] = Grenn Inventory Drop <gen>
-
-
-
Inventory Enter
-
Events
-
Player - Player 1 (Red) types a chat message containing -inventory as An exact match
-
Player - Player 2 (Blue) types a chat message containing -inventory as An exact match
-
Player - Player 3 (Teal) types a chat message containing -inventory as An exact match
-
Player - Player 4 (Purple) types a chat message containing -inventory as An exact match
-
Player - Player 5 (Yellow) types a chat message containing -inventory as An exact match
-
Player - Player 6 (Orange) types a chat message containing -inventory as An exact match
-
Player - Player 7 (Green) types a chat message containing -inventory as An exact match
-
-
Conditions
-
Actions
-
Set TempGroup = (Units in (Entire map) owned by (Triggering player))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
Set InvPoint[(Player number of (Triggering player))] = (Position of (Picked unit))
-
Unit - Move (Picked unit) instantly to (Center of InventoryRegion[(Player number of (Triggering player))])
-
Custom script: call DestroyGroup( udg_TempGroup )
-
-
-
-
-
Player Inventory Leave
-
Events
-
Unit - A unit owned by Player 1 (Red) Acquires an item
-
Unit - A unit owned by Player 2 (Blue) Acquires an item
-
Unit - A unit owned by Player 3 (Teal) Acquires an item
-
Unit - A unit owned by Player 4 (Purple) Acquires an item
-
Unit - A unit owned by Player 5 (Yellow) Acquires an item
-
Unit - A unit owned by Player 6 (Orange) Acquires an item
-
Unit - A unit owned by Player 7 (Green) Acquires an item
-
-
Conditions
-
(InventoryRegion[(Player number of (Triggering player))] contains (Triggering unit)) Equal to True
-
-
Actions
-
Unit - Move (Hero manipulating item) instantly to InvPoint[(Player number of (Triggering player))]
-
[COLOR="Red"][B]Custom script: call RemoveLocation (udg_InvPoint[(Player number of (Triggering player))])[/B][/COLOR]
-
-