Monovertex
Formerly Smith_S9
- Reaction score
- 1,461
Okay, I have this code:
This is not the full code. The problem is that the trigger Death doesn't fires. The problem isn't the condition and I didn't destroyed the trigger, either. Also, I cannot create the trigger in InitTrig_Malediction_Aura because of...some things (long story ). So, anyone can clear me up why this doesn't work? Thanks in advance.
Code:
function Malediction_Aura_Actions takes nothing returns nothing
local trigger Death = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ( Death, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( Death, Condition( function Death_Conditions ) )
call TriggerAddAction( Death, function Death_Actions )
endfunction
//===========================================================================
function InitTrig_Malediction_Aura takes nothing returns nothing
local trigger Malediction_Aura = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( Malediction_Aura, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( Malediction_Aura, Condition( function Malediction_Aura_Conditions ) )
call TriggerAddAction( Malediction_Aura, function Malediction_Aura_Actions )
endfunction
This is not the full code. The problem is that the trigger Death doesn't fires. The problem isn't the condition and I didn't destroyed the trigger, either. Also, I cannot create the trigger in InitTrig_Malediction_Aura because of...some things (long story ). So, anyone can clear me up why this doesn't work? Thanks in advance.