• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Summoning ability costs resources

Status
Not open for further replies.
Level 4
Joined
Jun 20, 2009
Messages
43
I want to make an ability that summons unit(s) cost resources each time it is cast, and fail to cast if the player doesn't have enough resources pay for the casting or lacks the supply to support the summoned unit.

I realize this is a simple thing, but I am a bit of a n00b when it comes to triggers.

If you must know, this is for the Leviathan's "Spawn Mutalisk" and "Spawn Brood Lord" abilities.

Any help would be appreciated.
 
A validator.... Its a data type (apparently you have not looked through more than a few data types).

They are used to create conditions. Eg a validator can restrict the number of larve that spawn at a hive, when the immortal's hardened shield activates, all kinds of stuff.

Requirements are simlar to validators, but are different. A requirement has the facility to visually explain why something can not be done (eg, the interceptor train ability has a requirement which will say stuff like can not have more than 8 per carrier). I believe all requirements will compile the nescescary validators to work.
 
A validator.... Its a data type (apparently you have not looked through more than a few data types).

They are used to create conditions. Eg a validator can restrict the number of larve that spawn at a hive, when the immortal's hardened shield activates, all kinds of stuff.

Requirements are simlar to validators, but are different. A requirement has the facility to visually explain why something can not be done (eg, the interceptor train ability has a requirement which will say stuff like can not have more than 8 per carrier). I believe all requirements will compile the nescescary validators to work.

OK...

Except I cannot find a "validator" field to apply said supply issue.

Sorry if I seem like a dunce, but I have a very poor understanding of HOW to modify even fairly "basic" advanced functions like validators, requirements and triggers.
 
Status
Not open for further replies.
Back
Top