• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

TD sell trigger

Status
Not open for further replies.
Level 2
Joined
May 17, 2008
Messages
17
Im working on a new TD but now the Sell funktion from my last TD didn't work, can some1 do 1 of those for me??
 
Sell-function?
Make a dummy unit without model as the "sell"-unit and give the towers the ability to train this dummy unit.
Then use
  • Sell
  • Events
    • Unit - A unit finishes training a unit
  • Conditions
    • Trained unit equal to 'Sell'
  • Actions
    • Player - Add Point-Value of (Training unit) to (Triggering Player) Current Gold
    • Special effect - Create a 'whatever' special effect attached to the origin of (Training unit)
    • Special effect - Destroy (last created special effect)
    • Unit - Remove (Training Unit) from the game
    • Unit - Remove (Trained Unit) from the game
 
i would also use a dummy unit but a building, then make it an upgrade
  • Events
    • Unit - A unit finishes an upgrade
  • Conditions
    • upgrade equal to "Sell"
  • Actions
    • Player - Add Point-Value of (Triggering unit) to (owner of triggering Unit) Current Gold
    • Unit - Remove (Triggering Unit) from the game
@ Squiggy, i'm not sure if triggering player works here, as you only have a triggering Unit
 
i would also use a dummy unit but a building, then make it an upgrade
  • Events
    • Unit - A unit finishes an upgrade
  • Conditions
    • upgrade equal to "Sell"
  • Actions
    • Player - Add Point-Value of (Triggering unit) to (owner of triggering Unit) Current Gold
    • Unit - Remove (Triggering Unit) from the game
@ Squiggy, i'm not sure if triggering player works here, as you only have a triggering Unit

Is that mean u can only the building 1 time??
after the upgrade
you can't upgrade 1 more time.
 
He mean you can't upgrade the same upgrade twice.

I'll take Moon Glaive as an example.

If you've upgraded Moon Glaive once, you can't upgrade it once again.
 
not that kind of an upgrade, i mean you make a building and allow the tower to upgrade to tha building, like you can upgrade a base tower to an arrow tower in melee games

Edit: ahhh i know why you where confused, i think i translated the event in a wrong way, maybe someone can tell me the correct one, sth like a unit finishes upgrading
 
thx, but now I get 100g from a tower who costs 8g thanks to Point-Value, how do I fix it?
 
Status
Not open for further replies.
Back
Top