[Tower Defense] For anyone making a TD

Status
Not open for further replies.
PLEASE do not base your "selling tower" mechanism on TRAINED UNIT event
the tower will get a rally point for no reason and each right click is gonna be rally point setting instead of attack clicks which people need
if you do sell
base it on a dummy Channel spell
Unit uses spell
condition spell = dummy channel
action
Selling mechanism
 
The best way I have found, and I use in my map, is to use the selling of a unit with "goldcredit" as a model for example.

If you add it to the tower with triggers, you can even display the gold refunded on the icon itself by setting the max stock.
 
Maybe basing it on a selling item event?
The disable ability functions (BlzUnitDisableAbility) works on rally ability too and can be used if such ability becomes pointless.
 
For some reason, I had to give up on selling item events. Cannot remember exactly what went wrong, what I know is the version I made works beyond expectations and displays the total tower cost, don't think I can do much better than that at this point.
 
I dont see why the trained unit event type trigger is a problem. You can remove the rally point ability itself to counter this problem. In action - unit
 
Status
Not open for further replies.
Back
Top