Name | Type | is_array | initial_value |
Active | boolean | Yes | |
Angle | real | No | |
AngleIndex | real | Yes | |
ArmyAnt | boolean | Yes | |
BarHash | hashtable | No | |
BarOffset | real | No | |
BeginCastTime | real | Yes | |
BeginMana | real | Yes | |
Button | button | Yes | |
CanLay | unit | Yes | |
CastingBar | texttag | Yes | |
CastingBarSize | real | No | |
CastingGroup | group | No | |
CastingPoint | location | No | |
Colour_Array | playercolor | Yes | |
Colours | string | Yes | |
CurDistance | real | Yes | |
DefaultEggSpeed | real | No | |
Dialog | dialog | No | |
DialogMenu_Ally | dialog | Yes | |
DialogMenu_Ally_Button | button | Yes | |
DialogNumber | integer | No | |
DiseaseGroup | group | No | |
Distance | real | No | |
DoodadSize | real | No | |
EggSize | real | Yes | |
EndCastTime | real | Yes | |
Fanged | boolean | Yes | |
FlySFX | string | No | |
GameBounds | rect | No | |
GameBoundsX | real | No | |
GameBoundsY | real | No | |
HostPlayer | player | No | |
ImpactSFX | string | No | |
ImpactSFXIndex | string | Yes | |
Int | boolean | No | |
Jumper | unit | No | |
JumperIndex | unit | Yes | |
JumpGroup | group | No | |
JumpSFX | effect | Yes | |
JumpTimed | boolean | No | |
LoadingBarText | string | No | |
LoopIndex | integer | Yes | |
Lost | boolean | Yes | |
MaxDistance | real | Yes | |
Name | string | Yes | |
NumberofTicks | integer | No | |
NurseGroup | group | No | |
ParabolaHeight | real | No | |
ParabolaHeightIndex | real | Yes | |
Player_Colour | integer | Yes | |
Players | force | No | |
SizeOptionX | real | Yes | |
SizeOptionY | real | Yes | |
SpawningUnit | unitcode | Yes | |
SpeedIndex | real | Yes | |
SpeedOrTime | real | No | |
StartCliffHeight | real | Yes | |
TargetPoint | location | No | |
TargetPointIndex | location | Yes | |
Temp_Real | real | No | |
TempAbil | abilcode | No | |
TempGroup | group | No | |
TempInteger | integer | Yes | |
TempPoint | location | Yes | |
TempReal | real | Yes | |
TempReal2 | real | No | |
TempRect | rect | No | |
TempString | string | No | |
TempUnit | unit | No | |
TempX | real | No | |
TempY | real | No | |
Tip | string | Yes | |
TipGroup | force | No | |
TipNumber | integer | No | |
UDex | integer | No | |
UDexGen | integer | No | |
UDexNext | integer | Yes | |
UDexPrev | integer | Yes | |
UDexRecycle | integer | No | |
UDexUnits | unit | Yes | |
UDexWasted | integer | No | |
UMovNext | integer | Yes | |
UMovPrev | integer | Yes | |
UnderBounds | rect | No | |
UnderBoundsX | real | No | |
UnderBoundsY | real | No | |
UnitIndexerEnabled | boolean | No | |
UnitIndexEvent | real | No | |
UnitMoving | boolean | Yes | |
UnitMovingEvent | real | No | |
UnitMovingX | real | Yes | |
UnitMovingY | real | Yes | |
Viewing_Alliances | boolean | Yes | |
WayLocation | unit | Yes | |
WormGroup | group | No |
//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)
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)
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