I'm looking for a way to have an ability that...
- Has multiple charges
- That starts with zero charges
- Has a maximum amount of charges
- It recharges the charges until it hits the maximum number of charges
I.e. I want a building to have the ability to shoot barrages of missiles when the user wishes to use them, stacking up the missiles until an unusually strong wave of enemy troops threatens to break the battle lines.
On second thought I could do this with mana, but I'm just curious to see if I can do it this method. I also like to keep my options open in-case I need to have that unit use mana for something else. I also know that this is possible to do with the trigger editor, but I'd like to use just the data editor and a simple ability for this one.
Go to ability, open Cost+ (assuming you have combine structure values switched on), add a new cost value or edit the existing one
Charge:
Count (max) = (your desired maximum amount of charges)
Count (start) = 0
Count (use) = 1
Hide Count: disabled
Link = (something, must not be empty)
Location: Ability
Time Start = (your desired recharge time for 1 charge)
Time Use = 0 (this increases the recharge time, each time a new charge was finished. If you wish your recharge time to be constant, this needs to be 0)
Note that most of these values are reals, so you can handle things like 0.5 charges as well.
Hi, I still have the issue that the charges wont recharge...
I've done what you wrote, but the ability still wont recharge :C
Help would be appreciated :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm looking for a way to have an ability that...
- Has multiple charges
- That starts with zero charges
- Has a maximum amount of charges
- It recharges the charges until it hits the maximum number of charges
I.e. I want a building to have the ability to shoot barrages of missiles when the user wishes to use them, stacking up the missiles until an unusually strong wave of enemy troops threatens to break the battle lines.
On second thought I could do this with mana, but I'm just curious to see if I can do it this method. I also like to keep my options open in-case I need to have that unit use mana for something else. I also know that this is possible to do with the trigger editor, but I'd like to use just the data editor and a simple ability for this one.
Go to ability, open Cost+ (assuming you have combine structure values switched on), add a new cost value or edit the existing one
Charge:
Count (max) = (your desired maximum amount of charges)
Count (start) = 0
Count (use) = 1
Hide Count: disabled
Link = (something, must not be empty)
Location: Ability
Time Start = (your desired recharge time for 1 charge)
Time Use = 0 (this increases the recharge time, each time a new charge was finished. If you wish your recharge time to be constant, this needs to be 0)
Note that most of these values are reals, so you can handle things like 0.5 charges as well.
Hi, I still have the issue that the charges wont recharge... I've done what you wrote, but the ability still wont recharge :C Help would be appreciated :)