waqmaz
Member
- Joined
- Jun 17, 2015
- Messages
- 203
- Reaction score
- 11
Hello. I am trying to make a boss with stages.
1. First stage:
If it has <= 75% HP, then it is immune for 10 seconds and heals HP.
2. Second Stage:
If it has <= 50% HP then it is immune for 5 seconds and it is casting AOE spells.
3. 3th stage:
At <= 25% HP it is 200% faster and 50% stronger
4 . 4th stage:
It heals HP to full and is like a normal monster without stages.
My question is:
Is it good that to make that boss I am using global storages, addEvents and functions based on os.time()?
Should it be done another way? I am asking, because I have to use storage each time it changes its stage, because for example using onComabt function, the script works each hit, so its wrong. To prevent that it needs storage. If yes, what is the best way to make that boss, because I do not want to have lags on my server.
Is it correct that I use onStatsChange function or is it better to do it onCombat?
Thanks!
1. First stage:
If it has <= 75% HP, then it is immune for 10 seconds and heals HP.
2. Second Stage:
If it has <= 50% HP then it is immune for 5 seconds and it is casting AOE spells.
3. 3th stage:
At <= 25% HP it is 200% faster and 50% stronger
4 . 4th stage:
It heals HP to full and is like a normal monster without stages.
My question is:
Is it good that to make that boss I am using global storages, addEvents and functions based on os.time()?
Should it be done another way? I am asking, because I have to use storage each time it changes its stage, because for example using onComabt function, the script works each hit, so its wrong. To prevent that it needs storage. If yes, what is the best way to make that boss, because I do not want to have lags on my server.
Is it correct that I use onStatsChange function or is it better to do it onCombat?
Thanks!