attempting to make an ability, "Prism", that can do some unique things
it is used by towers, and you can connect to other towers, through channeling, and add bonus damage above and beyond your own to it, and can cancel at any time
so say this tower clicks on that tower, it will channel and add X damage to it
now this can be done by any number of towers, to any number of other towers
this in itself is easy, add damage ability to target if it does not have it, else increase the level by 1, when the casting tower stops channeling, remove the added ability if it is at level 1, or decrease the level by 1
here is where it gets interesting
I want to be able to stack these buffs around ,from tower to tower
for instance, you have 4 towers
tower 1 channels on tower 2, and adds the bonus, tower 2 then channels on tower 3, thus adding two bonuses, tower 3 then channels on tower 4, adding 3 bonuses, and tower 4 ending pu having the only bonuses
then for instance, tower 2 stops channeling, therefore tower 2 should have 1 bonus, and tower 4 should have 1 bonus
complicated enough?
here is the catch, I tried to develop a method to go about tracking these additions and subtractions to amek them stackable from tower to tower, and was unsuccesful
anyoe have any suggestions of how to go about doing so, or possibly an example of such?
ty
it is used by towers, and you can connect to other towers, through channeling, and add bonus damage above and beyond your own to it, and can cancel at any time
so say this tower clicks on that tower, it will channel and add X damage to it
now this can be done by any number of towers, to any number of other towers
this in itself is easy, add damage ability to target if it does not have it, else increase the level by 1, when the casting tower stops channeling, remove the added ability if it is at level 1, or decrease the level by 1
here is where it gets interesting
I want to be able to stack these buffs around ,from tower to tower
for instance, you have 4 towers
tower 1 channels on tower 2, and adds the bonus, tower 2 then channels on tower 3, thus adding two bonuses, tower 3 then channels on tower 4, adding 3 bonuses, and tower 4 ending pu having the only bonuses
then for instance, tower 2 stops channeling, therefore tower 2 should have 1 bonus, and tower 4 should have 1 bonus
complicated enough?
here is the catch, I tried to develop a method to go about tracking these additions and subtractions to amek them stackable from tower to tower, and was unsuccesful
anyoe have any suggestions of how to go about doing so, or possibly an example of such?
ty