Name | Type | is_array | initial_value |
Defeat | boolean | No | false |
Force1 | force | No | |
Force2 | force | No | |
Income | integer | Yes | |
LivesF1 | integer | No | 25 |
LivesF2 | integer | No | 25 |
Next_Level | timer | No | |
PlayerCount | integer | No | 0 |
Sell | unitcode | No | nC57 |
UnitsBottomLeftInner1 | group | No | |
UnitsBottomLeftInner2 | group | No | |
UnitsBottomLeftInner3 | group | No | |
UnitsBottomLeftOuter1 | group | No | |
UnitsBottomLeftOuter2 | group | No | |
UnitsBottomLeftOuter3 | group | No | |
UnitsBottomRightInner1 | group | No | |
UnitsBottomRightInner2 | group | No | |
UnitsBottomRightInner3 | group | No | |
UnitsBottomRightOuter1 | group | No | |
UnitsBottomRightOuter2 | group | No | |
UnitsBottomRightOuter3 | group | No | |
UnitsTopLeftInner1 | group | No | |
UnitsTopLeftInner2 | group | No | |
UnitsTopLeftInner3 | group | No | |
UnitsTopLeftOuter1 | group | No | |
UnitsTopLeftOuter2 | group | No | |
UnitsTopLeftOuter3 | group | No | |
UnitsTopRightInner1 | group | No | |
UnitsTopRightInner2 | group | No | |
UnitsTopRightInner3 | group | No | |
UnitsTopRightOuter1 | group | No | |
UnitsTopRightOuter2 | group | No | |
UnitsTopRightOuter3 | group | No |
function Trig_Show_Stats_All_Func003001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Show_Stats_All_Func004001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Show_Stats_All_Func005001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Show_Stats_All_Func007001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Show_Stats_All_Func008001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Show_Stats_All_Func009001 takes nothing returns boolean
return ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Show_Stats_All_Actions takes nothing returns nothing
local integer Income
set Income = 0
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, " " )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_684" )
if ( Trig_Show_Stats_All_Func003001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( " |c00ff0000" + GetPlayerName(Player(0)) ) + ( "'s Income:|r " + I2S(udg_Income[GetConvertedPlayerId(Player(0))]) ) ) )
set Income = udg_Income[GetConvertedPlayerId(Player(0))]
else
call DoNothing( )
endif
if ( Trig_Show_Stats_All_Func004001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( " |c000000ff" + GetPlayerName(Player(1)) ) + ( "'s Income:|r " + I2S(udg_Income[GetConvertedPlayerId(Player(1))]) ) ) )
set Income = Income + udg_Income[GetConvertedPlayerId(Player(1))]
else
call DoNothing( )
endif
if ( Trig_Show_Stats_All_Func005001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( " |c00008080" + GetPlayerName(Player(2)) ) + ( "'s Income:|r " + I2S(udg_Income[GetConvertedPlayerId(Player(2))]) ) ) )
set Income = Income + udg_Income[GetConvertedPlayerId(Player(2))]
else
call DoNothing( )
endif
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, " Force 1 Total Income: " + I2S(Income) )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, " " )
set Income = 0
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_685" )
if ( Trig_Show_Stats_All_Func007001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( " |c00800080" + GetPlayerName(Player(3)) ) + ( "'s Income:|r " + I2S(udg_Income[GetConvertedPlayerId(Player(3))]) ) ) )
set Income = udg_Income[GetConvertedPlayerId(Player(3))]
else
call DoNothing( )
endif
if ( Trig_Show_Stats_All_Func008001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( " |c00ffff00" + GetPlayerName(Player(4)) ) + ( "'s Income:|r " + I2S(udg_Income[GetConvertedPlayerId(Player(4))]) ) ) )
set Income = Income + udg_Income[GetConvertedPlayerId(Player(4))]
else
call DoNothing( )
endif
if ( Trig_Show_Stats_All_Func009001() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( " |c00ff8040" + GetPlayerName(Player(5)) ) + ( "'s Income:|r " + I2S(udg_Income[GetConvertedPlayerId(Player(5))]) ) ) )
set Income = Income + udg_Income[GetConvertedPlayerId(Player(5))]
else
call DoNothing( )
endif
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, " Force 2 Total Income: " + I2S(Income) )
endfunction
//===========================================================================
function InitTrig_Show_Stats_All takes nothing returns nothing
set gg_trg_Show_Stats_All = CreateTrigger( )
call TriggerAddAction( gg_trg_Show_Stats_All, function Trig_Show_Stats_All_Actions )
endfunction