| 01-05-2007, 07:36 PM | #1 |
how do i make this spells any idea... m kinda confused how to start... Xenatos gains damage when he is traveling swiftly and with great speed. Passively increases damage depending on the distance he had traveled in the past x seconds. Factor for the calculation is *0.1 at all levels Level 1 – Distance moved in the past 1 second Level 2 – Distance moved in the past 2 seconds Level 3 – Distance moved in the past 3 seconds This is a great skill to kill of heroes who are trying to escape. Calculation is for example: With a level 3 momentum …. (Distance moved in the past 3 seconds)/10. This can give this hero a high damage output, but only if the enemy is trying to escape. (passive) |
| 01-05-2007, 09:11 PM | #2 |
.1 second intervals is unecessary, I would go with .4 -.5 it will be practically the same. dont forget to use a timer because waits and periodic events wont work extremely well. does this need to be multi-instancable? are you good with jass? what kind of map is it? |
| 01-05-2007, 10:34 PM | #3 |
he doesn't mention anything about intervals, he only said that the damage will be 10% of the distance moved under the last x seconds. shakib_028, what conditions must be met to get the damage? will he be able to stand still for awhile and still have the extra damage when he engage in battle in afterhand? |
| 01-05-2007, 10:35 PM | #4 |
Distance formula. use SquareRoot if you know jass |
| 01-05-2007, 10:35 PM | #5 |
Distance formula. use SquareRoot if you know jass |
| 01-06-2007, 04:57 AM | #6 |
i knw how to code jass bt m not tht good at it... i jus wanned to know.. how to start codein this skill... oNdizZ, after 3 sec if he hits he will deal bonus damage or else the calculation will start again |
| 01-07-2007, 03:13 AM | #7 |
try storing the distances moved in an array, and making an integer to represent how many distances are stored. if i exceeds whatever, set the arrays like so. real[1] is set equal to real[2] real[2] is set equal to real[3] ect. then calculate damage. would this work? |
