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