• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Tower Defense] For anyone making a TD

Status
Not open for further replies.
Level 12
Joined
Jan 30, 2020
Messages
875
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.
 
Level 8
Joined
Mar 19, 2017
Messages
248
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.
 
Level 12
Joined
Jan 30, 2020
Messages
875
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.
 
Level 3
Joined
Feb 12, 2020
Messages
34
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.
Top