| 04-25-2007, 12:53 PM | #1 |
I use the following trigger to make the spell Trigger: ![]() Unit starts casting an ability
![]()
![]() ability being cast equal to charge
![]()
![]() create 1 dummy at the position of casting hero
![]() set distancecalculator = last created unitand the main trigger Trigger: ![]() unit starts the effect of an ability
![]()
![]() ability being cast equal to charge
![]()
![]() order casting unit to damage target unit of ability being cats for {0.2*distance between(distace calculator) and casting unit}The spell must do 20 % of the distance in damage but it do nothing |
| 04-25-2007, 01:07 PM | #2 |
Why do you calculate damage in extra trigger? Couln't it be in the second one as well? Why do you use dummy? Btw, use Edit -> Copy as text. I will be much more readable. |
| 04-25-2007, 01:25 PM | #3 |
You need an end point. If its a unit target you need to damage between dummy and target unit of ability being cast. If its a point, then dummy to target point of ability being cast. right click your trigger and choose copy as text, then paste it here with the trigger tags and it will be easier to help. |
| 04-25-2007, 02:24 PM | #5 | |
Quote:
This can't be used with that event., remove it. |
| 04-25-2007, 03:39 PM | #6 | |
Quote:
As I think of it you are right. But what about the Charge. I just saw that in the charge triggers instead of charge it checks UNKNOWN. It's because i' tried with different starting ability and forgot to change the trigger. Now I fixed it and voila-the same not working ability. The floating text bug is a mystery to me. The strangest think is that the floating text calculates the damage correctly. It's just not inflicted on the target. One more question. Can I make the text say 180 for example not 180.000 |
| 04-25-2007, 04:07 PM | #7 |
Change the event on the charge level 3 trigger to 'A unit start's the effect of an ability'. So get the number as an integer, convert real to integer and then integer to string. For the phantom energy problem, there is no 'Learned Hero Skill' so it cannot be equal to 'Phantom Energy' so the conditions will never be true. |
| 04-30-2007, 02:56 PM | #8 |
At last. it work. I couldn't run it with your triggers. I found another way.Just used unit is ordered targeting an object instead of starts casting an ability.Now it works with only one little problem-the floating text. It is too correct. Now it shows 135.400 for example. I want it to be just 135 - like a critical hit. Can it be done or I should use something else instead of floating text |
| 04-30-2007, 04:51 PM | #9 |
ya, track the damage as an integer and use that value for the floating text. |
| 05-01-2007, 02:10 PM | #10 |
Thanks. |
