Name | Type | is_array | initial_value |
Attackers | player | No | Player11 |
Attackers_Green | group | No | |
Attackers_LeftSide | group | No | |
Attackers_Middle_LeftSide | group | No | |
Attackers_Middle_RightSide | group | No | |
Attackers_Pink | group | No | |
Attackers_RightSide | group | No | |
BootSysOn | boolean | No | false |
BootSysTimer | timer | No | |
Chances | player | No | |
Defeat | boolean | No | false |
Defenders | force | No | |
DiffDialog | dialog | No | |
Easy | button | No | |
Gold_Amount | integer | No | 10 |
Hard | button | No | |
kills | integer | Yes | |
Level_Number | integer | No | 0 |
Lives | integer | No | 20 |
Lives_Lost | integer | No | 0 |
Monster_Amount | integer | No | |
Monster_Type | unitcode | No | |
Next_Level | timer | No | |
NoLivesLost | boolean | No | true |
Normal | button | No | |
Perfection | button | No | |
randomhero | integer | No | |
RandomTip | integer | No | 0 |
Sell | unitcode | No | nC57 |
TestMode | string | No | Duke-Wintermaul |
timeout | unit | No | |
Tip | string | Yes | |
wispunit | unit | No |
function Trig_Int_WinTD_Func004002 takes nothing returns nothing
call CreateFogModifierRectBJ( true, GetEnumPlayer(), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
endfunction
function Trig_Int_WinTD_Func012002 takes nothing returns nothing
call ForceAddPlayerSimple( GetEnumPlayer(), udg_Defenders )
endfunction
function Trig_Int_WinTD_Func015002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 45 )
endfunction
function Trig_Int_WinTD_Func016002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 1 )
endfunction
function Trig_Int_WinTD_Actions takes nothing returns nothing
// Play Sound
call PlaySoundBJ( gg_snd_MageTowerWhat1 )
// Setup Enviroment
call ForForce( GetPlayersAll(), function Trig_Int_WinTD_Func004002 )
// Setup Game Speed
call SetGameSpeed( MAP_SPEED_FASTEST )
call LockGameSpeedBJ( )
// Setup Time of Day
call SetTimeOfDay( 18.01 )
call SetTimeOfDayScalePercentBJ( 0.50 )
// Setup Players
call ForForce( GetPlayersAll(), function Trig_Int_WinTD_Func012002 )
call ForceRemovePlayerSimple( Player(11), udg_Defenders )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(11) )
call ForForce( GetPlayersAll(), function Trig_Int_WinTD_Func015002 )
call ForForce( GetPlayersAll(), function Trig_Int_WinTD_Func016002 )
call SetUnitInvulnerable( gg_unit_nbsp_0009, true )
endfunction
//===========================================================================
function InitTrig_Int_WinTD takes nothing returns nothing
set gg_trg_Int_WinTD = CreateTrigger( )
call TriggerAddAction( gg_trg_Int_WinTD, function Trig_Int_WinTD_Actions )
endfunction