🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
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)
🔨 Downloads and Uploads have been fixed! If you still have trouble downloading or uploading assets to or from Hive, please reach out to us in the Site Discussion board.
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.