# Set Alliance For Player Group

Grammar — Make all players in players|Player Group treat each other as alliance
FlagsAction

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 — Players
  • int [ preset::AllianceSetting ] — Alliance Setting

Returns — void

void libNtve_gf_SetPlayerGroupAlliance(
	playergroup lp_players,
	int lp_alliance,
);

Category: Player / Alliances

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// 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

Lib6CB3363F.galaxy

// L345
libNtve_gf_SetPlayerGroupAlliance(lib6CB3363F_gv_fT_PlayerGroup, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// 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

GameLib.galaxy

// 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

LibCOMI.galaxy

// 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

WarCoopData.galaxy

// 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)