[Solved] Adding an energy cost to Aura tower + Cannons

Discussion in 'Starcraft 2 (SC2) Editor Help' started by ryanradnell, Apr 25, 2014.

  1. ryanradnell

    ryanradnell New Member

    Ratings:
    +0 / 0 / -0
    Hey there,

    I'm looking for help regarding adding an energy cost every time the cannons fire, and every time the aura tower ticks.

    for example,
    Cannon requiring at least 1 energy to shoot
    and tower aura losing 1 energy/s whenever it's applying the buff

    Any help would be appreciated, Thanks!
     
  2. X-maul

    X-maul AKA: Demtrod

    Ratings:
    +200 / 0 / -0
    For the weapon, just add an energy cost to the weapon - simply go to the weapon tab and find your weapon, and go to Stats - Cost and set the energy cost to 1.

    For the aura tower, maybe take a look at how the Cloak ability works :)
    - It's basically a periodic behavior, which removes 1 energy per sec, and has a validator that checks if the energy of the unit is higher than 0.
     
    • Like Like x 1
  3. ryanradnell

    ryanradnell New Member

    Ratings:
    +0 / 0 / -0

    Thanks i got it working after a few minutes, much appreciated
     

Share This Page