Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Gold Cost
Events

Unit - starts the effect of an abillity
Conditions

(Abillity being cast) equal to (Your abilliy)
Actions

If All conditions are true then do (then actions) else do (else actions)


If - Conditions



Player - Current gold of (Owner of (triggering unit) greater than or equal to <the gold cost of your abillity


Then - Actions



Do nothing


Else - Actions



Unit - Issue (Triggering Unit) to Stop



Game - Display to (Player group(Triggering Player)) the message Not enough gold for 30 seconds
Lord of Sausage is right. Starts the effect of ability is possibly the best way to reference when a unit starts casting an ability. I use it all the time for triggered effects, and Lord of Sausage is really great with triggers, so you're in good hands in that regard XD.
Events

Unit - A unit starts the effect of an abillity
Events

Unit - A unit begins casting an ability
Conditions

Ability Comparison - (Ability being cast) equal to [your ability]
Actions

If All conditions are true then do (then actions) else do (else actions)


If - Conditions



Player - Current gold of (Owner of (triggering unit)) greater than or equal to [goldcost of your spell]


Then - Actions



Player - Add -[goldcost of your spell] to Player 1 (Red)'s Current gold


Else - Actions



Unit - Issue (Triggering Unit) to Stop



Game - Display to (Player group(Triggering Player)) the message Not enough gold for 30 seconds
Also does anyone know an ability that i could change that would do nothing to any unit, and it cost's gold?
I'm told 'do nothing' leaks, and besides that's where you'd want whatever effects the spell should have.
Events

Unit - A unit starts the effect of an ability
Conditions
Actions

Unit - Issue (Triggering Unit) to Stop
Whoever told you that must have been smoking something.
"do nothing" actually does "something", namely putting a new function on the call-stack, but nothing that affects gameplay happens. Therefor, you shouldn't use do nothing because it slows down your computer without actually doing something. But it has nothing to do with leaks.
Actions
Game - Display to (Player group(Triggering Player)) the message Not enough gold for 30 seconds
