In my RPG-style map there's a stat called "Cooldown speed" which will lower the cooldown time of most of your abilities. However, there are a few abilities that I don't want affected by this stat. Is there a good way of doing this?
I would just use a behavior to increase the player's cooldown speed, however it would also increase the cooldown speed of abilities that shouldn't be affected.
I could also use a trigger to manually change the cooldown for each ability separately, but this would be a lot of work, and the trigger would run so often I'm worried it would lag the game.
TL;DR:
Is there a way to alter the cooldown of a group of abilities without affecting all abilities?
I could also use a trigger to manually change the cooldown for each ability separately, but this would be a lot of work, and the trigger would run so often I'm worried it would lag the game.
This is close to the right approach, but not quite. I would instead use set catalog triggers to change the desired cooldowns. Only have this happen when an increase in your cooldown reducing stat occurs, and of course when you start a new game, load a new hero if your RPG has these things.
Upgrades would also be a perfectly decent option if you wanted to keep this data only. Just keep in mind upgrades are rather weak at handling anything other than simple addition/subtraction. Anything involving multiplication or division, I highly recommend using a trigger driven catalog setting approach instead.
Ya, I assumed I would end up using a set catalog field value trigger... I was just hoping there was a better way. There's going to be so much math in what I'm doing, and the trigger will have to run so often =/
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
In my RPG-style map there's a stat called "Cooldown speed" which will lower the cooldown time of most of your abilities. However, there are a few abilities that I don't want affected by this stat. Is there a good way of doing this?
I would just use a behavior to increase the player's cooldown speed, however it would also increase the cooldown speed of abilities that shouldn't be affected.
I could also use a trigger to manually change the cooldown for each ability separately, but this would be a lot of work, and the trigger would run so often I'm worried it would lag the game.
TL;DR: Is there a way to alter the cooldown of a group of abilities without affecting all abilities?
Any help is much appreciated!
@ArchonTheWizard: Go
This is close to the right approach, but not quite. I would instead use set catalog triggers to change the desired cooldowns. Only have this happen when an increase in your cooldown reducing stat occurs, and of course when you start a new game, load a new hero if your RPG has these things.
Upgrades would also be a perfectly decent option if you wanted to keep this data only. Just keep in mind upgrades are rather weak at handling anything other than simple addition/subtraction. Anything involving multiplication or division, I highly recommend using a trigger driven catalog setting approach instead.
Ya, I assumed I would end up using a set catalog field value trigger... I was just hoping there was a better way. There's going to be so much math in what I'm doing, and the trigger will have to run so often =/