Hi Everybody, because my long retirement I don't know only basics (and few tricks) so please help me with this spell :
Midnight Roar : Wolf roar and enemies within 550/600/650/700 range will get damage (but adding more damage if it's night)
I used Roar and let it only with Mana Cost/cooldown/AoE but when I casted everybody take damage not only enemy.
choco, how do you detect the time?
example
condition, if the time is midnight = true
action
ordering triggering unit to deal damage to xxx unit
set heroxp = [B][U]( GetHeroXP(hero) +[/U][/B] 100*GetUnitLevel(GetTriggerUnit()) )
thx Doom-Angel (i'm such an idiot =))) I really don't thinked at that :|
function Trig_Untitled_Trigger_001_Conditions takes nothing returns boolean
return IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)
endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local unit hero = GetTriggerUnit()
local integer heroxp = 100*GetUnitLevel(GetTriggerUnit())
call AddHeroXP(hero,heroxp,true)
endfunction
//====================================================================== =====
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Untitled_Trigger_001, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Untitled_Trigger_001, Condition( function Trig_Untitled_Trigger_001_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction