Name | Type | is_array | initial_value |
function Trig_DruidTalonRetaliation_Actions takes nothing returns nothing
call GroupPointOrderLocBJ( GetUnitsOfTypeIdAll('edtm'), "move", GetUnitLoc(GetDyingUnit()) )
endfunction
//===========================================================================
function InitTrig_DruidTalonRetaliation takes nothing returns nothing
set gg_trg_DruidTalonRetaliation = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_DruidTalonRetaliation, gg_unit_edot_0153, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_DruidTalonRetaliation, function Trig_DruidTalonRetaliation_Actions )
endfunction
function Trig_TalonPatrol_Conditions takes nothing returns boolean
if ( GetUnitTypeId(GetTriggerUnit()) == 'edtm' ) then
return true
endif
return false
endfunction
function Trig_TalonPatrol_Actions takes nothing returns nothing
call TriggerSleepAction(6.0)
call GroupPointOrderLocBJ( GetUnitsOfTypeIdAll('edtm'), "patrol", GetUnitLoc(gg_unit_Ewar_0237) )
endfunction
//===========================================================================
function InitTrig_TalonPatrol takes nothing returns nothing
set gg_trg_TalonPatrol = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_TalonPatrol, gg_rct_DeadTalon )
call TriggerAddCondition( gg_trg_TalonPatrol, Condition( function Trig_TalonPatrol_Conditions ) )
call TriggerAddAction( gg_trg_TalonPatrol, function Trig_TalonPatrol_Actions )
endfunction
globals
boolean HippoGroupFormed = false
group HippoPatrol = CreateGroup()
endglobals
function FormPatrol takes nothing returns nothing
call GroupAddUnitSimple( GetEnumUnit(), HippoPatrol )
endfunction
function Trig_HippoPatrol_Actions takes nothing returns nothing
if ( GetUnitTypeId(GetTriggerUnit()) == 'ehpr' ) then
if (HippoGroupFormed == false) then
call ForGroupBJ( GetUnitsInRectAll(gg_rct_HippoPatrol), function FormPatrol )
set HippoGroupFormed = true
endif
if (CountUnitsInGroup(HippoPatrol) > 0) then
call GroupPointOrderLocBJ( HippoPatrol, "attack", GetUnitLoc(GetDyingUnit()) )
call TriggerSleepAction(30.0)
call GroupPointOrderLocBJ( HippoPatrol, "patrol", GetRectCenter(gg_rct_Exit_Elves) )
else
call DestroyGroup(HippoPatrol)
endif
endif
endfunction
//===========================================================================
function InitTrig_HippoPatrol takes nothing returns nothing
set gg_trg_HippoPatrol = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_HippoPatrol, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_HippoPatrol, function Trig_HippoPatrol_Actions )
endfunction
globals
location dyingKeeperLoc
location exitElvesLoc
location hippoPatrolLoc
location lightRain5Loc
group protectors
group treants
endglobals
function Trig_TreantAttack_Func007002 takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "unroot" )
endfunction
function Trig_TreantAttack_Func009002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", dyingKeeperLoc )
endfunction
function Trig_TreantAttack_Func010002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", dyingKeeperLoc )
endfunction
function Trig_TreantAttack_Actions takes nothing returns nothing
set dyingKeeperLoc = GetUnitLoc(GetDyingUnit())
set exitElvesLoc = GetRectCenter(gg_rct_Exit_Elves)
set hippoPatrolLoc = GetRectCenter(gg_rct_HippoPatrol)
set lightRain5Loc = GetRectCenter(gg_rct_light_rain_5)
call CreateNUnitsAtLocFacingLocBJ( 6, 'efon', Player(1), exitElvesLoc, dyingKeeperLoc )
call CreateNUnitsAtLocFacingLocBJ( 6, 'efon', Player(1), hippoPatrolLoc, dyingKeeperLoc )
call CreateNUnitsAtLocFacingLocBJ( 6, 'efon', Player(1), lightRain5Loc, dyingKeeperLoc )
call CreateNUnitsAtLocFacingLocBJ( 6, 'etrp', Player(1), exitElvesLoc, dyingKeeperLoc )
call CreateNUnitsAtLocFacingLocBJ( 6, 'etrp', Player(1), hippoPatrolLoc, dyingKeeperLoc )
call CreateNUnitsAtLocFacingLocBJ( 6, 'etrp', Player(1), lightRain5Loc, dyingKeeperLoc )
call RemoveLocation(exitElvesLoc)
call RemoveLocation(hippoPatrolLoc)
call RemoveLocation(lightRain5Loc)
set protectors = GetUnitsOfTypeIdAll('etrp')
set treants = GetUnitsOfTypeIdAll('efon')
call ForGroupBJ( protectors, function Trig_TreantAttack_Func007002 )
call TriggerSleepAction( 3.00 )
call ForGroupBJ( protectors, function Trig_TreantAttack_Func009002 )
call ForGroupBJ( treants, function Trig_TreantAttack_Func010002 )
call DestroyGroup(protectors)
call DestroyGroup(treants)
call RemoveLocation(dyingKeeperLoc)
endfunction
//===========================================================================
function InitTrig_TreantAttack takes nothing returns nothing
set gg_trg_TreantAttack = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_TreantAttack, gg_unit_Ekee_0232, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_TreantAttack, function Trig_TreantAttack_Actions )
endfunction