function Trig_Horizontal_Gate1_Conditions takes nothing returns boolean
if (not (GetUnitTypeId(GetTriggerUnit())=='h022')) then
return false
endif
if (not (GetSpellAbilityId()=='A01Q')) then
return false
endif
return true
endfunction
function Trig_Horizontal_Gate1_Actions takes nothing returns nothing
call StopSpellFromCasting(GetSpellAbilityUnit())
call ReplaceUnitAdvanced(GetSpellAbilityUnit(),'h023',bj_UNIT_STATE_METHOD_RELATIVE)
call SetUnitAnimation(GetLastReplacedUnitBJ(),"Death Alternate")
call SelectUnitAddForPlayer(GetLastReplacedUnitBJ(),GetOwningPlayer(GetSpellAbilityUnit()))
endfunction
function InitTrig_Horizontal_Gate1 takes nothing returns nothing
set gg_trg_Horizontal_Gate1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Horizontal_Gate1,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(gg_trg_Horizontal_Gate1,Condition(function Trig_Horizontal_Gate1_Conditions))
call TriggerAddAction(gg_trg_Horizontal_Gate1,function Trig_Horizontal_Gate1_Actions)
endfunction
function Trig_Vertical_Gate1_Conditions takes nothing returns boolean
if (not (GetUnitTypeId(GetTriggerUnit())=='h029')) then
return false
endif
if (not (GetSpellAbilityId()=='A01Q')) then
return false
endif
return true
endfunction
function Trig_Vertical_Gate1_Actions takes nothing returns nothing
call StopSpellFromCasting(GetSpellAbilityUnit())
call ReplaceUnitAdvanced(GetSpellAbilityUnit(),'h02B',bj_UNIT_STATE_METHOD_RELATIVE)
call SetUnitAnimation(GetLastReplacedUnitBJ(),"Death Alternate")
call SelectUnitAddForPlayer(GetLastReplacedUnitBJ(),GetOwningPlayer(GetSpellAbilityUnit()))
endfunction
function InitTrig_Vertical_Gate1 takes nothing returns nothing
set gg_trg_Vertical_Gate1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Vertical_Gate1,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(gg_trg_Vertical_Gate1,Condition(function Trig_Vertical_Gate1_Conditions))
call TriggerAddAction(gg_trg_Vertical_Gate1,function Trig_Vertical_Gate1_Actions)
endfunction
function Trig_Vertical_Gate1_Copy_Conditions takes nothing returns boolean
if (not (GetUnitTypeId(GetTriggerUnit())=='h02B')) then
return false
endif
if (not (GetSpellAbilityId()=='A01V')) then
return false
endif
return true
endfunction
function Trig_Vertical_Gate1_Copy_Actions takes nothing returns nothing
call StopSpellFromCasting(GetSpellAbilityUnit())
call ReplaceUnitAdvanced(GetSpellAbilityUnit(),'h029',bj_UNIT_STATE_METHOD_RELATIVE)
call SelectUnitAddForPlayer(GetLastReplacedUnitBJ(),GetOwningPlayer(GetSpellAbilityUnit()))
endfunction
function InitTrig_Vertical_Gate1_Copy takes nothing returns nothing
set gg_trg_Vertical_Gate1_Copy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Vertical_Gate1_Copy,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(gg_trg_Vertical_Gate1_Copy,Condition(function Trig_Vertical_Gate1_Copy_Conditions))
call TriggerAddAction(gg_trg_Vertical_Gate1_Copy,function Trig_Vertical_Gate1_Copy_Actions)
endfunction
function Trig_Horizontal_Gate2_Conditions takes nothing returns boolean
if (not (GetUnitTypeId(GetTriggerUnit())=='h023')) then
return false
endif
if (not (GetSpellAbilityId()=='A01V')) then
return false
endif
return true
endfunction
function Trig_Horizontal_Gate2_Actions takes nothing returns nothing
call StopSpellFromCasting(GetSpellAbilityUnit())
call ReplaceUnitAdvanced(GetSpellAbilityUnit(),'h022',bj_UNIT_STATE_METHOD_RELATIVE)
call SelectUnitAddForPlayer(GetLastReplacedUnitBJ(),GetOwningPlayer(GetSpellAbilityUnit()))
endfunction
function InitTrig_Horizontal_Gate2 takes nothing returns nothing
set gg_trg_Horizontal_Gate2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Horizontal_Gate2,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(gg_trg_Horizontal_Gate2,Condition(function Trig_Horizontal_Gate2_Conditions))
call TriggerAddAction(gg_trg_Horizontal_Gate2,function Trig_Horizontal_Gate2_Actions)
endfunction
no i dont have skype sry. i can help u fine here but u need to find the functions with those names. alternatively u can post ur map and i can take a quick look at it