Skip to content

Player Constants

The following constants have different values depending on the player the AI script was assigned to.

Player Constants
// Contains the ID of the player the AI script was assigned to.
extern const int cMyID;

// Contains the culture ID of the civilization the AI is
// currently playing as.
extern const int cMyCulture;

// Contains the civilization ID of the civilization the AI is
// currently playing as.
extern const int cMyCiv;

// Contains the team ID of the team the AI is currently playing on.
extern const int cMyTeam;