Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Can anyone show me how to make a spell that when cast steals money equal to 10xHero's Level?And also a Floating Text appear showing the amount of gold stolen?
Are you wanting it to just get money? or actually steal from another player? I'll show you both if you give me a moment.
actually this turned out a bit easier then i thought,
this trigger should do it just replace acid bomb with the spell you want to make steal gold.
Untitled Trigger 001
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Acid Bomb
Actions
Player - Set (Owner of (Casting unit)) Current gold to (((Owner of (Casting unit)) Current gold) + ((Hero level of (Casting unit)) x 10))
Player - Set (Owner of (Target unit of ability being cast)) Current gold to (((Owner of (Target unit of ability being cast)) Current gold) - ((Hero level of (Casting unit)) x 10))
Floating Text - Create floating text that reads (String(((Hero level of (Casting unit)) x 10))) above (Target unit of ability being cast) with Z offset 100.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
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 - Show (Last created floating text) for (All players)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.