HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Biggest Trigger Made!

05-02-2002, 10:32 PM#1
Guest
Let's see what kind of crazy big triggers people have made so far. Only rule is that you can't have made it specifically to get it large, it has to be one you're using in a map you made/are making.

The biggest I've made so far is this

function Trig_MakeGolems_Func002003001 takes nothing returns boolean
return ( udg_BasicGolemType[GetForLoopIndexA()] == 1.00 )
endfunction

function Trig_MakeGolems_Func002003002001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 0.00 )
endfunction

function Trig_MakeGolems_Func002003002002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hfoo', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003002003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 1.00 )
endfunction

function Trig_MakeGolems_Func002003002003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hkni', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003002003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 2.00 )
endfunction

function Trig_MakeGolems_Func002003002003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hrif', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003002003003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 3.00 )
endfunction

function Trig_MakeGolems_Func002003002003003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'hgry', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003002003003003003 takes nothing returns nothing
call DoNothing( )
endfunction

function Trig_MakeGolems_Func002003002003003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003002003003003001() ) then
call Trig_MakeGolems_Func002003002003003003002()
else
call Trig_MakeGolems_Func002003002003003003003()
endif
endfunction

function Trig_MakeGolems_Func002003002003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003002003003001() ) then
call Trig_MakeGolems_Func002003002003003002()
else
call Trig_MakeGolems_Func002003002003003003()
endif
endfunction

function Trig_MakeGolems_Func002003002003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003002003001() ) then
call Trig_MakeGolems_Func002003002003002()
else
call Trig_MakeGolems_Func002003002003003()
endif
endfunction

function Trig_MakeGolems_Func002003002 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003002001() ) then
call Trig_MakeGolems_Func002003002002()
else
call Trig_MakeGolems_Func002003002003()
endif
endfunction

function Trig_MakeGolems_Func002003003001 takes nothing returns boolean
return ( udg_BasicGolemType[GetForLoopIndexA()] == 2.00 )
endfunction

function Trig_MakeGolems_Func002003003002001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 0.00 )
endfunction

function Trig_MakeGolems_Func002003003002002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ogru', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003002003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 1.00 )
endfunction

function Trig_MakeGolems_Func002003003002003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'otau', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003002003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 2.00 )
endfunction

function Trig_MakeGolems_Func002003003002003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ohun', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003002003003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 3.00 )
endfunction

function Trig_MakeGolems_Func002003003002003003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'owyv', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003002003003003003 takes nothing returns nothing
call DoNothing( )
endfunction

function Trig_MakeGolems_Func002003003002003003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003002003003003001() ) then
call Trig_MakeGolems_Func002003003002003003003002()
else
call Trig_MakeGolems_Func002003003002003003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003002003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003002003003001() ) then
call Trig_MakeGolems_Func002003003002003003002()
else
call Trig_MakeGolems_Func002003003002003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003002003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003002003001() ) then
call Trig_MakeGolems_Func002003003002003002()
else
call Trig_MakeGolems_Func002003003002003003()
endif
endfunction

function Trig_MakeGolems_Func002003003002 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003002001() ) then
call Trig_MakeGolems_Func002003003002002()
else
call Trig_MakeGolems_Func002003003002003()
endif
endfunction

function Trig_MakeGolems_Func002003003003001 takes nothing returns boolean
return ( udg_BasicGolemType[GetForLoopIndexA()] == 3.00 )
endfunction

function Trig_MakeGolems_Func002003003003002001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 0.00 )
endfunction

function Trig_MakeGolems_Func002003003003002002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ugho', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003002003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 1.00 )
endfunction

function Trig_MakeGolems_Func002003003003002003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'uabo', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003002003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 2.00 )
endfunction

function Trig_MakeGolems_Func002003003003002003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ucry', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003002003003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 3.00 )
endfunction

function Trig_MakeGolems_Func002003003003002003003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ugar', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003002003003003003 takes nothing returns nothing
call DoNothing( )
endfunction

function Trig_MakeGolems_Func002003003003002003003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003002003003003001() ) then
call Trig_MakeGolems_Func002003003003002003003003002()
else
call Trig_MakeGolems_Func002003003003002003003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003003002003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003002003003001() ) then
call Trig_MakeGolems_Func002003003003002003003002()
else
call Trig_MakeGolems_Func002003003003002003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003003002003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003002003001() ) then
call Trig_MakeGolems_Func002003003003002003002()
else
call Trig_MakeGolems_Func002003003003002003003()
endif
endfunction

