- Joined
- Mar 1, 2009
- Messages
- 360
Every thing up about is an old custom code trigger that allowed player to ally and unally in game and trade resources as well i recently discover that it might be the reason people are getting kicked at the beginning of the game(maybe)
Can any tell me if there is anything here that would disagree with the *new version of wc3 that we have now?
//===========================================================================
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 )
endfunction
secondary triggers goes up to player 8 (even though the map has 12 players we just never played with that many)
Can any tell me if there is anything here that would disagree with the *new version of wc3 that we have now?
JASS:
//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 MeleeStartingAI( )
call SetMapFlag( MAP_ALLIANCE_CHANGES_HIDDEN, true )
call TriggerExecute( gg_trg_Turn_Off_Other_Triggers )
//call SetForceAllianceStateBJ( GetPlayersMatching(Condition(function Trig_Test_Func001001001)), GetPlayersMatching(Condition(function Trig_Test_Func001002001)), bj_ALLIANCE_ALLIED_VISION )
call TriggerExecute( gg_trg_Turn_On_Other_Triggers )
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 )
endfunction
secondary triggers goes up to player 8 (even though the map has 12 players we just never played with that many)
-
Player 1 Declaring
-

Events
-


Player - Player 1 (Red) changes Alliance (non-aggression) settings
-
-

Conditions
-

Actions
-


Trigger - Run Turn Off Other Triggers <gen> (ignoring conditions)
-


Set VariableSet Instigator = Value
-


Set VariableSet InstigatorName = (Name of Player 1 (Red))
-


Player Group - Pick every player in (All players matching ((Instigator is giving (Matching player).Alliance (non-aggression)) Equal to False).) and do (If (((Picked player) is giving Instigator.Alliance (non-aggression)) Equal to True) then do (Game - Display to (Player group((Picked player))) for 10.00 seconds the text: (InstigatorName + has declared war on you!)) else do (Do nothing))
-


Player Group - Pick every player in (All players matching ((Instigator is giving (Matching player).Alliance (non-aggression)) Equal to False).) and do (If (((Picked player) is giving Instigator.Alliance (non-aggression)) Equal to True) then do (Player - Make (Picked player) treat Instigator as an Enemy) else do (Do nothing))
-


Trigger - Run Turn On Other Triggers <gen> (ignoring conditions)
-
-
-
Turn On Other Triggers
-

Events
-

Conditions
-

Actions
-


Trigger - Turn on Player 1 Declaring <gen>
-


Trigger - Turn on Player 2 Declaring <gen>
-


Trigger - Turn on Player 3 Declaring <gen>
-


Trigger - Turn on Player 4 Declaring <gen>
-


Trigger - Turn on Player 5 Declaring <gen>
-


Trigger - Turn on Player 6 Declaring <gen>
-


Trigger - Turn on Player 7 Declaring <gen>
-


Trigger - Turn on Player 8 Declaring <gen>
-
-
-
Turn Off Other Triggers
-

Events
-

Conditions
-

Actions
-


Trigger - Turn off Player 1 Declaring <gen>
-


Trigger - Turn off Player 2 Declaring <gen>
-


Trigger - Turn off Player 3 Declaring <gen>
-


Trigger - Turn off Player 4 Declaring <gen>
-


Trigger - Turn off Player 5 Declaring <gen>
-


Trigger - Turn off Player 6 Declaring <gen>
-


Trigger - Turn off Player 7 Declaring <gen>
-


Trigger - Turn off Player 8 Declaring <gen>
-
-
Last edited:




