- Joined
- Dec 24, 2018
- Messages
- 647
Hello, is there way to created spell like this? : when hero cast spell roar, friend units instead of bonus attack damage they will have kritikal strike or bash or cold attack or ability of orb of corruption.
wow this is awesome thanks buddy
Critical Strike Aura
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Roar (Bonus Critical Strike)
Actions
Set Temp_Point = (Position of (Casting unit))
Set Temp_Group = (Units within 600.00 of Temp_Point matching (((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to TRUE))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Unit - Add Critical Strike (Roar Bonus) to (Picked unit)
Custom script: call RemoveLocation (udg_Temp_Point)
Custom script: call DestroyGroup (udg_Temp_Group)
Remove Bonus
Events
Time - Every 0.40 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Roar) Equal to FALSE
Then - Actions
Unit - Remove Critical Strike (Roar Bonus) from (Picked unit)
Else - Actions
What type of ability are you using?i find one problem, sometimes ability is not removed. for example ability durotarion is 15 second and trigger is set on 40 second. and not help even if i set on 15 second trigger.
its hero ability,i tried test in your map replace roar(bonus critical strike) with hero version of roar, and in game after i use roar critikal strike stand 0,4 second but buff still continue. critikal strike was not removed after buf ends in 0,4 second.What type of ability are you using?
cant openedTo add onto Warseeker's example, I'd recommend expanding it a bit more to improve performance.
I attached a map with a working Roar example that will give better results.
And about the 40 second interval thing, Warseeker set it to 0.40, so it'd run 2.5 times per second. He used a "large" number like this because it helps improve performance (it's difficult for the game to loop through 10+ units, 10+ times per second).
its hero ability,i tried test in your map replace roar(bonus critical strike) with hero version of roar, and in game after i use roar critikal strike stand 0,4 second but buff still continue. critikal strike was not removed after buf ends in 0,4 second.
exactlyHow To Post Your Trigger
That will add abilities to any unit, including structures, and it will do so permanently. I was under the impression that you wanted a 15 second buff that added damage + crit (Or any passive), and then after it expired the damage + crit would be removed?
Exactly what?exactly
trigger tested and work fineExactly what?
Are you still having trouble or is it working? If you do exactly what I did in my trigger it will work fine.