function CreateImageEx takes string imagePath, real size, real x, real y, real z, boolean showImage returns image
local image i = CreateImage(imagePath, size, size, 0, x - (size / 2), y - (size / 2), z, 0, 0, 0, 2)
call SetImageRenderAlways(i, true)
call ShowImage(i, showImage)
return i
endfunction
function InitColor takes nothing returns nothing
local integer nIndex = 1
set udg_ColorRed[nIndex] = 255
set udg_ColorGreen[nIndex] = 0
set udg_ColorBlue[nIndex] = 0
set udg_ColorString[nIndex] = "|cffff0000" //red
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 0
set udg_ColorGreen[nIndex] = 0
set udg_ColorBlue[nIndex] = 255
set udg_ColorString[nIndex] = "|cff0000ff" //blue
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 0
set udg_ColorGreen[nIndex] = 245
set udg_ColorBlue[nIndex] = 255
set udg_ColorString[nIndex] = "|cff00f5ff" //Teal
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 85
set udg_ColorGreen[nIndex] = 26
set udg_ColorBlue[nIndex] = 139
set udg_ColorString[nIndex] = "|cff551A8B" //Purple
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 255
set udg_ColorGreen[nIndex] = 255
set udg_ColorBlue[nIndex] = 0
set udg_ColorString[nIndex] = "|cffffff00" //Yellow
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 248
set udg_ColorGreen[nIndex] = 154
set udg_ColorBlue[nIndex] = 0
set udg_ColorString[nIndex] = "|cffEE9A00" //Orange
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 0
set udg_ColorGreen[nIndex] = 255
set udg_ColorBlue[nIndex] = 0
set udg_ColorString[nIndex] = "|cff00CD00" //Green
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 255
set udg_ColorGreen[nIndex] = 105
set udg_ColorBlue[nIndex] = 180
set udg_ColorString[nIndex] = "|cffFF69B4" //Pink
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 192
set udg_ColorGreen[nIndex] = 192
set udg_ColorBlue[nIndex] = 192
set udg_ColorString[nIndex] = "|cffC0C0C0" //Gray
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 176
set udg_ColorGreen[nIndex] = 226
set udg_ColorBlue[nIndex] = 255
set udg_ColorString[nIndex] = "|cffB0E2FF" //Light Blue
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 0
set udg_ColorGreen[nIndex] = 100
set udg_ColorBlue[nIndex] = 0
set udg_ColorString[nIndex] = "|cff006400" //Dark Green
set nIndex = nIndex + 1
set udg_ColorRed[nIndex] = 139
set udg_ColorGreen[nIndex] = 69
set udg_ColorBlue[nIndex] = 19
set udg_ColorString[nIndex] = "|cff8B4513" //Brown
set nIndex = 1
loop
exitwhen nIndex > 12
set udg_ColoredNames[nIndex] = ( udg_ColorString[nIndex] + GetPlayerName(ConvertedPlayer(nIndex)) + "|r" )
set nIndex = nIndex + 1
endloop
endfunction
function ZeroAlliancePlayer takes player Zplayer returns nothing
call SetPlayerTechMaxAllowedSwap( 'R008', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R009', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R00A', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R00B', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R00C', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R00D', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R00E', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R00F', 0, Zplayer )
endfunction
function ZeroHordePlayer takes player Zplayer returns nothing
call SetPlayerTechMaxAllowedSwap( 'R000', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R001', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R002', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R003', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R004', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R005', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R006', 0, Zplayer )
call SetPlayerTechMaxAllowedSwap( 'R007', 0, Zplayer )
endfunction
Name | Type | is_array | initial_value |
Alliance | force | No | |
BARhuman | rect | Yes | |
BARunit | unit | Yes | |
Casualties | integer | Yes | |
ColorBlue | integer | Yes | |
ColoredNames | string | Yes | |
ColorGreen | integer | Yes | |
ColorRed | integer | Yes | |
ColorString | string | Yes | |
CratesClear | boolean | Yes | |
CreditRecognition | boolean | Yes | |
DEBUG | boolean | No | |
DOCKlandings | rect | Yes | |
DOCKtransport | unit | Yes | |
FinalStand | boolean | No | |
Gold | integer | Yes | |
Halfsies | boolean | Yes | |
Heroes | unit | Yes | |
Horde | force | No | |
HUMANbarSpawning | boolean | Yes | |
HumanGroup1 | group | No | |
HumanGroup10 | group | No | |
HumanGroup2 | group | No | |
HumanGroup3 | group | No | |
HumanGroup4 | group | No | |
HumanGroup5 | group | No | |
HumanGroup6 | group | No | |
HumanGroup7 | group | No | |
HumanGroup8 | group | No | |
HumanGroup9 | group | No | |
HUMANOrders | location | Yes | |
HUMANspawnTriggers | trigger | Yes | |
HUMANwaveOwner | player | No | |
lol | texttag | No | |
Lumber | integer | Yes | |
MagicBeach | boolean | No | |
Mills | unit | Yes | |
MinesClear | boolean | No | |
ORCbarGuardLocs | rect | Yes | |
ORCbarLocs | rect | Yes | |
ORCbarSpawning | boolean | Yes | |
ORCbarSpotGuard | unit | Yes | |
ORCbarUnits | unit | Yes | |
ORCbeachLocs | rect | Yes | |
ORCdragonGroup1 | group | No | |
ORCdragonGroup2 | group | No | |
ORCgroup1 | group | No | |
ORCgroup2 | group | No | |
ORCgroup3 | group | No | |
ORCgroup4 | group | No | |
ORCgroup5 | group | No | |
ORCOrders | location | Yes | |
ORCOrders2 | location | Yes | |
ORCspawnTriggers | trigger | Yes | |
OrcWaveOwner | player | No | Player10 |
OverBeach | boolean | No | false |
Payroll | timer | No | |
PeonGroup | unit | Yes | |
SkipCinema | boolean | No | |
SPAWNair | boolean | No | |
SPAWNcatapult | boolean | No | |
SPAWNogre | boolean | No | |
SPAWNraider | boolean | No | |
SupaCred | image | No | |
T1TowerLocs | rect | Yes | |
T1TowerPoints | location | Yes | |
T2ORCgroup1 | group | No | |
T2ORCgroup2 | group | No | |
T2ORCgroup3 | group | No | |
T2ORCgroup4 | group | No | |
T2TowerLocs | rect | Yes | |
T2TowerPoints | location | Yes | |
TEMPboolArray | boolean | Yes | |
TEMPboolArray_2 | boolean | Yes | |
TEMPint | integer | No | |
TEMPitem | item | No | |
TEMPpoint | location | No | |
TEMPsfx | effect | No | |
TEMPunit | unit | No | |
Tier2 | boolean | No | false |
TiersCleared | boolean | Yes | |
TIMER | timer | No | |
TIMERWINDOW | timerdialog | No | |
TowerBrigade | unit | Yes | |
Weather | weathereffect | No | |
wj_Int | integer | No | |
wj_loopsInt | integer | No | |
zFX | effect | Yes | |
zFXcounter | integer | No | |
zQ_M1 | quest | No | |
zQ_M1_Req | questitem | Yes | |
zQ_M2 | quest | No | |
zQ_M2_Req | questitem | Yes | |
zQ_S1 | quest | No | |
zQ_S1_Req | questitem | Yes | |
zQ_S2 | quest | No | |
zQ_S2_Req | questitem | Yes | |
zz_String_AlreadyPurchased | string | No | has already purchased the next wave. |
zz_String_CinemaSkip | string | No | has skipped the opening. Please wait a little longer for the game to begin. |
zz_String_CredRecog | string | No | Thank you for reading the credits. |
zz_String_Death_pt1 | string | No | has killed |
zz_String_LEFT | string | No | has left the game. |
zz_String_MissingMats | string | No | Can not create item, missing required materials. |
zz_String_NoInv | string | No | Can not hold more of that item. |
zz_String_period | string | No | . |
zz_String_Purchase | string | No | has purchased the next wave of units. |
zz_String_ss | string | No | 's |
function Trig_ColoredNames_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_ColoredNames[GetForLoopIndexA()] = ( udg_ColorString[GetForLoopIndexA()] + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "|r" ) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_ColoredNames takes nothing returns nothing
set gg_trg_ColoredNames = CreateTrigger( )
call TriggerAddAction( gg_trg_ColoredNames, function Trig_ColoredNames_Actions )
endfunction