- Joined
- Dec 2, 2016
- Messages
- 733
Screen capture - 06ab3e2c7523ef76cb0d92747d7e9e65 - Gyazo
I've got a shop that sells items. I currently have this trigger.
It should only create the tower unit, but it also spawns the 'Toolkit' ability which is 4 drop down repair units. So the game thinks I still have the item even though I don't. If I add a 'wait 0.01' seconds before removing the item the bug does not happen. But it's possible for the player to use the 'Toolkit' ability before the item is removed. Anyone have a better solution to my problem, or a way to fix this bug? Thanks.
I've got a shop that sells items. I currently have this trigger.
-
Untitled Trigger 002
-
Events
-
Unit - A unit Sells an item (from shop)
-
-
Conditions
-
(Owner of (Triggering unit)) Not equal to (Owner of (Buying unit))
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Sold Item)) Equal to Toolkit
-
-
Then - Actions
-
Game - Display to (All players) the text: Removing item
-
Item - Remove (Sold Item)
-
-
Else - Actions
-
-
-
It should only create the tower unit, but it also spawns the 'Toolkit' ability which is 4 drop down repair units. So the game thinks I still have the item even though I don't. If I add a 'wait 0.01' seconds before removing the item the bug does not happen. But it's possible for the player to use the 'Toolkit' ability before the item is removed. Anyone have a better solution to my problem, or a way to fix this bug? Thanks.