# AISetSubStateChance

FlagsNative

# Arguments

  • int — subState
  • int — chance

Returns — void

native void AISetSubStateChance(int subState, int chance);

Category: Unclassified

# Examples

# mods/liberty.sc2mod

ProtossHigh.galaxy

// L179
AISetSubStateChance( e_hdBuildIndex_POpenRush_ZealotStalker,        100 )
// L198
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseAir,        70 )
// L199
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseDrop,       30 )
// L201
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseAir,        10 )
// L202
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseDrop,        5 )
// L203
AISetSubStateChance( e_hdBuildIndex_POpenAir_QuickExpandAir,    85 )
// L224
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_FourGateRobo,     40 )
// L225
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_DefensiveExpand,  60 )
// L227
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_FourGateRobo,     35 )
// L228
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_DefensiveExpand,  65 )

# mods/liberty.sc2mod

TerranHigh.galaxy

// L179
AISetSubStateChance( e_hdBuildIndex_TOpenRush_Marine,           80 )
// L180
AISetSubStateChance( e_hdBuildIndex_TOpenRush_MarineReaper,     20 )
// L199
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseAir,        50 )
// L200
AISetSubStateChance( e_hdBuildIndex_TOpenAir_CloakBanshee,      30 )
// L201
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseDrop,       20 )
// L203
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseAir,        10 )
// L204
AISetSubStateChance( e_hdBuildIndex_TOpenAir_CloakBanshee,      10 )
// L205
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseDrop,        5 )
// L206
AISetSubStateChance( e_hdBuildIndex_TOpenAir_QuickExpandAir,    75 )
// L227
AISetSubStateChance( e_hdBuildIndex_TMidRushTiming_MMMedivac,        40 )

# mods/liberty.sc2mod

ZergHigh.galaxy

// L174
AISetSubStateChance( e_hdBuildIndex_ZOpenRush_6Pool,   50 )
// L175
AISetSubStateChance( e_hdBuildIndex_ZOpenRush_10Pool,  50 )
// L183
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_QuickExpGnd,    40 )
// L184
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_DefenseExpGnd,  60 )
// L188
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseMuta,       70 )
// L189
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseDrop,       30 )
// L191
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseMuta,       10 )
// L192
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseDrop,        5 )
// L193
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_QuickExpandAir,    85 )
// L197
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_QuickExpGnd,    70 )

# mods/swarm.sc2mod

ProtossHigh.galaxy

// L179
AISetSubStateChance( e_hdBuildIndex_POpenRush_ZealotStalker,        100 )
// L198
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseAir,        70 )
// L199
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseDrop,       30 )
// L201
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseAir,        10 )
// L202
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseDrop,        5 )
// L203
AISetSubStateChance( e_hdBuildIndex_POpenAir_QuickExpandAir,    85 )
// L224
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_FourGateRobo,     40 )
// L225
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_DefensiveExpand,  60 )
// L227
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_FourGateRobo,     35 )
// L228
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_DefensiveExpand,  65 )

# mods/swarm.sc2mod

TerranHigh.galaxy

// L179
AISetSubStateChance( e_hdBuildIndex_TOpenRush_Marine,           80 )
// L180
AISetSubStateChance( e_hdBuildIndex_TOpenRush_MarineReaper,     20 )
// L199
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseAir,        50 )
// L200
AISetSubStateChance( e_hdBuildIndex_TOpenAir_CloakBanshee,      30 )
// L201
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseDrop,       20 )
// L203
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseAir,        10 )
// L204
AISetSubStateChance( e_hdBuildIndex_TOpenAir_CloakBanshee,      10 )
// L205
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseDrop,        5 )
// L206
AISetSubStateChance( e_hdBuildIndex_TOpenAir_QuickExpandAir,    75 )
// L227
AISetSubStateChance( e_hdBuildIndex_TMidRushTiming_MMMedivac,        40 )

# mods/swarm.sc2mod

ZergHigh.galaxy

// L176
AISetSubStateChance( e_hdBuildIndex_ZOpenRush_6Pool,   50 )
// L177
AISetSubStateChance( e_hdBuildIndex_ZOpenRush_10Pool,  50 )
// L185
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_QuickExpGnd,    40 )
// L186
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_DefenseExpGnd,  60 )
// L190
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseMuta,       70 )
// L191
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseDrop,       30 )
// L193
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseMuta,       10 )
// L194
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseDrop,        5 )
// L195
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_QuickExpandAir,    85 )
// L199
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_QuickExpGnd,    70 )

# mods/void.sc2mod

ProtossHigh.galaxy

// L203
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseAir,        70 )
// L204
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseDrop,       30 )
// L206
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseAir,        10 )
// L207
AISetSubStateChance( e_hdBuildIndex_POpenAir_OneBaseDrop,        5 )
// L208
AISetSubStateChance( e_hdBuildIndex_POpenAir_QuickExpandAir,    85 )
// L229
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_FourGateRobo,     40 )
// L230
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_DefensiveExpand,  60 )
// L232
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_FourGateRobo,     35 )
// L233
AISetSubStateChance( e_hdBuildIndex_PMidRushTiming_DefensiveExpand,  65 )
// L235
AISetSubStateChance( e_hdBuildIndex_PMidMacro_GateRobo,          90 )

# mods/void.sc2mod

TerranHigh.galaxy

// L181
AISetSubStateChance( e_hdBuildIndex_TOpenRush_Marine,           80 )
// L182
AISetSubStateChance( e_hdBuildIndex_TOpenRush_MarineReaper,     20 )
// L201
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseAir,        50 )
// L202
AISetSubStateChance( e_hdBuildIndex_TOpenAir_CloakBanshee,      30 )
// L203
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseDrop,       20 )
// L205
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseAir,        10 )
// L206
AISetSubStateChance( e_hdBuildIndex_TOpenAir_CloakBanshee,      10 )
// L207
AISetSubStateChance( e_hdBuildIndex_TOpenAir_OneBaseDrop,        5 )
// L208
AISetSubStateChance( e_hdBuildIndex_TOpenAir_QuickExpandAir,    75 )
// L229
AISetSubStateChance( e_hdBuildIndex_TMidRushTiming_MMMedivac,        40 )

# mods/void.sc2mod

ZergHigh.galaxy

// L182
AISetSubStateChance( e_hdBuildIndex_ZOpenRush_6Pool,   50 )
// L183
AISetSubStateChance( e_hdBuildIndex_ZOpenRush_10Pool,  50 )
// L191
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_QuickExpGnd,    40 )
// L192
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_DefenseExpGnd,  60 )
// L196
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseMuta,       70 )
// L197
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseDrop,       30 )
// L199
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseMuta,       10 )
// L200
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_OneBaseDrop,        5 )
// L201
AISetSubStateChance( e_hdBuildIndex_ZOpenAir_QuickExpandAir,    85 )
// L205
AISetSubStateChance( e_hdBuildIndex_ZOpenPowerMacro_QuickExpGnd,    70 )