HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Help Please

08-30-2003, 10:38 PM#1
Progniss
Ok Im Having a problem with this trigger


function Trig_FF_Mana_Set_LvL_1_Conditions takes nothing returns boolean
if ( not ( GetLearnedSkillBJ() == 'ANef' ) ) then
return false
endif
return true
endfunction

function Trig_FF_Mana_Set_LvL_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call EnableTrigger( gg_trg_FF_Mana_Set_LvL_2 )
call EnableTrigger( gg_trg_Feeding_Frenzy_Mana_1 )
endfunction

//===========================================================================
function InitTrig_FF_Mana_Set_LvL_1 takes nothing returns nothing
set gg_trg_FF_Mana_Set_LvL_1 = CreateTrigger( )
call TriggerRegisterShowSkillEventBJ( gg_trg_FF_Mana_Set_LvL_1 )
call TriggerAddCondition( gg_trg_FF_Mana_Set_LvL_1, Condition( function Trig_FF_Mana_Set_LvL_1_Conditions ) )
call TriggerAddAction( gg_trg_FF_Mana_Set_LvL_1, function Trig_FF_Mana_Set_LvL_1_Actions )
endfunction



that is supposed to activate this trigger.


E)Unit - Sumo Wrestler 0071 <gen> Begins channeling an ability
C)(Ability being cast) Equal to Feeding Frenzy
A)Special Effect - Create a special effect attached to the origin of Sumo Wrestler 0071 <gen> using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
A)Unit - Set mana of Sumo Wrestler 0071 <gen> to ((Mana of Sumo Wrestler 0071 <gen>) + 10.00)


This is supposed to Give mana to unit while the "Cannibalism" gives him health at same time. I'm not sure how to make it work or if it needs to be totally re-triggerd. Please help me out im my ignorance? Thanks :)