SC2Mapster.com Wiki

SC2 API / Functions

A complete list of natives can be found here.

Trigger

Triggers are function that are executed when an event occurs. These functions allow the user to create new triggers from custom functions and bind them to different events.

UI

Basic Types

Conversions

String

Math

Terrain

Point

Region

Cliff

Camera

Game Data

Set of functions that manipulate Catalog XML Files.

Game Objects

Melee

Player

Player Group

Unit

Unit Filter

Unit Group

Unit Group Filter

Ability

Tech Tree

Marker

Order

Debug

These functions are supposed to write data somewhere but I can't find where ...

AI

Difficulty

User Data

Time

Locations

Sub State

Transports

Danger

Suicide

Wave

Towns

Scout

Research

Stock

A stock is a list of units, buildings, ... you want the AI to create

  • AIClearStock(int player) - Remove everything from the stock
  • AIEnableStock(int player) - Start the stock production
  • AISetStock(int player, int count, string aliasType) - Add an element to the production queue
  • AISetStockEx(int player, int town, int count, string aliasType, int buildFlags, int stockFlags) - AI Advanced - Set stock for "player" at "town" to make "count" units of type "aliasType" using build flags "buildFlags" and stock flags "stockFlags".

Nuke

Filter

Combat

Evaluation

Wave

Infos
Target
Attack

Bully

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • 2 comments