- Joined
- Mar 27, 2012
- Messages
- 3,232
Basically I need a system where I can quickly modify bonuses, just like with buffs, but with more power.
Aka, I put on a buff that adds 50% damage and then slowly reduce the bonus to 0, at which point it's removed.
It could be done through invisible abilities, but it's clumsy and I will need lots of such things anyway.
Thus, I wanna code a custom buff system.
I am relatively skilled in JASS and can use basic vJASS to simplify things.
Current idea:
I use a linked list or table to store the buffs of each unit. They all have a set of possible attributes and I can access them separately somehow.
It should also be possible to refer to them(DO: Get the buff named SLOW and remove it from unit)
The problem is that I don't know how to make those things come together.
Aka, I put on a buff that adds 50% damage and then slowly reduce the bonus to 0, at which point it's removed.
It could be done through invisible abilities, but it's clumsy and I will need lots of such things anyway.
Thus, I wanna code a custom buff system.
I am relatively skilled in JASS and can use basic vJASS to simplify things.
Current idea:
I use a linked list or table to store the buffs of each unit. They all have a set of possible attributes and I can access them separately somehow.
It should also be possible to refer to them(DO: Get the buff named SLOW and remove it from unit)
The problem is that I don't know how to make those things come together.