So this won't leaks ?
(actually all done by UndeadImmortal xp)
[trigger=Leaks Removed]test
Events
Unit - A unit Dies
Conditions
Actions
Set TempPoint1 = ((Position of (Triggering unit)) offset by (100.00, 0.00))
Set TempPoint2 = ((Position of (Triggering unit)) offset by (-100.00, 0.00))
-------- hero xp --------
Floating Text - Create floating text that reads (String((Hero experience of (Triggering unit)))) at TempPoint1 with Z offset 25.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.70 seconds
-------- gold --------
Floating Text - Create floating text that reads (String(((Triggering player) Current gold))) at TempPoint2 with Z offset 25.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.70 seconds
-------- Remove Leaks --------
Custom script: call RemoveLocation(udg_TempPoint1)
Custom script: call RemoveLocation(udg_TempPoint2)[/trigger]
I've learnt a lesson today