I'd like to periodically change mineral cost of unit's ability.
For example, I have a building's ability, which instantly finishes unit training process. But the cost of this ability must depend on the progress of unit training: more time left -> more expensive to finish it.
So, maybe there is a function to change the cost? Or is it possible to implement some kind of link between training progress and ability cost?
I could simply make a dummy ability and calculate the cost in triggers, but I'd prefer to have the cost shown via standart interface, when a player moves mouse over ability button. So, aer there ways to do as I described?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'd like to periodically change mineral cost of unit's ability.
For example, I have a building's ability, which instantly finishes unit training process. But the cost of this ability must depend on the progress of unit training: more time left -> more expensive to finish it.
So, maybe there is a function to change the cost? Or is it possible to implement some kind of link between training progress and ability cost?
I could simply make a dummy ability and calculate the cost in triggers, but I'd prefer to have the cost shown via standart interface, when a player moves mouse over ability button. So, aer there ways to do as I described?