SC2Mapster Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Help
SC2MAPSTER
News
Maps
Assets
Teams
Authors
Forums
Paste
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
SC2Mapster Wiki
1,003
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Help
SC2MAPSTER
News
Maps
Assets
Teams
Authors
Forums
Paste
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Tutorials/Artificial Intelligence
(section)
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Tutorials/Artificial Intelligence
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Stock=== Stock settings define how many things of a certain type a AI should target. The AI is stupid about it and does not understand the tech-tree. So if you want a AI to have a Stock of 50 Marines, it would not understand that it first have to build many SCVs, Supply Depots and Barracks. It would look for Barracks and try to que up Marines in them. If the don't exist it will do nothing. Stocks are also incremental in a way that is not entierly obvious. This is how Stock are implemented: *AISetStock(2,5,"SCV") *AISetStock(2,1,"SupplyDepot") *AISetStock(2,10,"SCV") *AISetStock(2,3,"SupplyDepot") *AIEnableStock(2) The AI would first build 5 SCVs, then 1 Supply Depots, then 5 more SCVs and then 2 more Supply Depots. If a SCV or Supply Depot gets killed then the AI would try to rebuild it. It would not skip a step even though it could. *If the AI does not have enough supply to continue, it will not continue! The AI will just stupidly try to build more workers infinititely. *If you dont add the EnableStock then nothing will get built. *The AISetStock() functions contains hidden "wait" orders. The AI will not skip a Stock order if it can't build the previous ones. *You cant add "Wait()" into the list of Stock orders (like the one above). Doing so will simply delay the EnableStock call which in turn prevents the AI from start building anything. If you want to add delays into the building, like conditions and branching, you would have to add small segments of Stock build orders and add Wait() and conditions after the EnableStock. *The cousin of Stock is the direct Build, Train and Research orders. Mixing the two can become very complicated, since the results of the direct build orders will be counted into the Stock.
Summary:
Please note that all contributions to the SC2Mapster Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab