- Joined
- Jul 13, 2017
- Messages
- 30
how do you make a trigger which add your gold/lumber, based on the trained unit gold/lumber cost?
example:
event - unit finishes training a unit
condition - unit type of trained unit equal to peasant
action - add [trained unit gold cost] to player current gold
action - add [trained unit lumber cost] to player current lumber
action - remove [trained unit] from the game
we would expect to have 75 gold, since the peasant cost 75 gold.. but i cannot find the right function.
example:
event - unit finishes training a unit
condition - unit type of trained unit equal to peasant
action - add [trained unit gold cost] to player current gold
action - add [trained unit lumber cost] to player current lumber
action - remove [trained unit] from the game
we would expect to have 75 gold, since the peasant cost 75 gold.. but i cannot find the right function.