Name | Type | is_array | initial_value |
ArenaTmime | timer | No | |
Attributepoints | integer | Yes | |
BootDialog | dialog | No | |
BootDialogButton | button | Yes | |
Caster | unit | No | |
Chance | integer | No | |
Colour_Array | playercolor | Yes | |
Colours | string | Yes | |
Creep_Point | location | Yes | |
Creep_Positions | location | Yes | |
Creep_Types | unitcode | Yes | |
DayNightHero | unit | No | |
Dialogbuttonsole | button | Yes | |
dialogbuttonzamod | button | Yes | |
DialogMenu_Ally | dialog | Yes | |
DialogMenu_Ally_Button | button | Yes | |
Dialogsole | dialog | No | |
dialogzamodove | dialog | No | |
First_Blood | boolean | No | |
Hero | unit | Yes | |
HR1 | timer | No | |
Kill_Points | integer | Yes | |
Kill_Waiting_Time | integer | Yes | |
Killing_Spree | integer | Yes | |
LB | integer | Yes | |
LBB | integer | Yes | |
Level | integer | No | |
Loc | location | Yes | |
LoopCounter | integer | No | |
LoopCreep | integer | No | |
Make_Kill | boolean | No | |
Messages_List | string | Yes | |
OrbofPower | item | No | |
player | player | No | |
Player_Colour | integer | Yes | |
PlayerMultiboard | multiboard | Yes | |
Players_Name | string | Yes | |
Point | location | Yes | |
Real | real | No | |
Region | rect | No | |
SelectedUnit | unit | Yes | |
Sounds_List | sound | Yes | |
Target | unit | No | |
TempGroup | group | No | |
TempLoc00 | location | No | |
TempLoc01 | location | No | |
TempLoc02 | location | No | |
TempReal | real | No | |
Timer | timer | No | |
Total_Messages | integer | No | |
UnitGroup | group | No | |
Viewing_Alliances | boolean | Yes |
//TESH.scrollpos=11
//TESH.alwaysfold=0
function Trig_Alliances_System_Func003Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerAlly(GetTriggerPlayer(), ConvertedPlayer(GetForLoopIndexA())) == false ) ) then
return false
endif
return true
endfunction
function Trig_Alliances_System_Func003Func001C takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_DialogMenu_Ally_Button[(( GetConvertedPlayerId(GetTriggerPlayer()) - 1) * 12 + ( GetForLoopIndexA()) )] ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != ConvertedPlayer(GetForLoopIndexA()) ) ) then
return false
endif
return true
endfunction
function Trig_Alliances_System_Actions takes nothing returns nothing
set udg_Viewing_Alliances[GetConvertedPlayerId(GetTriggerPlayer())] = false
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Alliances_System_Func003Func001C() ) then
if ( Trig_Alliances_System_Func003Func001Func001C() ) then
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( udg_Colours[udg_Player_Colour[GetConvertedPlayerId(GetTriggerPlayer())]] + ( GetPlayerName(GetTriggerPlayer()) + ( "|c00A8E693 has allied " + ( udg_Colours[udg_Player_Colour[GetForLoopIndexA()]] + GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) ) ) ) ) )
call StartSound(bj_questSecretSound) //This plays the ally sound
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), ConvertedPlayer(GetForLoopIndexA()), bj_ALLIANCE_ALLIED_VISION )
else
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( udg_Colours[udg_Player_Colour[GetConvertedPlayerId(GetTriggerPlayer())]] + ( GetPlayerName(GetTriggerPlayer()) + ( "|c00E6B493 has unallied " + ( udg_Colours[udg_Player_Colour[GetForLoopIndexA()]] + GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) ) ) ) ) )
call StartSound(bj_questWarningSound) //This plays the unally sound
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), ConvertedPlayer(GetForLoopIndexA()), bj_ALLIANCE_UNALLIED )
endif
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Alliances_System takes nothing returns nothing
set gg_trg_Alliances_System = CreateTrigger( )
call TriggerAddAction( gg_trg_Alliances_System, function Trig_Alliances_System_Actions )
endfunction