• 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.

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??
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
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
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
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
 
Level 11
Joined
Oct 20, 2007
Messages
342
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.
 
Level 17
Joined
May 6, 2008
Messages
1,598
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.
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
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
 
Level 2
Joined
May 17, 2008
Messages
17
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.
Top