• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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