# Set Alliance Aspect For Player Group
Grammar — Make all players in players|Player Group treat each other as inAllianceId ally
Flags —Action
Changes alliance aspect settings for all players in the player group. Each player applies the requested alliance aspect setting to every other player in the player group.
# Arguments
playergroup
— Playersint
<preset::AllianceAspect> — Alliance Aspectbool
<preset::OnOffOption> — On/Off
Returns — void
void libNtve_gf_SetAllianceAspectForPlayerGroup(
playergroup lp_players,
int lp_inAllianceId,
bool lp_ally,
);
# Related
Category: Player / Alliances
- Player Changes Alliances —
void
— TriggerAddEventPlayerAllianceChange - Set Alliance —
void
— libNtve_gf_SetAlliance - Set Alliance (One-Way) —
void
— libNtve_gf_SetAllianceOneWay - Set Alliance Aspect —
void
— PlayerSetAlliance - Set Alliance For Player Group —
void
— libNtve_gf_SetPlayerGroupAlliance - Set Alliance Between Two Player Groups —
void
— libNtve_gf_SetAllianceBetweenTwoPlayerGroups - Set Alliance Aspect For Player Group —
void
— libNtve_gf_SetAllianceAspectForPlayerGroup - Alliance Aspect —
bool
— PlayerGetAlliance - Get Relationship Between Players —
bool
— libNtve_gf_PlayerIsEnemy
# Examples
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:12330
}
libNtve_gf_SetAllianceAspectForPlayerGroup(lv_itPlayerGroup, c_allianceIdDefeat, true);
}
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:30057
if(PlayerGroupCount(auto62F6BACF_itTestPool)){
lv_itPlayerGroup = auto62F6BACF_itTestPool;
libNtve_gf_SetAllianceAspectForPlayerGroup(lv_itPlayerGroup, c_allianceIdPower, true);
}
}