So we have about 40 units and so far we've just been doing the standard upgrade ability and manually entering the damage bonuses for every single unit. There are actually 10 different upgrades that need to apply to all 40 of these units and it's just starting to be so time consuming to change a single unit.
Can anyone recommend a good way to make unit upgrades for damage, health, armor, etc. to apply to a lot of units so that editing those upgrades afterward isn't a nightmare?
If the upgrades are normalized for all units (lets say something like x% bonus or x bonus for all units) you can think about using generic stackable behaviors instead, which could be applied at unit creation or periodically via data or trigger. This way you would probably only need 10 behaviors.
If the upgrades are normalized for all units (lets say something like x% bonus or x bonus for all units) you can think about using generic stackable behaviors instead, which could be applied at unit creation or periodically via data or trigger. This way you would probably only need 10 behaviors.
I was thinking about this. But let's say we have one marine with 5 damage and it has one buff for +100% damage and another buff for +100% damage. What's the result? Ideally he would be doing 15 damage, but I suspect it doesn't stack that way.
o_0 How do you get from 5 damage and 2 times a 100% buff to 18 damage?
Currently, it should be 15 damage; if you need anything else, you could attempt to create your own buff system and apply buff stacks according to a matching algorithm.
o_0 How do you get from 5 damage and 2 times a 100% buff to 18 damage?
Currently, it should be 15 damage; if you need anything else, you could attempt to create your own buff system and apply buff stacks according to a matching algorithm.
€ sneaky edit making me look like a fool :D
Doh, I didn't edit fast enough. I confused myself with the default marine damage value halfway through :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So we have about 40 units and so far we've just been doing the standard upgrade ability and manually entering the damage bonuses for every single unit. There are actually 10 different upgrades that need to apply to all 40 of these units and it's just starting to be so time consuming to change a single unit.
Can anyone recommend a good way to make unit upgrades for damage, health, armor, etc. to apply to a lot of units so that editing those upgrades afterward isn't a nightmare?
If the upgrades are normalized for all units (lets say something like x% bonus or x bonus for all units) you can think about using generic stackable behaviors instead, which could be applied at unit creation or periodically via data or trigger. This way you would probably only need 10 behaviors.
I was thinking about this. But let's say we have one marine with 5 damage and it has one buff for +100% damage and another buff for +100% damage. What's the result? Ideally he would be doing 15 damage, but I suspect it doesn't stack that way.
o_0 How do you get from 5 damage and 2 times a 100% buff to 18 damage?
Currently, it should be 15 damage; if you need anything else, you could attempt to create your own buff system and apply buff stacks according to a matching algorithm.
€ sneaky edit making me look like a fool :D
Doh, I didn't edit fast enough. I confused myself with the default marine damage value halfway through :)