is there such an event or a way to detect when a player moves an item from any of his inventory slots, to another inventory slot?
lets say, i have Gloves of Haste in inventory slot 1, and i decide to move it to inventory slot 2, is there a possible event in which it detects this action?
i'm currently trying to make a "-ii" command found in DotA in which the multiboard shows the inventory slots of your allies, and each item carried in each specified slot, i've done all of that using periodic events.. but it ends up lagging.. dropping the fps to 59 or 58.. every second..
here's the trigger:
please anybody? is there a way around this? in which it doesnt lag?
lets say, i have Gloves of Haste in inventory slot 1, and i decide to move it to inventory slot 2, is there a possible event in which it detects this action?
i'm currently trying to make a "-ii" command found in DotA in which the multiboard shows the inventory slots of your allies, and each item carried in each specified slot, i've done all of that using periodic events.. but it ends up lagging.. dropping the fps to 59 or 58.. every second..
here's the trigger:
Trigger:
- Update Inventory List
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set TempPlayerGroup = (All players)
- -------- EVERY PLAYER'S MULTIBOARD --------
- Player Group - Pick every player in TempPlayerGroup and do (Actions)
- Loop - Actions
- -------- EACH INVENTORY SLOT CHECK --------
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- -------- ITEM TYPE IN INVENTORY SLOT (INTEGER A) CHECK --------
- For each (Integer B) from 1 to Item_TypeCount, do (Actions)
- Loop - Actions
- -------- ASSIGN ITEM CARRIED IN INVENTORY SLOT (INTEGER A) --------
- Set Item_Carried = (Item-type of (Item carried by Player_Hero[(Player number of (Picked player))] in slot (Integer A)))
- -------- IF ITEM CARRIED = ITEM TYPE (INTEGER B) --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Item_Carried Equal to Item_Type[(Integer B)]
- Then - Actions
- -------- DISPLAYS ITEM ICON PATH --------
- Multiboard - Set the icon for MB[(Player number of (Picked player))] item in column ((Integer A) + 6), row ((Player number of (Picked player)) + 2) to Item_TypeIconPath[(Integer B)]
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item carried by Player_Hero[(Player number of (Picked player))] in slot (Integer A)) Equal to No item
- Then - Actions
- -------- IF NO ITEM IN INVENTORY SLOT (INTEGER A).... DISPLAY DEFAULT ICON --------
- Multiboard - Set the icon for MB[(Player number of (Picked player))] item in column ((Integer A) + 6), row ((Player number of (Picked player)) + 2) to ReplaceableTextures\CommandButtonsDisabled\DISundead-inventory-slotfiller.blp
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Loop - Actions
- Loop - Actions
- Loop - Actions
- Events
please anybody? is there a way around this? in which it doesnt lag?