tonton302
Member
- Reaction score
- 0
i have a trigger that when you say -d(number of item in your inventory) it drops the item in that inventory slot, but my problem is that if you select an ally player you can also use this command and when i try to put conditions it doesn't work...
Heres the trigger when it works.
Actions
Player - Player 1 (Red) types a chat message containing -d as A substring
Events
Hero - Drop the item from slot (Integer((Substring((Entered chat string), 3, 4)))) of (Random unit from (Units currently selected by (Triggering player)))
Item - Remove (Last dropped item)
Does anyone know what I could put to fix this?
Heres the trigger when it works.
Actions
Player - Player 1 (Red) types a chat message containing -d as A substring
Events
Hero - Drop the item from slot (Integer((Substring((Entered chat string), 3, 4)))) of (Random unit from (Units currently selected by (Triggering player)))
Item - Remove (Last dropped item)
Does anyone know what I could put to fix this?