Stacking Buff

I'm trying to design a stacking movement buff that modifies angular thrust for combat ships. The ability is passive and everything is worked out EXCEPT I can't get it to stack. I'm trying to mod it to the point that every ship in orbit  adds a percentage bonus to thrust and it stacks for every ship in orbit. I have it to the point were it's passive and provides a consistent percentage, not a variable one based on ship amount in orbit. Please help?

6,023 views 4 replies
Reply #1 Top

Check in the ability's file, there should be a line that says "Buffisstackable TRUE" and then there should be another one not far from it stating the number of stacks, if you just change the first line the other is still set to 0 or 1 by default so you have to give it a max number, See the advent turret's ability for synergy, that one's stackable by 3 on the vanilla game.

Reply #2 Top

You did change its stacking limit right?

Reply #3 Top

yes, I have changed the stacking limit and it doesn't give me the variable bonus I want because it automatically gives it the max bonus. I want the bonus to change based on how many friendly ships are in orbit

Reply #4 Top

Quoting leo81792, reply 3
yes, I have changed the stacking limit and it doesn't give me the variable bonus I want because it automatically gives it the max bonus. I want the bonus to change based on how many friendly ships are in orbit
End of leo81792's quote

Make sure "allowFirstSpawnerToStack" is set to False, otherwise a ship will be able to stack a buff on itself any number of times. Also if its a passive ability make sure to prioritize old buffs.