There is a function GetUnitGoldCost(unitId) etc, but I can't find any way of setting the cost of a unit/upgrade at run time.
I realize this can be done in the object editor when creating the map, but I want to change the cost of certain things depending on game conditions.
For example, how could you change the cost of upgrade to a keep and/or castle using a trigger/jass code?
Is this possible?
Thanks
I realize this can be done in the object editor when creating the map, but I want to change the cost of certain things depending on game conditions.
For example, how could you change the cost of upgrade to a keep and/or castle using a trigger/jass code?
Is this possible?
Thanks