function Trig_MakeGolems_Func002003003003002 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003002001() ) then
call Trig_MakeGolems_Func002003003003002002()
else
call Trig_MakeGolems_Func002003003003002003()
endif
endfunction

function Trig_MakeGolems_Func002003003003003001 takes nothing returns boolean
return ( udg_BasicGolemType[GetForLoopIndexA()] == 4.00 )
endfunction

function Trig_MakeGolems_Func002003003003003002001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 0.00 )
endfunction

function Trig_MakeGolems_Func002003003003003002002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'earc', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003003002003001 takes nothing returns boolean
return ( GetUnitStateSwap(UNIT_STATE_LIFE, GetTriggerUnit()) == 1.00 )
endfunction

function Trig_MakeGolems_Func002003003003003002003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'esen', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003003002003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 2.00 )
endfunction

function Trig_MakeGolems_Func002003003003003002003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'edcm', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003003002003003003001 takes nothing returns boolean
return ( udg_BasicGolemLevel[GetForLoopIndexA()] == 3.00 )
endfunction

function Trig_MakeGolems_Func002003003003003002003003003002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'ehpr', ConvertedPlayer(GetForLoopIndexA()), GetRectCenter(udg_PlayerRegions[GetForLoopIndexA()]), bj_UNIT_FACING )
endfunction

function Trig_MakeGolems_Func002003003003003002003003003003 takes nothing returns nothing
call DoNothing( )
endfunction

function Trig_MakeGolems_Func002003003003003002003003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003003002003003003001() ) then
call Trig_MakeGolems_Func002003003003003002003003003002()
else
call Trig_MakeGolems_Func002003003003003002003003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003003003002003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003003002003003001() ) then
call Trig_MakeGolems_Func002003003003003002003003002()
else
call Trig_MakeGolems_Func002003003003003002003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003003003002003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003003002003001() ) then
call Trig_MakeGolems_Func002003003003003002003002()
else
call Trig_MakeGolems_Func002003003003003002003003()
endif
endfunction

function Trig_MakeGolems_Func002003003003003002 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003003002001() ) then
call Trig_MakeGolems_Func002003003003003002002()
else
call Trig_MakeGolems_Func002003003003003002003()
endif
endfunction

function Trig_MakeGolems_Func002003003003003003 takes nothing returns nothing
call DoNothing( )
endfunction

function Trig_MakeGolems_Func002003003003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003003001() ) then
call Trig_MakeGolems_Func002003003003003002()
else
call Trig_MakeGolems_Func002003003003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003003001() ) then
call Trig_MakeGolems_Func002003003003002()
else
call Trig_MakeGolems_Func002003003003003()
endif
endfunction

function Trig_MakeGolems_Func002003003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003003001() ) then
call Trig_MakeGolems_Func002003003002()
else
call Trig_MakeGolems_Func002003003003()
endif
endfunction

function Trig_MakeGolems_Func002003 takes nothing returns nothing
if ( Trig_MakeGolems_Func002003001() ) then
call Trig_MakeGolems_Func002003002()
else
call Trig_MakeGolems_Func002003003()
endif
endfunction

function Trig_MakeGolems_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 8
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call Trig_MakeGolems_Func002003()
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction

//===========================================================================
function InitTrig_MakeGolems takes nothing returns nothing
set gg_trg_MakeGolems = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_MakeGolems, 3.00 )
call TriggerAddAction( gg_trg_MakeGolems, function Trig_MakeGolems_Actions )
endfunction
12-03-2002, 12:39 AM#2
DKSlayer
I can beat that but right now the source code is not Open source. Also dang you dug up an old one. Personally it should have left barried, definitly since you didn't add to it anyways. Just made a Comment, "That's big". Don't do that or I will delete such posts.
Thanks
DKSlayer
12-03-2002, 02:42 PM#3
SuperIKI
Dialog Engine 3.0 was such a big trigger that I had to split it up into two: One with the code and one with all the comments. For there is a limit on trigger size in WE.
:nono:
12-03-2002, 03:57 PM#4
DKSlayer
Hmmm, Question do you know what the max size is or a round about number.
Thanks
DKSlayer