| 02-09-2007, 09:26 AM | #1 |
I need help in making this skill for my map... Feral Acceleration - Passive Every X seconds, the White Wolf gains X % movespeed. If he attacks within the next second(1 sec) after stopping, the movespeed he gained will be used as bonus damage on the first attack. If the White Wolf stops for more than 1 second, the effect is canceled. Maximum of two stacks only. How do I do this? |
| 02-09-2007, 03:38 PM | #2 |
Use a variable to store the wolf's position. Then, on a periodic trigger that runs once every second, add 1 to a counter, this could be either the unit's custom value or another variable, then compare the wolf's current position with the one stored, if it's the same then the wolf hasn't moved for the last second, remove any speed bonus it has and reset the counter. Otherwise, store his current position so it can be verified again next time the trigger runs. Once the counter reaches X this will mean that the wolf has been moving for X seconds, you can give him the movement speed bonus ability or, if he already has it, increase it's level, and again reset the counter. Another trigger should run whenever the wolf attacks, if it has the movement speed ability then add the bonus damage ability to it, set it's level to be the same as the one of the movement speed bonus, then remove the movement speed bonus and reset the counter, wait for a second or however long it takes for the wolf to successfuly finish one attack then remove the bonus damage ability from it. |
| 02-12-2007, 04:45 AM | #3 |
Could you tell me how to do all that? I'm not that good with variables and GUI...i'm still a noob... |
| 02-12-2007, 07:04 AM | #4 |
Its gonna take some time then -Av3n |
| 02-14-2007, 07:26 AM | #5 |
Darn...But it IS possible with GUI right? |
| 02-14-2007, 08:04 AM | #6 |
Possible but diffucult very diffucult -Av3n |
| 02-14-2007, 08:06 AM | #7 |
It's not that difficult, if you don't need it multi-instanceable then it's fairly simple. |
