Name | Type | is_array | initial_value |
ABXPCustomValue | integer | No | 1 |
Accept | button | No | |
Accepted | boolean | No | |
Alliance_Number | integer | Yes | |
Apple_Color | playercolor | No | |
BattleXPSymbols | effect | Yes | |
Decline | button | No | |
Dialog | dialog | No | |
Done | boolean | No | |
FortifyEffects | effect | Yes | |
Instagator | player | No | |
MC_LoserRace | string | No | |
MCCharacters | string | Yes | |
MCCode | string | No | |
MCLoser | player | No | |
MCLoserName | string | No | |
MCNumbers | integer | Yes | |
MCOther | integer | No | |
MCPlayer1 | player | No | |
MCPlayer2 | player | No | |
MCRace | string | No | |
MCStep | integer | No | |
MCVerif | integer | Yes | |
MCWinner | player | No | |
OriginalIP | player | No | |
PAPlayer | player | No | |
PermAccepted | boolean | No | |
PermDecided | boolean | No | |
PermSystemBusy | boolean | No | |
PermUsed | force | No | |
PlayerButtons | button | Yes | |
PlayerButtonsAlly | button | Yes | |
PlayerButtonsUnAlly | button | Yes | |
PlayersAllyDialog | dialog | No | |
PlayersDialog | dialog | No | |
PlayersUnAllyDialog | dialog | No | |
SiegeMachinery_Count | integer | No | |
String | string | Yes | |
TargetU | unit | No | |
TempPlayer | player | No | |
TempPlayerGroup | force | No | |
TempPlayerGroup2 | force | No | |
TempPoint | location | No | |
TempReal | real | No | |
TempReal2 | real | No | |
TempUnit | unit | No | |
TempUnitGroup | group | No | |
TempUnitGroup2 | group | No |
function Trig_Test_Func001001001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Test_Func001002001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Map_Initialization_Actions takes nothing returns nothing
call SetMapFlag( MAP_FOG_MAP_EXPLORED, true )
call SetMapFlag( MAP_RESOURCE_TRADING_ALLIES_ONLY, false )
call SetMapFlag( MAP_LOCK_ALLIANCE_CHANGES, false )
call SetMapFlag( MAP_LOCK_RESOURCE_TRADING, false )
call SetGameSpeed( MAP_SPEED_FASTEST )
call SetMapFlag( MAP_OBSERVERS_ON_DEATH, true )
call SetMapFlag( MAP_SHARED_ADVANCED_CONTROL, true )
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call MeleeStartingResources( )
call MeleeClearExcessUnits( )
call MeleeStartingUnits( )
call MeleeStartingAI( )
call SetMapFlag( MAP_ALLIANCE_CHANGES_HIDDEN, true )
call SetForceAllianceStateBJ( GetPlayersMatching(Condition(function Trig_Test_Func001001001)), GetPlayersMatching(Condition(function Trig_Test_Func001002001)), bj_ALLIANCE_ALLIED_VISION )
call TriggerExecute( gg_trg_Turn_On )
call SetMapFlag( MAP_ALLIANCE_CHANGES_HIDDEN, false )
endfunction
//===========================================================================
function InitTrig_Map_Initialization takes nothing returns nothing
set gg_trg_Map_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Map_Initialization, function Trig_Map_Initialization_Actions )
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Haunt_Conditions takes nothing returns boolean
return ( GetSpellAbilityId() == 'A00C' )
endfunction
function Trig_Haunt_Actions takes nothing returns nothing
local unit u = GetSpellTargetUnit()
local player p = GetOwningPlayer(u)
call SetUnitOwner( u, Player(PLAYER_NEUTRAL_AGGRESSIVE), false )
call PolledWait( 15.00 )
if ( IsUnitAliveBJ(u) ) then
call SetUnitOwner( u, p, false )
endif
set u = null
set p = null
endfunction
//====================================================================== =====
function InitTrig_Haunt takes nothing returns nothing
set gg_trg_Haunt = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Haunt, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Haunt, Condition( function Trig_Haunt_Conditions ) )
call TriggerAddAction( gg_trg_Haunt, function Trig_Haunt_Actions )
endfunction