function Trig_Simple_Actions takes nothing returns nothing
local unit u
call GroupEnumUnitsInRect(bj_lastCreatedGroup, bj_mapInitialPlayableArea, null)
loop
set u = FirstOfGroup(bj_lastCreatedGroup)
exitwhen u == null
if IsUnitType(u, UNIT_TYPE_HERO) == true then
call AddHeroXP(u,1000,false)
endif
call GroupRemoveUnit(bj_lastCreatedGroup, u)
endloop
endfunction
//===========================================================================
function InitTrig_Simple takes nothing returns nothing
local trigger T = CreateTrigger( )
call TriggerRegisterTimerEvent( T, 0.00, false )
call TriggerAddAction( T, function Trig_Simple_Actions )
set T = null
endfunction