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

ryanradnell

New Member
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!
 

X-maul

AKA: Demtrod
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.
 

ryanradnell

New Member
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.

Thanks i got it working after a few minutes, much appreciated
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    The old shoutbox wasn't supported anymore. We updated xenForo, so it had to be replaced.
  • jonas jonas:
    let's see if everyone finds it... the nice thing about the shoutbox was I could check on it even while logged out, but the existence of this one is hidden when you're not logged in
  • Ghan Ghan:
    We can fix that.
  • Ghan Ghan:
    Chat should show on the sidebar when not logged in now.
  • Ghan Ghan:
    (You'll still need to log in to post messages)
  • Ghan Ghan:
    Test!
  • tom_mai78101 tom_mai78101:
    I must be in a test server.
  • tom_mai78101 tom_mai78101:
    Nice, Twitter tweets embedding now works
  • Wizard Wizard:
    Yup.
  • Ghan Ghan:
    Excellent.
  • Ghan Ghan:
    @tom_mai78101 Hello there.
  • Ghan Ghan:
    Tagging works in the chat too.
  • tom_mai78101 tom_mai78101:
    @Ghan Missed it.
  • Wizard Wizard:
    Still fixing things here and there. Added widgets to the portal, will make it match the ones here on the forum index tomorrow.
  • Ghan Ghan:
    The venerable World Editor Tutorials site has been converted to HTTPS at last.
  • jonas jonas:
    cool
  • jonas jonas:
    and I can even edit my messages, nice
  • seph ir oth seph ir oth:
    GENERAL CHIT CHAT, YOU ARE A BOLD ONE
  • Ghan Ghan:
    Hello there
  • The Helper The Helper:
    this new chatbox is great and the forum software update is great too
    +1
  • The Helper The Helper:
    upgrade has fixed forum registration spam problem
  • tom_mai78101 tom_mai78101:
    Something tells me we might be able to customize the chatbox a bit, considering that there's a gap under every message.
  • Wizard Wizard:
    Going to deploy a fix soon, just had to take some time for myself this weekend.
  • Varine Varine:
    Unbelievable. Time for yourself? How dare you!

    Members online

    No members online now.

    Affiliates

    Hive Workshop
    Top