# AINewChooseSubState

FlagsNative

# Arguments

  • int — player
  • int — which
  • int — min
  • int — max
  • int — defaultSubState

Returns — void

native void AINewChooseSubState(
	int player,
	int which,
	int min,
	int max,
	int defaultSubState,
);

Category: Unclassified

# Examples

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

int OpenChooseHDProtossBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_POpenPowerMacro_GateExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDProtossBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_PMidPower_GateColossi);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDProtossBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_PLateHighTech_ZSSColossi);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDTerranBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_TOpenPowerMacro_MarineExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDTerranBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_TMidPower_MMMedivac);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDTerranBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_TLateCore_MMMediSiege);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDZergBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_ZOpenPowerMacro_DefenseExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDZergBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_ZMidPower_RoachInfestor);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDZergBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_ZLateCore_RoachInfest);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDProtossBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_POpenPowerMacro_GateExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDProtossBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_PMidPower_GateColossi);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDProtossBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_PLateHighTech_ZSSColossi);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDTerranBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_TOpenPowerMacro_MarineExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDTerranBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_TMidPower_MMMedivac);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDTerranBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_TLateCore_MMMediSiege);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDZergBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_ZOpenPowerMacro_DefenseExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDZergBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_ZMidPower_RoachInfestor);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDZergBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_ZLateCore_RoachInfest);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDProtossBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_POpenPowerMacro_GateExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDProtossBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_PMidPower_GateColossi);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDProtossBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_PLateHighTech_ZSSColossi);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDTerranBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_TOpenPowerMacro_MarineExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDTerranBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_TMidPower_MMMedivac);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDTerranBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_TLateCore_MMMediSiege);

    if (lateGameType == e_buildType_HighTech) {

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

int OpenChooseHDZergBuildFromType (int player, int openingType) {

    AINewChooseSubState(player, e_openRollState, 1, 1000, e_hdBuildIndex_ZOpenPowerMacro_DefenseExpGnd);

    if (openingType == e_buildType_Rush) {

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

int MidChooseHDZergBuildFromType (int player, int openingType, int prevBuildIdx) {

    AINewChooseSubState(player, e_middleRollState, 1, 1000, e_hdBuildIndex_ZMidPower_RoachInfestor);

    if (openingType == e_buildType_Rush) {

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

int LateChooseHDZergBuildFromType (int player, int lateGameType, int prevBuildIdx) {

    AINewChooseSubState(player, e_lateRollState, 1, 1000, e_hdBuildIndex_ZLateCore_RoachInfest);

    if (lateGameType == e_buildType_HighTech) {