I want my gold dropped to dissapear after 22 seconds. with this trigger it only removes the LAST item created, not all of them.
How would I achieve all the gold to be removed?
Code:
LVL 6 Bonus
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Level 1
Actions
Set Random = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Random Less than or equal to 20
Then - Actions
Item - Create Bonus Gold at (Position of (Dying unit))
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Wait 22.00 seconds
[COLOR="Red"]Item - Remove (Last created item)[/COLOR]
Else - Actions
How would I achieve all the gold to be removed?