- Joined
- Feb 9, 2014
- Messages
- 45
How to make a Gold Tower,
when the tower kills, it gaves 50% gold from the dying unit to the killing unit.
when the tower kills, it gaves 50% gold from the dying unit to the killing unit.
I think there is no way to do that
because Gold Bounty Award value can only customized from Object Editor
if there is any way to check its value, maybe this can be done
or find a Custom Bounty Award system that made by trigger, then maybe this can also be done
I can be wrong though
Rheiko is right.
Under no possibility one can access bounty at Object Editor.
However, it's possible by using Hashtables (easy and not too complicated) or Unit User Data.
You need to index all the bounty data in an initialization trigger then have a core system controlling all the values. I can't explain it in details yet.
It has two way to get the unit gold bounty
Check this map below and "It just an example", so you must find the best way to fit it with your project .
nice,
But i don't know how to attach that on tower,
but i think its not the way,
that Element TD Gold Tower made.
Run GT Save <gen>
trigger for system registration.Assuming that Gold Tower can be upgraded, I have created a test map that you can configure all of the settings at the setup trigger.
If you have any questions, feel free to ask
Basically what you need to do is just set GT_UnitType and GT_OriginalBounty for each unit, and after it has been set for one unit, you need to run theRun GT Save <gen>
trigger for system registration.
Then, rinse and repeat for next unit.
Remember, once you have conform to use this system, you need to set all units' bounty in this trigger only (which means bounty from Object Editor should be set to 0).