The ability is meant to steal 20% of the targeted player's current gold and add it directly to the owner of the casting unit. Something's clearly wrong with my triggers, otherwise it would work and I'd not be asking for help.
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Pilfer (Agamand)
-
-
Actions
-
Set VariableSet tempTarget = (Triggering Unit)
-
Floating Text - Create floating text that reads (+ + (String((((Owner of (Target unit of ability being cast)) Current gold) x (Integer(0.20)))))) above tempTarget with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 64.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 1.50 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 0.75 seconds
-
Player - Set (Owner of (Triggering unit)).Current gold to (((Owner of (Triggering unit)) Current gold) + (((Owner of (Target unit of ability being cast)) Current gold) x (Integer(0.20))))
-
Player - Set (Owner of (Target unit of ability being cast)).Current gold to (((Owner of (Target unit of ability being cast)) Current gold) x (Integer(0.20)))
-