# AIGetEnemyRaceVal

FlagsNative

# Arguments

  • int — player

Returns — int

native int AIGetEnemyRaceVal(int player);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeBuildAI.galaxy:320

//--------------------------------------------------------------------------------------------------
int AIRandomlyChooseOpeningBuild (int player) {
    int enemyRace = AIGetEnemyRaceVal(player);
    int selfRace = AIGetSelfRaceVal(player);
    int randomRoll;

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:247

                }
                else {
                    race = AIGetEnemyRaceVal(player);
                    if (race == c_raceProtoss || race == c_raceUnknown) {
                        // scout very early for protoss cannon rush

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:570

//==================================================================================================
int PickHDProtossOpening(int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:638

int PickHDProtossMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:706

int PickHDProtossLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:602

//==================================================================================================
int PickHDTerranOpening(int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:670

int PickHDTerranMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:738

int PickHDTerranLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:559

//==================================================================================================
int PickHDZergOpening (int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:627

int PickHDZergMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/liberty.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:695

int PickHDZergLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:570

//==================================================================================================
int PickHDProtossOpening(int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:638

int PickHDProtossMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:706

int PickHDProtossLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:602

//==================================================================================================
int PickHDTerranOpening(int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:670

int PickHDTerranMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:738

int PickHDTerranLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:569

//==================================================================================================
int PickHDZergOpening (int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:637

int PickHDZergMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/swarm.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:705

int PickHDZergLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/void.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:247

                }
                else {
                    race = AIGetEnemyRaceVal(player);
                    if (race == c_raceProtoss || race == c_raceUnknown) {
                        // scout very early for protoss cannon rush

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:603

//==================================================================================================
int PickHDProtossOpening(int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:671

int PickHDProtossMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/ProtossHigh.galaxy:739

int PickHDProtossLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:605

//==================================================================================================
int PickHDTerranOpening(int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:673

int PickHDTerranMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/void.sc2modbase.sc2data/TriggerLibs/Terran/TerranHigh.galaxy:741

int PickHDTerranLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:587

//==================================================================================================
int PickHDZergOpening (int player) {
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:655

int PickHDZergMidGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int openingType;

mods/void.sc2modbase.sc2data/TriggerLibs/Zerg/ZergHigh.galaxy:723

int PickHDZergLateGame(int player) {
    int prevBuildIndex = AIGetUserInt(player, c_currentBuildIndex);
    int race = AIGetEnemyRaceVal(player);
    int currentBuildIndex;
    int lateGameType;