When I do something like this
static method onExit takes nothing returns boolean
local trigger trr=GetTriggeringTrigger()
local thistype this=GetTriggerData(trr)
local unit l=GetFilterUnit()
local unit d
if IsUnitEnemy(l,.p) and...
1. Because the Filter function is called by GroupEnumUnitsInRange, that function is called inside onLoop function, onLoop function IS called by a timer. :P
2. the first is the best, also you can use UnitAlive
Thanks man, that's great!!!
Ok, i know there are a lot of Omnislash spells encoded, but only found one approved in THW, and it's GUI. Anyway, i'm not going to send this as a resource because people don't like repeated spells :D
Requirements:
GT - Jesus4Lyf
TimerUtils - Vexorian
Here's a test map, wich has the...
All the structs have default methods (create, destroy, allocate...).
^ http://www.thehelper.net/forums/showthread.php?t=127853
then, If you have:
local Data billy = Data.create(u1, u2)
local Data john = Data.create(u3, u4)
billy and john are the same struct, but each is unique and...
1. Yes, you can... But remember to change it here too:
private function init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition(t, Condition(function Cond))...
rexpim, that condition func sucks.
function conditions takes nothing returns boolean
return GetSpellAbilityId()=='A000' //<- rawcode
endfunction
Or just use GT system http://www.thehelper.net/forums/showthread.php?t=123288
^ Te correct keyword is private.
GetSpellTargetX() and GetSpellTargetY() are natives that are recently added by blizzard. NewGen don't higlight them... But they work!
Sorry for my sucker english xD
I tried with a global function ...
function InitTrig_NatureStrike takes nothing returns nothing
call TriggerAddAction(GT_RegisterStartsEffectEvent(CreateTrigger(),NATURESTRIKE),function Trig_NatureStrike_Actions)
endfunction
And it works... but i don't know why xD
Also you can...
???
When you create a trigger, it's unique. Then you can use it for detect an event, add conditions and actions,etc... You can't use "the same local trigger for various triggers" because the local triggers only can be used in the function they are declared (init function)...
And remember...