• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Spell Help

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2007
Messages
68
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)
 
Status
Not open for further replies.
Top