Warcraft III resources & community, 2003–2006 · archived

How do I make a skill cost gold?

9 posts
#1

How do I make a skill cost gold?

How do I make a skill cost gold? I need to make a runner in my kodo tag game have that ability cost him money.

Thanks :D
#2
Just use triggers to take away gold from the user who purchases the ability :)
The gold icon beside the name of the ability won't be shown though :) Like Nature's Call - Circle defense, the special towers
#3
Thats what I thought but I wanted to show :/.
#4
Here a trigger (Add property -> use negative values)

Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to [Your Ability]
Actions
Player - Add -20 to (Owner of (Casting unit)) Current gold
#5
Remember the icon for gold price won't be shown, so write " costs xxxxx gold " below the ability
#6
btw I would use Color Template (on this site) to make the gold costs in color, like

costs 300 gold

So it looks more like the item- or unit-costs (looks better)
#7
Well, the action should be;
"If (((Owner of (Casting unit)) Current gold) Greater than or equal to <ability cost>) then do (Player - Add -<ability cost> to (Owner of (Casting unit)) Current gold) else do (Unit - Order (Casting unit) to Stop)"
#8
Öhm, yeah, right :lol:

Wonder if it would give the player a negative gold value, crash wc3 or simply do nothing if he casts having no gold.
#9
use a floating text and color it