| 10-11-2003, 07:00 PM | #1 |
How can I do a 5 level ability that moves the enemy to the caster and does damage over 2 second. I want a gradual movement, not instant. The damage must be able to go up. No JASS please, I am not good with it. The damage must not be trigger based AKA you must be able to get XP and gold from a kill. Thanx! |
| 10-11-2003, 08:30 PM | #2 |
PLZ HELP ME |
| 10-12-2003, 12:04 AM | #3 |
use a base spell such as shadowstrike to do damage to opponent and then set up triggers something like this. Event Unit is issued an order targetting a unit Condition Issued order is equal to (order string of your spell) Action set target = (target of issued order) Event Unit begins casting a spell Condition spell being cast = (your base spell) If you are using a custom spell you will need to use a very small amount of Jass to enter your spell code Action set Caster = event response - casting unit Set Distance = (Distance between (Position of caster) and (Position of target)) For each Integer A = 1 to 8 do multiple actions Loop Unit - Move target instantly to ((Position of caster) offset by ((Distance x (8.00 - (Real((Integer A))))) / 8.00) towards (Angle from (Position of target) to (Position of caster)) degrees) Wait 0.25 seconds Because you want damage to be happening during this, the target will still be able to move, but will still be constantly forced closer to the caster. |
