function InitTrig_ABC takes nothing returns nothing
//=======================================
//Massive local shadow lol
//=======================================
local trigger A1 = CreateTrigger()
local trigger A2 = CreateTrigger()
local trigger A3 = CreateTrigger()
local trigger A4 = CreateTrigger()
local trigger A5 = CreateTrigger()
local trigger A6 = CreateTrigger()
local trigger A7 = CreateTrigger()
local trigger A8 = CreateTrigger()
local trigger A9 = CreateTrigger()
local trigger A10 = CreateTrigger()
local trigger A11 = CreateTrigger()
local trigger A12 = CreateTrigger()
local trigger A13 = CreateTrigger()
local trigger A14 = CreateTrigger()
local trigger A15 = CreateTrigger()
local trigger A16 = CreateTrigger()
local trigger A17 = CreateTrigger()
local trigger A18 = CreateTrigger()
local trigger A19 = CreateTrigger()
local trigger A20 = CreateTrigger()
local trigger A21 = CreateTrigger()
local trigger A22 = CreateTrigger()
local trigger A23 = CreateTrigger()
local trigger A24 = CreateTrigger()
local trigger A25 = CreateTrigger()
local region r1 = CreateRegion()
local region r2 = CreateRegion()
local region r3 = CreateRegion()
local region r4 = CreateRegion()
local region r5 = CreateRegion()
local region r6 = CreateRegion()
local region r7 = CreateRegion()
local region r8 = CreateRegion()
local region r9 = CreateRegion()
local region r10 = CreateRegion()
local region r11 = CreateRegion()
local region r12 = CreateRegion()
local region r13 = CreateRegion()
local region r14 = CreateRegion()
local region r15 = CreateRegion()
local region r16 = CreateRegion()
local region r17 = CreateRegion()
local region r18 = CreateRegion()
local region r19 = CreateRegion()
local region r20 = CreateRegion()
local region r21 = CreateRegion()
local region r22 = CreateRegion()
local region r23 = CreateRegion()
local region r24 = CreateRegion()
local region r25 = CreateRegion()
//===========================================
//Add actions and events to functions
//===========================================
call TriggerAddAction( A1, function A1_Actions)
call TriggerAddAction( A2, function A2_Actions)
call TriggerAddAction( A3, function A3_Actions)
call TriggerAddAction( A4, function A4_Actions)
call TriggerAddAction( A5, function A5_Actions)
call TriggerAddAction( A6, function A6_Actions)
call TriggerAddAction( A7, function A7_Actions)
call TriggerAddAction( A8, function A8_Actions)
call TriggerAddAction( A9, function A9_Actions)
call TriggerAddAction( A10, function A10_Actions)
call TriggerAddAction( A11, function A11_Actions)
call TriggerAddAction( A12, function A12_Actions)
call TriggerAddAction( A13, function A13_Actions)
call TriggerAddAction( A14, function A14_Actions)
call TriggerAddAction( A15, function A15_Actions)
call TriggerAddAction( A16, function A16_Actions)
call TriggerAddAction( A17, function A17_Actions)
call TriggerAddAction( A18, function A18_Actions)
call TriggerAddAction( A19, function A19_Actions)
call TriggerAddAction( A20, function A20_Actions)
call TriggerAddAction( A21, function A21_Actions)
call TriggerAddAction( A22, function A22_Actions)
call TriggerAddAction( A23, function A23_Actions)
call TriggerAddAction( A24, function A24_Actions)
call TriggerAddAction( A25, function A25_Actions)
//=============================================
//Add Rect to Local Regions
//=============================================
call RegionAddRect( r1, gg_rct_site_1)
call RegionAddRect( r2, gg_rct_site_2)
call RegionAddRect( r3, gg_rct_site_3)
call RegionAddRect( r4, gg_rct_site_4)
call RegionAddRect( r5, gg_rct_site_5)
call RegionAddRect( r6, gg_rct_site_6)
call RegionAddRect( r7, gg_rct_site_7)
call RegionAddRect( r8, gg_rct_site_8)
call RegionAddRect( r9, gg_rct_site_9)
call RegionAddRect( r10, gg_rct_site_10)
call RegionAddRect( r11, gg_rct_site_11)
call RegionAddRect( r12, gg_rct_site_12)
call RegionAddRect( r13, gg_rct_site_13)
call RegionAddRect( r14, gg_rct_site_14)
call RegionAddRect( r15, gg_rct_site_15)
call RegionAddRect( r16, gg_rct_site_16)
call RegionAddRect( r17, gg_rct_site_17)
call RegionAddRect( r18, gg_rct_site_18)
call RegionAddRect( r19, gg_rct_site_19)
call RegionAddRect( r20, gg_rct_site_20)
call RegionAddRect( r21, gg_rct_site_21)
call RegionAddRect( r22, gg_rct_site_22)
call RegionAddRect( r23, gg_rct_site_23)
call RegionAddRect( r24, gg_rct_site_24)
call RegionAddRect( r25, gg_rct_site_25)
//========================================
// Unit enters region
//========================================
call TriggerRegisterEnterRegion( A1, r1, null)
call TriggerRegisterEnterRegion( A2, r2, null)
call TriggerRegisterEnterRegion( A3, r3, null)
call TriggerRegisterEnterRegion( A4, r4, null)
call TriggerRegisterEnterRegion( A5, r5, null)
call TriggerRegisterEnterRegion( A6, r6, null)
call TriggerRegisterEnterRegion( A7, r7, null)
call TriggerRegisterEnterRegion( A8, r8, null)
call TriggerRegisterEnterRegion( A9, r9, null)
call TriggerRegisterEnterRegion( A10, r10, null)
call TriggerRegisterEnterRegion( A11, r11, null)
call TriggerRegisterEnterRegion( A12, r12, null)
call TriggerRegisterEnterRegion( A13, r13, null)
call TriggerRegisterEnterRegion( A14, r14, null)
call TriggerRegisterEnterRegion( A15, r15, null)
call TriggerRegisterEnterRegion( A16, r16, null)
call TriggerRegisterEnterRegion( A17, r17, null)
call TriggerRegisterEnterRegion( A18, r18, null)
call TriggerRegisterEnterRegion( A19, r19, null)
call TriggerRegisterEnterRegion( A20, r20, null)
call TriggerRegisterEnterRegion( A21, r21, null)
call TriggerRegisterEnterRegion( A22, r22, null)
call TriggerRegisterEnterRegion( A23, r23, null)
call TriggerRegisterEnterRegion( A24, r24, null)
call TriggerRegisterEnterRegion( A25, r25, null)
//============================================
//nulling all the locals.....
//============================================
set A1 = null
set A2 = null
set A3 = null
set A4 = null
set A5 = null
set A6 = null
set A7 = null
set A8 = null
set A9 = null
set A10 = null
set A11 = null
set A12 = null
set A13 = null
set A14 = null
set A15 = null
set A16 = null
set A17 = null
set A18 = null
set A19 = null
set A20 = null
set A21 = null
set A22 = null
set A23 = null
set A24 = null
set A25 = null
set r1 = null
set r2 = null
set r3 = null
set r4 = null
set r5 = null
set r6 = null
set r7 = null
set r8 = null
set r9 = null
set r10 = null
set r11 = null
set r12 = null
set r13 = null
set r14 = null
set r15 = null
set r16 = null
set r17 = null
set r18 = null
set r19 = null
set r20 = null
set r21 = null
set r22 = null
set r23 = null
set r24 = null
set r25 = null
endfunction