# Set Alliance For Player Group
Grammar — Make all players in players|Player Group treat each other as alliance
Flags —Action
Changes alliance settings for all players in the player group. Each player applies the requested alliance setting to every other player in the player group. Pushable means that one player*“s units are allowed to push another player”*s units out of the way if they are trying to path through them.
# Arguments
playergroup
— Playersint
[ preset::AllianceSetting ] — Alliance Setting
Returns — void
void libNtve_gf_SetPlayerGroupAlliance(
playergroup lp_players,
int lp_alliance,
);
# Related
Category: Player / Alliances
- [F] —
void
— Player Changes Alliances — ( TriggerAddEventPlayerAllianceChange ) - [F] —
void
— Set Alliance — ( libNtve_gf_SetAlliance ) - [F] —
void
— Set Alliance (One-Way) — ( libNtve_gf_SetAllianceOneWay ) - [F] —
void
— Set Alliance Aspect — ( PlayerSetAlliance ) - [F] —
void
— Set Alliance For Player Group — ( libNtve_gf_SetPlayerGroupAlliance ) - [F] —
void
— Set Alliance Between Two Player Groups — ( libNtve_gf_SetAllianceBetweenTwoPlayerGroups ) - [F] —
void
— Set Alliance Aspect For Player Group — ( libNtve_gf_SetAllianceAspectForPlayerGroup ) - [F] —
bool
— Alliance Aspect — ( PlayerGetAlliance ) - [F] —
bool
— Get Relationship Between Players — ( libNtve_gf_PlayerIsEnemy )
# Examples
# campaigns/liberty.sc2campaign
// L960
libNtve_gf_SetPlayerGroupAlliance(lv_allZerg, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndControl)
// L833
libNtve_gf_SetPlayerGroupAlliance(gv_dominionPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L775
libNtve_gf_SetPlayerGroupAlliance(gv_zergPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L960
libNtve_gf_SetPlayerGroupAlliance(lv_allZerg, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndControl)
// L833
libNtve_gf_SetPlayerGroupAlliance(gv_dominionPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L775
libNtve_gf_SetPlayerGroupAlliance(gv_zergPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1066
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L842
libNtve_gf_SetPlayerGroupAlliance(gv_moebiusPlayerGroup, libNtve_ge_AllianceSetting_Neutral)
// L853
libNtve_gf_SetPlayerGroupAlliance(gv_swarmPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L795
libNtve_gf_SetPlayerGroupAlliance(gv_dominionPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L784
libNtve_gf_SetPlayerGroupAlliance(gv_dominionPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L795
libNtve_gf_SetPlayerGroupAlliance(gv_dominionPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L784
libNtve_gf_SetPlayerGroupAlliance(gv_dominionPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L842
libNtve_gf_SetPlayerGroupAlliance(gv_moebiusPlayerGroup, libNtve_ge_AllianceSetting_Neutral)
// L853
libNtve_gf_SetPlayerGroupAlliance(gv_swarmPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1066
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1201
libNtve_gf_SetPlayerGroupAlliance(gv_friendlyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1202
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L737
libNtve_gf_SetPlayerGroupAlliance(gv_dominionGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L756
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L868
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1201
libNtve_gf_SetPlayerGroupAlliance(gv_friendlyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1202
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L737
libNtve_gf_SetPlayerGroupAlliance(gv_dominionGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L756
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L868
libNtve_gf_SetPlayerGroupAlliance(gv_enemyPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
# mods/frontiers.sc2mod
// L345
libNtve_gf_SetPlayerGroupAlliance(lib6CB3363F_gv_fT_PlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod
// L13049
libNtve_gf_SetPlayerGroupAlliance(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L13197
libNtve_gf_SetPlayerGroupAlliance(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L3644
libNtve_gf_SetPlayerGroupAlliance(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L3997
libNtve_gf_SetPlayerGroupAlliance(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVision)
# mods/heroesdata.stormmod
// L12928
libNtve_gf_SetPlayerGroupAlliance(libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_teamPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L12929
libNtve_gf_SetPlayerGroupAlliance(libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_teamPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVision)
# mods/starcoop/starcoop.sc2mod
// L12316
libNtve_gf_SetPlayerGroupAlliance(lv_itPlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L12533
libNtve_gf_SetPlayerGroupAlliance(libCOMI_gv_coopPresetTeams[lv_index], libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
# mods/warcoop/warcoopdata.sc2mod
// L242
libNtve_gf_SetPlayerGroupAlliance(lp_legendPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L243
libNtve_gf_SetPlayerGroupAlliance(lp_allyPlayers, libNtve_ge_AllianceSetting_Ally)
// L244
libNtve_gf_SetPlayerGroupAlliance(lp_enemyPlayers, libNtve_ge_AllianceSetting_AllyWithSharedVision)