# Set Alliance (One-Way)

Grammar — Make player sourcePlayer treat player targetPlayer as alliance
FlagsAction

Sets the alliance settings of one player towards another player, but not vice-versa. This action will determine how the Source Player treats the Target Player, such as whether or not the Source Player*“s units fight the Target Player"s units. Pushable means that the Target Player"s units are allowed to push the Source Player”*s units out of the way if they are trying to path through them.

# Arguments

  • int — Source Player
  • int — Target Player
  • int [ preset::AllianceSetting ] — Alliance Setting

Returns — void

void libNtve_gf_SetAllianceOneWay(
	int lp_sourcePlayer,
	int lp_targetPlayer,
	int lp_alliance,
);

Category: Player / Alliances

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L841
libNtve_gf_SetAllianceOneWay(gv_p08_DOMINION, gv_p06_CIVILIANS, libNtve_ge_AllianceSetting_Neutral)
// L846
libNtve_gf_SetAllianceOneWay(gv_p07_HORNERBASE, gv_p08_DOMINION, libNtve_ge_AllianceSetting_Neutral)
// L11871
libNtve_gf_SetAllianceOneWay(gv_p05_ZERG_LAB_SPECIMENS, gv_p02_DOMINION, libNtve_ge_AllianceSetting_Enemy)
// L580
libNtve_gf_SetAllianceOneWay(gv_p2_RAYNOR_LIGHTBLUE, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L585
libNtve_gf_SetAllianceOneWay(gv_p8_ALLIED_PINK, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L589
libNtve_gf_SetAllianceOneWay(gv_p9_ALLIED_GREEN, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L592
libNtve_gf_SetAllianceOneWay(gv_p11_ALLIED_CELLBLOCK_A, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L594
libNtve_gf_SetAllianceOneWay(gv_p12_ALLIED_CELLBLOCK_B, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L609
libNtve_gf_SetAllianceOneWay(gv_p6_DOMINION_ORANGE, gv_p3_DOMINION_RED, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L5795
libNtve_gf_SetAllianceOneWay(gv_p3_ZERG, 0, libNtve_ge_AllianceSetting_Enemy)
// L4058
libNtve_gf_SetAllianceOneWay(gv_p2_PROTOSS_STALKER, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4059
libNtve_gf_SetAllianceOneWay(gv_p3_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4060
libNtve_gf_SetAllianceOneWay(gv_p4_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4061
libNtve_gf_SetAllianceOneWay(gv_p6_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4144
libNtve_gf_SetAllianceOneWay(gv_p2_PROTOSS_STALKER, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4145
libNtve_gf_SetAllianceOneWay(gv_p3_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4146
libNtve_gf_SetAllianceOneWay(gv_p4_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4147
libNtve_gf_SetAllianceOneWay(gv_p6_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L329
libNtve_gf_SetAllianceOneWay(gv_p2_ENEMY_ZERG, gv_pLAYER_USER, 6)
// L330
libNtve_gf_SetAllianceOneWay(gv_p3_ENEMY_PROTOSS, gv_pLAYER_USER, 6)
// L841
libNtve_gf_SetAllianceOneWay(gv_p08_DOMINION, gv_p06_CIVILIANS, libNtve_ge_AllianceSetting_Neutral)
// L846
libNtve_gf_SetAllianceOneWay(gv_p07_HORNERBASE, gv_p08_DOMINION, libNtve_ge_AllianceSetting_Neutral)
// L11871
libNtve_gf_SetAllianceOneWay(gv_p05_ZERG_LAB_SPECIMENS, gv_p02_DOMINION, libNtve_ge_AllianceSetting_Enemy)
// L580
libNtve_gf_SetAllianceOneWay(gv_p2_RAYNOR_LIGHTBLUE, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L585
libNtve_gf_SetAllianceOneWay(gv_p8_ALLIED_PINK, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L589
libNtve_gf_SetAllianceOneWay(gv_p9_ALLIED_GREEN, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L592
libNtve_gf_SetAllianceOneWay(gv_p11_ALLIED_CELLBLOCK_A, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L594
libNtve_gf_SetAllianceOneWay(gv_p12_ALLIED_CELLBLOCK_B, gv_p1_USER, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L609
libNtve_gf_SetAllianceOneWay(gv_p6_DOMINION_ORANGE, gv_p3_DOMINION_RED, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L5795
libNtve_gf_SetAllianceOneWay(gv_p3_ZERG, 0, libNtve_ge_AllianceSetting_Enemy)
// L4058
libNtve_gf_SetAllianceOneWay(gv_p2_PROTOSS_STALKER, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4059
libNtve_gf_SetAllianceOneWay(gv_p3_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4060
libNtve_gf_SetAllianceOneWay(gv_p4_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4061
libNtve_gf_SetAllianceOneWay(gv_p6_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4144
libNtve_gf_SetAllianceOneWay(gv_p2_PROTOSS_STALKER, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4145
libNtve_gf_SetAllianceOneWay(gv_p3_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4146
libNtve_gf_SetAllianceOneWay(gv_p4_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L4147
libNtve_gf_SetAllianceOneWay(gv_p6_PROTOSS_ENEMY, gv_p1_USER, libNtve_ge_AllianceSetting_Enemy)
// L329
libNtve_gf_SetAllianceOneWay(gv_p2_ENEMY_ZERG, gv_pLAYER_USER, 6)
// L330
libNtve_gf_SetAllianceOneWay(gv_p3_ENEMY_PROTOSS, gv_pLAYER_USER, 6)
// L6149
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_WARFIELDOutpost, libNtve_ge_AllianceSetting_Enemy)
// L1078
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION422, gv_pLAYER_02_DOMINION, libNtve_ge_AllianceSetting_Neutral)
// L1079
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION422, gv_pLAYER_02_DOMINION2, libNtve_ge_AllianceSetting_Neutral)
// L1080
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION422, gv_pLAYER_02_DOMINION3, libNtve_ge_AllianceSetting_Neutral)
// L1093
libNtve_gf_SetAllianceOneWay(autoA7178B81_var, gv_pLAYER_02_DOMINION422, libNtve_ge_AllianceSetting_Enemy)
// L5644
libNtve_gf_SetAllianceOneWay(gv_PLAYER_07_DOMINION_GREEN22, gv_PLAYER_03_DOMINION_BLUE, libNtve_ge_AllianceSetting_Enemy)
// L5687
libNtve_gf_SetAllianceOneWay(gv_PLAYER_07_DOMINION_GREEN22, gv_PLAYER_03_DOMINION_BLUE, libNtve_ge_AllianceSetting_Neutral)
// L5696
libNtve_gf_SetAllianceOneWay(gv_PLAYER_07_DOMINION_GREEN22, gv_PLAYER_03_DOMINION_BLUE, libNtve_ge_AllianceSetting_Enemy)
// L2018
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION2, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Neutral)
// L2019
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION34, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Enemy)
// L2020
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION35, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Neutral)
// L2021
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION32, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Enemy)
// L5196
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_BRAKK, libNtve_ge_AllianceSetting_Ally)
// L5388
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_BRAKK, libNtve_ge_AllianceSetting_Enemy)
// L6149
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_WARFIELDOutpost, libNtve_ge_AllianceSetting_Enemy)
// L1078
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION422, gv_pLAYER_02_DOMINION, libNtve_ge_AllianceSetting_Neutral)
// L1079
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION422, gv_pLAYER_02_DOMINION2, libNtve_ge_AllianceSetting_Neutral)
// L1080
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION422, gv_pLAYER_02_DOMINION3, libNtve_ge_AllianceSetting_Neutral)
// L1093
libNtve_gf_SetAllianceOneWay(autoA7178B81_var, gv_pLAYER_02_DOMINION422, libNtve_ge_AllianceSetting_Enemy)
// L5644
libNtve_gf_SetAllianceOneWay(gv_PLAYER_07_DOMINION_GREEN22, gv_PLAYER_03_DOMINION_BLUE, libNtve_ge_AllianceSetting_Enemy)
// L5687
libNtve_gf_SetAllianceOneWay(gv_PLAYER_07_DOMINION_GREEN22, gv_PLAYER_03_DOMINION_BLUE, libNtve_ge_AllianceSetting_Neutral)
// L5696
libNtve_gf_SetAllianceOneWay(gv_PLAYER_07_DOMINION_GREEN22, gv_PLAYER_03_DOMINION_BLUE, libNtve_ge_AllianceSetting_Enemy)
// L2018
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION2, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Neutral)
// L2019
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION34, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Enemy)
// L2020
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION35, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Neutral)
// L2021
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION32, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Enemy)
// L5196
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_BRAKK, libNtve_ge_AllianceSetting_Ally)
// L5388
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_BRAKK, libNtve_ge_AllianceSetting_Enemy)
// L6591
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_ZERG, libNtve_ge_AllianceSetting_Neutral)
// L6691
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_ZERG, libNtve_ge_AllianceSetting_Enemy)
// L6865
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_ZERG, libNtve_ge_AllianceSetting_Enemy)
// L7506
libNtve_gf_SetAllianceOneWay(gv_pLAYER_03_DARK_PROTOSS, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Enemy)
// L9862
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_PROTOSS_NEUTRAL, gv_pLAYER_05_AMONS_FORCES, libNtve_ge_AllianceSetting_Neutral)
// L1640
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_04_RAYNOR_AI, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1642
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_05_RAYNOR_BASE_1, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1644
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_06_RAYNOR_BASE_2, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1036
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION4, gv_pLAYER_02_DOMINION7, libNtve_ge_AllianceSetting_NeutralWithSharedVision)
// L1037
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION3, gv_pLAYER_02_DOMINION7, libNtve_ge_AllianceSetting_NeutralWithSharedVision)
// L6591
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_ZERG, libNtve_ge_AllianceSetting_Neutral)
// L6691
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_ZERG, libNtve_ge_AllianceSetting_Enemy)
// L6865
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_02_ZERG, libNtve_ge_AllianceSetting_Enemy)
// L7506
libNtve_gf_SetAllianceOneWay(gv_pLAYER_03_DARK_PROTOSS, gv_pLAYER_01_USER, libNtve_ge_AllianceSetting_Enemy)
// L9862
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_PROTOSS_NEUTRAL, gv_pLAYER_05_AMONS_FORCES, libNtve_ge_AllianceSetting_Neutral)
// L1640
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_04_RAYNOR_AI, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1642
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_05_RAYNOR_BASE_1, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1644
libNtve_gf_SetAllianceOneWay(gv_pLAYER_01_USER, gv_pLAYER_06_RAYNOR_BASE_2, libNtve_ge_AllianceSetting_AllyWithSharedVisionAndPushable)
// L1036
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION4, gv_pLAYER_02_DOMINION7, libNtve_ge_AllianceSetting_NeutralWithSharedVision)
// L1037
libNtve_gf_SetAllianceOneWay(gv_pLAYER_02_DOMINION3, gv_pLAYER_02_DOMINION7, libNtve_ge_AllianceSetting_NeutralWithSharedVision)

