| 04-10-2004, 09:11 AM | #1 |
... the exact point in which damage is taken for a spell. When you cast deathcoil, what is the proper ability event for when the unit takes damage? I don't want a unit to take damage well before the missile ever reaches them.. |
| 04-10-2004, 01:35 PM | #2 |
I'm not 100% sure but maybe "Unit starts the effect of an ability" in the generic unit event works. |
| 04-11-2004, 03:05 AM | #3 |
you cant get the exact point without some distance formula... woah ive never thought of that... ok... so deathcoil the spell has a speed lets make it 's' then you get the distance between the casted and casted upon lets call it 'd' so now you will have a wait function of D/S i think... so your trigger would be... Events - A unit begins casting an ability Conditions - Ability being cast equal to Deathcoil Actions - Set d = (Integer((Distance between (Position of (Casting unit)) and (Position of (Target unit of ability being cast))))) Wait - Convert integer to real (D/S) ***spell action you want here*** S is, as i said before, the missile speed of Deathcoil. wow... that was cool... I've never seen that done before but i bet it has been done... so oh well :D |
| 04-11-2004, 04:28 AM | #4 | |
Quote:
Heh, just be glad this game does the trig for you. |
| 04-11-2004, 04:34 AM | #5 |
what do you mean? its just division... |
| 04-11-2004, 11:23 AM | #6 |
Use "Starts the effect of an ability" instead of "Begins casting an ability" if you want the right results. |
| 04-12-2004, 04:02 AM | #7 | |
Quote:
I've tried both, and it looks funny. twista got mad math skills.. :P haha w00t! |
| 04-12-2004, 09:36 PM | #8 |
lol, well i got it to work and found a reason for me to use it ;) but you may need to do some expirimenting to figure out which event to use. |
