• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Tower gaining an aura after N kills

Status
Not open for further replies.
Level 1
Joined
Aug 9, 2008
Messages
2
I might not be posting in the correct forum but here it goes.

I've created my own tower defense and playing some TD's like eeveTD and Sprout TD, I've noticed a nice feature. Once a tower reachs a certain amount of kills, it gains an aura/ability of some sorts. I've tried to replicate this using GUI to no avail. Can someone help me with this? Do I need to do this in JASS or can I do it in GUI?

Any help is appreciated! Thanks :D
 
Level 25
Joined
Mar 23, 2008
Messages
1,813
  • Untitled Trigger 001
    • Events
      • Unit - A unit owned by *Your computer controlling creeps* Dies
    • Conditions
    • (Unit-type of (Killing unit)) Equal to Guard Tower
    • Actions
      • Set Kills_YourTower = (Kills_YourTower + 1)
  • Untitled Trigger 002
    • Events
    • Conditions
      • Kills_YourTower Greater than or equal to 20
    • Actions
      • Unit - Add Brilliance Aura to Guard Tower
Kills your Tower is a integer variable with initial value 0. And On the trigger nr. 2 is making your tower gaining an aura when your tower has get 20 kills.
 
Level 9
Joined
Jun 26, 2007
Messages
659
it will probably works better this way :
  • Init Guard Tower
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Guard Tower
    • Actions
      • Unit - Set the custom value of (Triggering unit) to 0
  • Guard Tower Kill
    • Events
      • Unit - A unit owned by (Creep Controler) Die
    • Conditions
      • (Unit-type of (Killing unit)) Equal to Guard Tower
    • Actions
      • Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Custom value of (Killing unit)) Equal to (wanted value)
        • Then - Actions
          • Unit - Add (your aura) to (Killing unit)
        • Else - Actions
 
Status
Not open for further replies.
Top