# mods/core.sc2mod

NativeLib.galaxy

// L3671
libNtve_gf_SetAllianceOneWay(lp_sourcePlayer, lp_targetPlayer, lp_alliance)
// L3672
libNtve_gf_SetAllianceOneWay(lp_targetPlayer, lp_sourcePlayer, lp_alliance)
// L3754
libNtve_gf_SetAllianceOneWay(lv_player1, lv_player2, lp_alliance)
// L3784
libNtve_gf_SetAllianceOneWay(lv_player1, lv_player2, lp_alliance)
// L3098
libNtve_gf_SetAllianceOneWay(lp_sourcePlayer, lp_targetPlayer, lp_alliance)
// L3099
libNtve_gf_SetAllianceOneWay(lp_targetPlayer, lp_sourcePlayer, lp_alliance)
// L3168
libNtve_gf_SetAllianceOneWay(lv_player1, lv_player2, lp_alliance)

# mods/heroes.stormmod

MapScript.galaxy

// L2208
libNtve_gf_SetAllianceOneWay(libCore_gv_cOMPUTER_TeamOrder, auto8EF91213_var, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L2232
libNtve_gf_SetAllianceOneWay(libCore_gv_cOMPUTER_TeamChaos, autoDD36CF4E_var, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L2208
libNtve_gf_SetAllianceOneWay(libCore_gv_cOMPUTER_TeamOrder, auto8EF91213_var, libNtve_ge_AllianceSetting_AllyWithSharedVision)
// L2232
libNtve_gf_SetAllianceOneWay(libCore_gv_cOMPUTER_TeamChaos, autoDD36CF4E_var, libNtve_ge_AllianceSetting_AllyWithSharedVision)

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

LibPEB1.galaxy

// L3653
libNtve_gf_SetAllianceOneWay(libCore_gv_cOMPUTER_TeamOrder, auto32C22853_var, libNtve_ge_AllianceSetting_AllyWithSharedVision)