• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Help me please...

Status
Not open for further replies.

x0oo0

X

x0oo0

How do you make it so i subtract gold from a player during a trigger?
 
I should of been more specific how would i subtract based on hero level?
 
Lets Fix that.
  • Player - Add (-1000 x (Level of(Dying Unit))) to (Owner of(Dying Unit)) Current Gold.

Triggering Unit corresponds to "Unit - A unit dies" just as Dying unit does, except that triggering unit is local to the function. (It won't get overwritten if there is a wait)

But yeah, same thing pretty much in this case. Just thought I'd mention it. =D
 
Status
Not open for further replies.
Back
Top