function TrackSpecialEffect takes nothing returns nothing
if (udg_SpecialEffectGCCount < 200) then
set udg_SpecialEffectGC[udg_SpecialEffectGCCount] = GetLastCreatedEffectBJ()
set udg_SpecialEffectGCCount = ( udg_SpecialEffectGCCount + 1 )
endif
endfunction
Name | Type | is_array | initial_value |
ActivePlayers | force | No | |
AlwaysOrderAttack | group | No | |
AquaductSpawnQueue | group | No | |
AquaductSpawnUnit | unit | No | |
ArchDruidHelpers | group | No | |
Assassins | group | No | |
AssultGroup | group | No | |
AstralMagePortalSummon | effect | No | |
AtrinaHealthGain | integer | No | |
AtrinaInvuln | effect | No | |
AttackEastPoint | location | No | |
AttackWestPoint | location | No | |
BansheeSpawn | location | No | |
Beetle | unit | No | UnitNull |
BeetleCorpse | unit | No | UnitNull |
BeetleVictimTypes | unitcode | Yes | |
BloodRunnerHelpers | group | No | |
BootCount | integer | Yes | |
BoteVote | force | Yes | |
BuildingIndex | unitcode | Yes | |
BuildingIndexMax | integer | No | |
BuildingProduce | unitcode | Yes | |
BuildingsComplete | group | No | |
BuildingsReady | group | No | |
CameraRestore | camerasetup | Yes | |
Casters | group | No | |
CragLordHelpers | group | No | |
CreditsDwarf | unit | No | |
CreditsGroup | group | No | |
CreditsHumanArmy | group | No | |
CreditsMurlocs | group | No | |
CreditsRandomCreepTypes | unitcode | Yes | |
CreditsRandomHumanTypes | unitcode | Yes | |
CreditsRandomMurloc | unitcode | Yes | |
CreditsTauren | unit | No | |
CreditsUndeadArmy | group | No | |
CreditsZergSpawn | group | No | |
CreepsMoving | group | No | |
CreepSpawnPoint | location | No | |
CreepSpawnQueue | group | No | |
CreepSpawnUnit | unit | No | |
CreepsReady | group | No | |
DashTarget | location | No | |
DashUnitTarget | unit | No | |
DialogDifficulty | dialog | No | |
DialogDifficultyButton | button | Yes | |
DialogTutorial | dialog | No | |
DialogTutorialButton | button | Yes | |
Difficulty | integer | No | 1 |
DifficultyEnemyExp | real | Yes | |
DifficultyEvacuees | integer | Yes | |
DifficultyHandicap | real | Yes | |
DifficultyString | string | Yes | |
DifficultyTime | integer | Yes | |
DistributeExp | integer | No | |
DreadLichLevel | integer | No | |
EastRiverSpawnQueue | group | No | |
EastRiverSpawnUnit | unit | No | |
EndingCenterCreepArmy | group | No | |
EndingCenterHumanArmy | group | No | |
EndingEastHumanArmy | group | No | |
EndingEastUndeadArmy | group | No | |
EndingManadar | unit | No | |
EndingPreserve | group | No | |
EndingPriestess | unit | No | |
EndingSapper | unit | No | |
EndingWestHumanArmy | group | No | |
EndingWestOrcArmy | group | No | |
EntangleCaster | unit | No | |
EntangleCasterPool | group | No | |
EntangleCasterType | unitcode | Yes | |
EntangleCastLevel | integer | No | |
EntangleCenter | unit | No | |
EntangleChance | integer | Yes | |
EntangleCurrentLevel | integer | No | |
EntangleRange | real | Yes | |
EntangleTarget | unit | No | |
EntangleTargets | group | No | |
Evacuees | group | No | |
EvacueesLeft | integer | No | 200 |
EvacueesLeftBoard | leaderboard | No | |
EvacueeType | unitcode | Yes | |
EventRaiseDeadSpawn | unit | No | |
FirestormActive | group | Yes | |
FirestormAngle | real | No | |
FirestormCastLevel | integer | No | |
FirestormCurrentLevel | integer | No | |
FirestormDist | real | No | 100.00 |
FirestormEndAngle | real | No | |
FirestormExpandRate | real | Yes | |
FirestormMaxDist | real | Yes | |
FirestormPeriod | real | Yes | |
FirestormPool | group | No | |
FirestormSlot | integer | No | |
FirestormStartAngle | real | No | |
FirestormTarget | location | No | |
FirestormUnit | unit | No | |
FirestormUnitTarget | unit | No | |
FirestormUnitType | unitcode | Yes | |
FirestormWidth | real | Yes | 0.00 |
FlameChannelerPortalSummon | effect | No | |
FogClear | real | Yes | |
FogInterpolation | real | No | |
FogNew | real | Yes | |
FogNormal | real | Yes | |
FogOld | real | Yes | |
FogToxic | real | Yes | |
FrostWizardPortalSummon | effect | No | |
GivePlayerResources | player | No | |
GoalPoint | location | No | |
GoldDropoffPoint | location | No | |
GoldDropText | texttag | Yes | |
GoldPerPlayer | integer | Yes | |
Gruntapult | unit | No | |
GruntapultAmmo | group | No | |
GruntSacrificeCorpse | unit | No | |
GruntSummonPortalEffect | effect | No | |
HarrowingSlayerHelpers | group | No | |
HealUnit | unit | No | |
HeroAoM | unit | No | |
HeroDreadLich | unit | No | |
HeroIcon | string | Yes | |
HeroJuggernaut | unit | No | |
HeroPick | timer | No | |
HeroRespawnPoint | location | No | |
HeroRespawnTimer | timer | Yes | |
HeroRespawnWindow | timerdialog | Yes | |
HewnEarthArea | real | Yes | |
HighClericHelpers | group | No | |
HighNecromancer | unit | No | |
InfernalBindingCastLevel | integer | No | |
InfernalBindingCurrentLevel | integer | No | |
InfernalBindingPhantasm | unit | No | |
InfernalBindingPhantasmCount | integer | Yes | |
InfernalBindingPool | group | No | |
InfernalBindingTarget | unit | No | |
InfernalSpawn | unit | No | |
LightningBolt | effect | No | |
LightningChanceFar | integer | No | |
LightningChanceNear | integer | No | |
LightningStrike | location | No | |
LordCommanderHelpers | group | No | |
ManadarHealDelay | real | No | 5.00 |
MarketplaceItems | itemcode | Yes | |
MarketplaceItemsCount | integer | No | |
MusicSet | integer | No | |
NagaPortalSummon | effect | No | |
Necromancers | group | No | |
NewArcherSkele | unit | No | |
NewBanshee | unit | No | |
NewMinion | unit | No | |
NewOrcSkele | unit | No | |
NewPoisonElem | unit | No | |
Nowhere | location | No | |
NuclearBlastCenter | location | No | |
NuclearBlastFlames | effect | Yes | |
NuclearBlastRing | integer | No | |
NuclearBlastRingCount | integer | No | |
NuclearBlastRingRadius | real | No | |
OrcCurrentWave | integer | No | |
OrcGruntapultAmmoPoint | location | No | |
OrcGruntapultAmmoSpawnPoint | location | No | |
OrcHeroRespawn | location | No | |
OrcHeros | group | No | |
OrcHerosDead | group | No | |
OrcHerosNotReady | group | No | |
OrcMinLevel | integer | Yes | |
OrcPortalSpawnPoint | location | No | |
OrcPortalSpawnQueue | group | No | |
OrcPortalSpawnUnit | unit | No | |
OrcRally | group | No | |
OrcReady | group | No | |
OrcSpawnPoint | location | No | |
OrcUnloadCount | integer | No | |
OrcWave | trigger | Yes | |
OrcWaveCount | integer | No | |
OrcZepplinDropoff | location | No | |
OrcZepplinExit | location | No | |
OrcZepplinSpawnPoint | location | No | |
OrcZepplinSpawnQueue | group | No | |
OrcZepplinSpawnUnit | unit | No | |
PandarenWarlordHelpers | group | No | |
PickHeroWnd | timerdialog | No | |
PlayerColor | string | Yes | |
PlayerColorBlue | real | Yes | |
PlayerColorGreen | real | Yes | |
PlayerColorRed | real | Yes | |
PlayerTextColor | string | Yes | |
Point | location | Yes | |
PoisonElems | group | No | |
Portal | unit | No | |
PortalOpenTimerWnd | timerdialog | No | |
ProtectedBuildings | group | No | |
QuestCaptainThamesEnabled | boolean | Yes | |
QuestTreasureHuntingTriggered | boolean | Yes | |
QuestWestCaveCleared | boolean | No | |
Random | integer | No | |
RangerHelpers | group | No | |
ReviveHeroTarget | unit | No | |
SlayerHelpers | group | No | |
SpecialEffectGC | effect | Yes | |
SpecialEffectGCCount | integer | No | |
SpecialEffectTimeout | effect | Yes | |
SpecialEffectTimeoutCount | integer | No | |
StartOnce | boolean | No | |
StormCallerPortalSummon | effect | No | |
StuckGroup | group | No | |
SupplyCenterSpawnPoint | location | No | |
SupplyEastSpawnPoint | location | No | |
SupplyWestSpawnPoint | location | No | |
SupplyWorkers | group | No | |
TaurenChampionHelpers | group | No | |
TeamStatus | multiboard | No | |
TeamStatusRow | integer | No | |
TempGroup | group | No | |
TempUnit | unit | No | |
TornadoChance | integer | No | |
TreeCorrupter | unit | No | |
TutorialRunning | boolean | No | |
TutorialSkip | integer | Yes | |
UndeadAcolypeCorpsePilePoint | location | No | |
UndeadAcolyteSpawnPoint | location | No | |
UndeadAirshipExitPoint | location | No | |
UndeadAirshipSpawnPoint | location | No | |
UndeadBeetleSpawn | location | Yes | |
UndeadElfSacrificePoint | location | No | |
UndeadElfSpawnPoint | location | No | |
UndeadFleshGolemSpawn | location | No | |
UndeadGruntSacrificePoint | location | No | |
UndeadHeroRespawnPoint | location | No | |
UndeadKills | integer | Yes | |
UndeadNavySpawnQueue | group | No | |
UndeadTrainBuilding | unit | Yes | |
UndeadTrainType | unitcode | Yes | |
UnitLimit | integer | Yes | |
Victory | boolean | No | |
VictoryTimer | timer | No | |
Visibility | fogmodifier | Yes | |
VoodooMasterHelpers | group | No | |
WaterInterpolation | real | No | |
WaterNew | real | Yes | |
WaterOld | real | Yes | |
WateryShellHealth | real | Yes | |
WateryShellInstEffect | effect | Yes | |
WateryShellInstHealth | real | Yes | |
WateryShellKeep | real | Yes | |
WestCaveSpawnQueue | group | No | |
WestCaveSpawnUnit | unit | No | |
WestRiverSpawnQueue | group | No | |
WestRiverSpawnUnit | unit | No | |
WoodPerPlayer | integer | Yes |
function Trig_Music_List_Func002C takes nothing returns boolean
if ( not ( udg_MusicSet == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Music_List_Func003C takes nothing returns boolean
if ( not ( udg_MusicSet == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Music_List_Actions takes nothing returns nothing
set udg_MusicSet = GetRandomInt(1, 2)
if ( Trig_Music_List_Func002C() ) then
call SetMapMusicRandomBJ( "Sound\\Music\\mp3Music\\BloodElfTheme.mp3;Sound\\Music\\mp3Music\\Human1.mp3;Sound\\Music\\mp3Music\\Human2.mp3;Sound\\Music\\mp3Music\\Human3.mp3;Sound\\Music\\mp3Music\\NightElfX1.mp3" )
else
endif
if ( Trig_Music_List_Func003C() ) then
call SetMapMusicRandomBJ( "Sound\\Music\\mp3Music\\IllidansTheme.mp3;Sound\\Music\\mp3Music\\NightElf1.mp3;Sound\\Music\\mp3Music\\NightElf2.mp3;Sound\\Music\\mp3Music\\HumanX1.mp3;Sound\\Music\\mp3Music\\NightElf3.mp3" )
else
endif
endfunction
//===========================================================================
function InitTrig_Music_List takes nothing returns nothing
set gg_trg_Music_List = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Music_List, 190.00 )
call TriggerAddAction( gg_trg_Music_List, function Trig_Music_List_Actions )
endfunction
function Trig_Tutorial_Protection_Desync_Func002Func001C takes nothing returns boolean
if ( not ( GetLocalPlayer() == GetTriggerPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Tutorial_Protection_Desync_Func002C takes nothing returns boolean
if ( not ( udg_TutorialSkip[GetConvertedPlayerId(GetTriggerPlayer())] >= 3 ) ) then
return false
endif
return true
endfunction
function Trig_Tutorial_Protection_Desync_Actions takes nothing returns nothing
set udg_TutorialSkip[GetConvertedPlayerId(GetTriggerPlayer())] = udg_TutorialSkip[GetConvertedPlayerId(GetTriggerPlayer())] + 1
if ( Trig_Tutorial_Protection_Desync_Func002C() ) then
if ( Trig_Tutorial_Protection_Desync_Func002Func001C() ) then
call KillUnit( gg_unit_E003_0064 )
else
call DisplayTextToForce( GetPlayersAll(), ( udg_PlayerTextColor[GetConvertedPlayerId(GetTriggerPlayer())] + GetPlayerName(GetTriggerPlayer()) + "|r has been booted from the game" ) )
endif
else
call DisplayTextToForce( GetPlayersAll(), ( "|cffff0000Warning|r - Tutorial text skipped by " + udg_PlayerTextColor[GetConvertedPlayerId(GetTriggerPlayer())] + ( GetPlayerName(GetTriggerPlayer()) + ( "|r, doing this " + ( I2S(( 3 - udg_TutorialSkip[GetConvertedPlayerId(GetTriggerPlayer())] )) + " more times will cause them to be kicked from the game." ) ) ) ) )
call PlaySoundBJ( gg_snd_Error )
endif
endfunction
//===========================================================================
function InitTrig_Tutorial_Protection_Desync takes nothing returns nothing
set gg_trg_Tutorial_Protection_Desync = CreateTrigger( )
call DisableTrigger( gg_trg_Tutorial_Protection_Desync )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(0) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(1) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(2) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(3) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(4) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(6) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(7) )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_Tutorial_Protection_Desync, Player(9) )
call TriggerAddAction( gg_trg_Tutorial_Protection_Desync, function Trig_Tutorial_Protection_Desync_Actions )
endfunction
function Trig_Boot_Desync_Func001Func001Func001C takes nothing returns boolean
if ( not ( ConvertedPlayer(GetForLoopIndexA()) == GetLocalPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Boot_Desync_Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerInForce(ConvertedPlayer(GetForLoopIndexA()), udg_ActivePlayers) == true ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-boot " + udg_PlayerColor[GetForLoopIndexA()] ) ) ) then
return false
endif
return true
endfunction
function Trig_Boot_Desync_Actions takes nothing returns nothing
set bj_forLoopAIndex = 2
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Boot_Desync_Func001Func001C() ) then
if ( Trig_Boot_Desync_Func001Func001Func001C() ) then
call KillUnit( gg_unit_E003_0064 )
else
endif
call DisplayTextToForce( GetPlayersAll(), ( udg_PlayerTextColor[GetForLoopIndexA()] + GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "|r has been booted from the game" ) )
return
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Boot_Desync takes nothing returns nothing
set gg_trg_Boot_Desync = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Desync, Player(0), "-boot", false )
call TriggerAddAction( gg_trg_Boot_Desync, function Trig_Boot_Desync_Actions )
endfunction
function Trig_Boot_Vote_Desync_Func001Func001Func003Func002C takes nothing returns boolean
if ( not ( ConvertedPlayer(GetForLoopIndexA()) == GetLocalPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Boot_Vote_Desync_Func001Func001Func003C takes nothing returns boolean
if ( not ( udg_BootCount[GetForLoopIndexA()] >= ( CountPlayersInForceBJ(udg_ActivePlayers) / 2 ) ) ) then
return false
endif
if ( not ( udg_BootCount[GetForLoopIndexA()] > 1 ) ) then
return false
endif
return true
endfunction
function Trig_Boot_Vote_Desync_Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerInForce(ConvertedPlayer(GetForLoopIndexA()), udg_ActivePlayers) == true ) ) then
return false
endif
if ( not ( GetEventPlayerChatString() == ( "-boot " + udg_PlayerColor[GetForLoopIndexA()] ) ) ) then
return false
endif
if ( not ( IsPlayerInForce(ConvertedPlayer(GetForLoopIndexA()), udg_BoteVote[GetConvertedPlayerId(GetTriggerPlayer())]) == false ) ) then
return false
endif
return true
endfunction
function Trig_Boot_Vote_Desync_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Boot_Vote_Desync_Func001Func001C() ) then
set udg_BootCount[GetForLoopIndexA()] = ( udg_BootCount[GetForLoopIndexA()] + 1 )
call ForceAddPlayerSimple( ConvertedPlayer(GetForLoopIndexA()), udg_BoteVote[GetConvertedPlayerId(GetTriggerPlayer())] )
if ( Trig_Boot_Vote_Desync_Func001Func001Func003C() ) then
if ( Trig_Boot_Vote_Desync_Func001Func001Func003Func002C() ) then
call KillUnit( gg_unit_E003_0064 )
else
endif
call DisplayTextToForce( GetPlayersAll(), ( udg_PlayerTextColor[GetForLoopIndexA()] + GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + "|r has been booted from the game" ) )
else
call DisplayTextToForce( GetPlayersAll(), ( udg_PlayerTextColor[GetConvertedPlayerId(GetTriggerPlayer())] + ( GetPlayerName(GetTriggerPlayer()) + ( "|r has voted to boot " + ( ( udg_PlayerTextColor[GetForLoopIndexA()] + GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) ) + "|r from the game.(Note that all votes are cleared when somebody leaves or is booted from the game)" ) ) ) ) )
endif
return
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Boot_Vote_Desync takes nothing returns nothing
set gg_trg_Boot_Vote_Desync = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Vote_Desync, Player(1), "-boot", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Vote_Desync, Player(2), "-boot", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Vote_Desync, Player(3), "-boot", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Vote_Desync, Player(4), "-boot", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Vote_Desync, Player(6), "-boot", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Vote_Desync, Player(7), "-boot", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Boot_Vote_Desync, Player(9), "-boot", false )
call TriggerAddAction( gg_trg_Boot_Vote_Desync, function Trig_Boot_Vote_Desync_Actions )
endfunction