I might be blind but I cant seem to find action to change food cost of a unit.
Long story short I have a map where peon spawns every several seconds, then when a production building starts training a unit, a random peon comes close to it. After training is finished, said peon disappears. Instead of farms, abovementioned peons provide food, so I would like created unit to have 0 food cost while it had normal one before.
If you can suggest an alternative way to make it so you can only train units if you have an appropriate number of peons and those peons "transform" into trained units that would also be appreciated.
Long story short I have a map where peon spawns every several seconds, then when a production building starts training a unit, a random peon comes close to it. After training is finished, said peon disappears. Instead of farms, abovementioned peons provide food, so I would like created unit to have 0 food cost while it had normal one before.
If you can suggest an alternative way to make it so you can only train units if you have an appropriate number of peons and those peons "transform" into trained units that would also be appreciated.