Hey guys, I have a slightly modified duplication of the calldown mule ability which drops 2 marines. I was wondering what the best way was to disallow use of the ability when the player doesn't have sufficient supplies for the units. Am I going to have to use validators? I'm hoping not, since I plan on duplicating the ability some more for different unit types.
Well I went ahead and did the validator route, and it works pretty well. I'm just going to have to make more than one for each supply amount, and attach them to the correct abilities. I was just curious if there was a better way to do it so that'd it'd automatically recognize supply from the units and # of units being created.
Hey guys, I have a slightly modified duplication of the calldown mule ability which drops 2 marines. I was wondering what the best way was to disallow use of the ability when the player doesn't have sufficient supplies for the units. Am I going to have to use validators? I'm hoping not, since I plan on duplicating the ability some more for different unit types.
Well I went ahead and did the validator route, and it works pretty well. I'm just going to have to make more than one for each supply amount, and attach them to the correct abilities. I was just curious if there was a better way to do it so that'd it'd automatically recognize supply from the units and # of units being created.
If you're doing this via effect-target as I assume you are, then no.
However you can look at the "Merc Compound - Summon Merceneries" ability. This does take into account supply, but isn't targeted.
Ah, cool. Indeed I am using effect target. Ah well, the solution of validators really wasn't that involved anyways. Thanks for the info.