Hi everyone,
I'm currently working on a custom building-type that uses mana as a resource instead of gold and wood. Basically, it's an altar of sacrifice, and it gets its mana every time a unit sacrifices itself, pretty much like a Sacrificial Pit. You can get caster upgrades in this building.
I am stuck with this concept!
I managed to substract the mana cost of an upgrade from the Altar whenever I start researching that upgrade. However, when I start researching another upgrade while the first one is not finished yet, the mana cost is not substracted until the research of the first upgrade is over, because the event "A unit begins research" triggers only when the research has actually started.
Hope I am making this clear!!
I tried to learn from other posts about 3rd resource (such as this topic : http://www.hiveworkshop.com/forums/spells-569/gui-custom-resource-harvest-system-1-05-a-225610/) in order to find out how to deal with training units that requires something else than gold and lumber but I couldn't find anything helpful.
any idea to help me solve this?
thank you very much!
I'm currently working on a custom building-type that uses mana as a resource instead of gold and wood. Basically, it's an altar of sacrifice, and it gets its mana every time a unit sacrifices itself, pretty much like a Sacrificial Pit. You can get caster upgrades in this building.
I am stuck with this concept!
I managed to substract the mana cost of an upgrade from the Altar whenever I start researching that upgrade. However, when I start researching another upgrade while the first one is not finished yet, the mana cost is not substracted until the research of the first upgrade is over, because the event "A unit begins research" triggers only when the research has actually started.
Hope I am making this clear!!
I tried to learn from other posts about 3rd resource (such as this topic : http://www.hiveworkshop.com/forums/spells-569/gui-custom-resource-harvest-system-1-05-a-225610/) in order to find out how to deal with training units that requires something else than gold and lumber but I couldn't find anything helpful.
any idea to help me solve this?
thank you very much!