- Joined
- Aug 8, 2010
- Messages
- 1,022
Hi there! I wanna ask how i can create an ability. So i want when i cast the spell, some animations of the model to play (this is easy, LOL) and to damage all the enemies in an AoE every 0.5 seconds. The hard part is here : i want to slow enemies in this AoE every 0.5 seconds (when the damage occurs), and as time passes, the slow gets harder (the ability is a channel type ability, based off of Bladestorm). And when an unit is within this AoE for X period of time, it gets frozen.
So, the animation part is easy, lol. But i want this slow to get stronger and stronger as time passes. I will create a dummy slow ability with a set amount of levels. 1 lvl - 5% slow, 2 lvl - 15% slow, etc.
And now my question - how can i create a real variable FOR EACH UNIT IN THE AOE OF ALL THE INSTANCES OF THE SPELL that shows for how long the unit has been there (this variable will be increased as time passes, duh...)?
If i do this somehow, it will be easy afterwise. Every 0.5 seconds since the unit is in the AoE, i create a dummy and execute this slow dummy spell and each time, the level of this slow is greater than the previous (the level of this slow should also be stored in a variable).
So, when an unit stays within this AoE for 0.5 sec., slow lvl 1 is executed. If this unit stays for 1 sec, slow lvl 2 is executed, for 1.5 seconds, slow level 3 is executed. And when this time reaches 4 seconds (slow lvl 8), the target gets frozen for 3 seconds.
I know what is MUI, and i personally make spells MUI trough Hanky's Dynamic Indexing System but this spell will be kinda harder because i need to like... uhm... create a smaller indexing system in the bigger one... so this variable i talk about must have... 2 arrays? One of them displays the instance it is in, the second represents the number of the unit in the AoE for this instance?
BUT...
HOW should i do this? Help me, give me an idea, create a small trigger that represents your idea. I don't have triggers at the moment because i will start this spell after 2-3 days for which i'm sorry. I was SO curious to see the answer...
I reward with a +rep !
So, the animation part is easy, lol. But i want this slow to get stronger and stronger as time passes. I will create a dummy slow ability with a set amount of levels. 1 lvl - 5% slow, 2 lvl - 15% slow, etc.
And now my question - how can i create a real variable FOR EACH UNIT IN THE AOE OF ALL THE INSTANCES OF THE SPELL that shows for how long the unit has been there (this variable will be increased as time passes, duh...)?
If i do this somehow, it will be easy afterwise. Every 0.5 seconds since the unit is in the AoE, i create a dummy and execute this slow dummy spell and each time, the level of this slow is greater than the previous (the level of this slow should also be stored in a variable).
So, when an unit stays within this AoE for 0.5 sec., slow lvl 1 is executed. If this unit stays for 1 sec, slow lvl 2 is executed, for 1.5 seconds, slow level 3 is executed. And when this time reaches 4 seconds (slow lvl 8), the target gets frozen for 3 seconds.
I know what is MUI, and i personally make spells MUI trough Hanky's Dynamic Indexing System but this spell will be kinda harder because i need to like... uhm... create a smaller indexing system in the bigger one... so this variable i talk about must have... 2 arrays? One of them displays the instance it is in, the second represents the number of the unit in the AoE for this instance?
BUT...
HOW should i do this? Help me, give me an idea, create a small trigger that represents your idea. I don't have triggers at the moment because i will start this spell after 2-3 days for which i'm sorry. I was SO curious to see the answer...
I reward with a +rep !