What's the script for a weather effect variable? (I mean a local too)
Edit: I still would like to know the local name above, but for now I just declared it in globals.. -.-
I'm having trouble with this trigger, the world editor is telling me that this line is an 'invalid argument type (unitevent)'
Code:
call TriggerAddCondition(gg_trg_spell2, (Condition (function spell2_cond))
And here is the whole trigger!
Code:
function spell2_cond takes nothing returns boolean
return GetSpellAbilityId() == 'A002'
endfunction
function spell2_act takes nothing returns nothing
call AddWeatherEffect( gg_rct_blizzard_spell3, 'SNbs')
set udg_weather = GetLastCreatedWeatherEffect()
call TriggerSleepAction( 6.00)
call RemoveWeatherEffectBJ(udg_weather)
set udg_weather = null
endfunction
//==== Init Trigger NewTrigger ====
function InitTrig_spell2 takes nothing returns nothing
set gg_trg_spell2 = CreateTrigger()
//call TriggerRegister__(gg_trg_NewTrigger, )
call TriggerRegisterAnyUnitEventBJ( gg_trg_spell2, EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_spell2, (Condition (function spell2_cond))
call TriggerAddAction(gg_trg_spell2, function spell2_act)
endfunction
Spoofzz
_________________
Doesn't
Dekar make the world easier?
"I
Wumbo. YOU
Wumbo. He she me..
WUMbo.
Wumbo;
WumboING;
WumBOLogy; the study of
WUMBO. It's first grade,
Spongebob!"
"I'm sorry I doubted your great wisdom
Patrick!"
Catch
me on
Azeroth (U.S. East) -
NameSpoofer