# Set StockExpand
Grammar — Expand set stock for player player using town hall type townHall with count count|#
Flags —Native
|Action
Adds an expansion into the stock for an AI player. When the AI reaches this point in the stock list, it will build the specified TownHall type at an expansion point rather than spending money on units or other buildings.
# Arguments
int
— Playerstring
<gamelink::Unit> — TownHallint
— Count
Returns — bool
native bool AISetStockExpand(
int player,
string aliasUnitTypeTH,
int count,
);
# Related
Category: AI Advanced / Construction / Actions
- Build —
void
— AIBuild - Train —
void
— AITrain - Research —
void
— AIResearch - Make Always —
void
— AIMakeAlways - Make Once —
void
— AIMakeOnce - Clear Build Queue —
void
— AIClearBuildQueue - Clear Train Queue —
void
— AIClearTrainQueue - Clear Research Queue —
void
— AIClearResearchQueue - Clear Stock —
void
— AIClearStock - Enable Stock —
void
— AIEnableStock - Set StockEx —
void
— AISetStockEx - Set Stock —
void
— AISetStock - Set StockOpt —
void
— AISetStockOpt - Set StockUnitNext —
void
— AISetStockUnitNext - Set StockTown —
bool
— AISetStockTown - Set StockExpand —
bool
— AISetStockExpand - Set StockAlias —
void
— AISetStockAlias - Set StockFree —
void
— AISetStockFree - Default Economy —
void
— AIDefaultEconomy - Default Expansion —
void
— AIDefaultExpansion
# Examples
— None found —