Sleep
Pauses the current script. The duration unit is not documented here. Open full entry → Global | void Sleep(int)Pauses the current script. The duration unit is not documented here. |
KillScript
Stops the current script. Open full entry → Global | void KillScript()Stops the current script. |
+=
Behavior awaiting documentation. Open full entry → Global | int +=(int&, int)Description pendingDescription pending. |
-=
Behavior awaiting documentation. Open full entry → Global | int -=(int&, int)Description pendingDescription pending. |
&
Behavior awaiting documentation. Open full entry → Global | int &(int, int)Description pendingDescription pending. |
|
Behavior awaiting documentation. Open full entry → Global | int |(int, int)Description pendingDescription pending. |
+
Behavior awaiting documentation. Open full entry → Global | int +(int, int)Description pendingDescription pending. |
-
Behavior awaiting documentation. Open full entry → Global | int -(int, int)Description pendingDescription pending. |
-
Behavior awaiting documentation. Open full entry → Global | int -(int)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(int&, int)Description pendingDescription pending. |
*
Behavior awaiting documentation. Open full entry → Global | int *(int, int)Description pendingDescription pending. |
/
Behavior awaiting documentation. Open full entry → Global | int /(int, int)Description pendingDescription pending. |
%
Behavior awaiting documentation. Open full entry → Global | int %(int, int)Description pendingDescription pending. |
==
Behavior awaiting documentation. Open full entry → Global | bool ==(int, int)Description pendingDescription pending. |
!=
Behavior awaiting documentation. Open full entry → Global | bool !=(int, int)Description pendingDescription pending. |
<
Behavior awaiting documentation. Open full entry → Global | bool <(int, int)Description pendingDescription pending. |
>
Behavior awaiting documentation. Open full entry → Global | bool >(int, int)Description pendingDescription pending. |
<=
Behavior awaiting documentation. Open full entry → Global | bool <=(int, int)Description pendingDescription pending. |
>=
Behavior awaiting documentation. Open full entry → Global | bool >=(int, int)Description pendingDescription pending. |
abs
Returns the absolute value of an integer. Open full entry → Global | int abs(int)Returns the absolute value of an integer. |
Write
Consumes four bytes and delegates the integer to format %ld in the shared formatting buffer. Open full entry → Global | void Write(int)Consumes four bytes and delegates the integer to format %ld in the shared formatting buffer. |
MIN
Returns the smaller of the two values. Open full entry → Global | int MIN(int, int)Returns the smaller of the two values. |
MAX
Returns the larger of the two values. Open full entry → Global | int MAX(int, int)Returns the larger of the two values. |
CLAMP
Limits a value to the supplied lower and upper bounds. Open full entry → Global | int CLAMP(int, int, int)Limits a value to the supplied lower and upper bounds. |
+
Behavior awaiting documentation. Open full entry → Global | float +(float, float)Description pendingDescription pending. |
-
Behavior awaiting documentation. Open full entry → Global | float -(float, float)Description pendingDescription pending. |
-
Behavior awaiting documentation. Open full entry → Global | float -(float)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(float&, float)Description pendingDescription pending. |
*
Behavior awaiting documentation. Open full entry → Global | float *(float, float)Description pendingDescription pending. |
/
Behavior awaiting documentation. Open full entry → Global | float /(float, float)Description pendingDescription pending. |
==
Behavior awaiting documentation. Open full entry → Global | bool ==(float, float)Description pendingDescription pending. |
!=
Behavior awaiting documentation. Open full entry → Global | bool !=(float, float)Description pendingDescription pending. |
<
Behavior awaiting documentation. Open full entry → Global | bool <(float, float)Description pendingDescription pending. |
>
Behavior awaiting documentation. Open full entry → Global | bool >(float, float)Description pendingDescription pending. |
sqrt
Returns the square root of a value. Open full entry → Global | float sqrt(float)Returns the square root of a value. |
Int
Converts the binary64 input to an integer through truncation and retains the 32-bit result. Open full entry → Global | int Int(float)Converts the binary64 input to an integer through truncation and retains the 32-bit result. |
Write
Consumes an eight-byte floating-point value and formats it with %f in the shared formatting buffer. Open full entry → Global | void Write(float)Consumes an eight-byte floating-point value and formats it with %f in the shared formatting buffer. |
MIN
Returns the smaller of the two values. Open full entry → Global | float MIN(float, float)Returns the smaller of the two values. |
MAX
Returns the larger of the two values. Open full entry → Global | float MAX(float, float)Returns the larger of the two values. |
CLAMP
Limits a value to the supplied lower and upper bounds. Open full entry → Global | float CLAMP(float, float, float)Limits a value to the supplied lower and upper bounds. |
=
Behavior awaiting documentation. Open full entry → Global | void =(bool&, bool)Description pendingDescription pending. |
!
Behavior awaiting documentation. Open full entry → Global | bool !(bool)Description pendingDescription pending. |
&&
Behavior awaiting documentation. Open full entry → Global | bool &&(bool, bool)Description pendingDescription pending. |
||
Behavior awaiting documentation. Open full entry → Global | bool ||(bool, bool)Description pendingDescription pending. |
^
Behavior awaiting documentation. Open full entry → Global | bool ^(bool, bool)Description pendingDescription pending. |
Write
Consumes 256 bytes, copies the packed string, terminates payload at its unsigned length byte, and delegates format %s. Open full entry → Global | void Write(pstr)Consumes 256 bytes, copies the packed string, terminates payload at its unsigned length byte, and delegates format %s. |
Write
Consumes the eight-byte managed string cell, delegates its pointer plus four to format %s, then decrements and conditionally releases the reference. Open full entry → Global | void Write(str)Consumes the eight-byte managed string cell, delegates its pointer plus four to format %s, then decrements and conditionally releases the reference. |
=
Behavior awaiting documentation. Open full entry → Global | void =(pstr&, pstr)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(str&, str)Description pendingDescription pending. |
StrCmp
Compares two strings. Returns a negative number, zero or a positive number; it is not a boolean equality check. Open full entry → Global | int StrCmp(str, str)Compares two strings. Returns a negative number, zero or a positive number; it is not a boolean equality check. |
StrCat
Appends the second string to the first, modifying the first string. Open full entry → Global | void StrCat(str&, str)Appends the second string to the first, modifying the first string. |
ParseStr
Splits text at its first comma, returning a trimmed token and updating the output string. Open full entry → Global | str ParseStr(str, str&)Splits text at its first comma, returning a trimmed token and updating the output string. |
StrStr
Checks whether a string contains another string. Open full entry → Global | bool StrStr(str, str)Checks whether a string contains another string. |
GetFromStr
Parses comma-delimited entries and compares each source key token against the supplied key for the source token length. Open full entry → Global | str GetFromStr(str, str)Parses comma-delimited entries and compares each source key token against the supplied key for the source token length. |
GetFromStrToEOL
Finds a named space-delimited entry and returns its comma-terminated remainder as a managed string. Open full entry → Global | str GetFromStrToEOL(str, str)Finds a named space-delimited entry and returns its comma-terminated remainder as a managed string. |
+
Behavior awaiting documentation. Open full entry → Global | str +(str, str)Description pendingDescription pending. |
FindChrPos
Returns the position of the first matching character, or -1 if it is not found. The position's indexing convention is not specified here. Open full entry → Global | int FindChrPos(str, int)Returns the position of the first matching character, or -1 if it is not found. The position's indexing convention is not specified here. |
GetChr
The final int is popped before the eight-byte str. Open full entry → Global | int GetChr(str, int)The final int is popped before the eight-byte str. |
IsNull
Checks whether the string pointer is null. A nonnull string also undergoes reference-count cleanup. Open full entry → Global | bool IsNull(str)Checks whether the string pointer is null. A nonnull string also undergoes reference-count cleanup. |
StrLen
Returns the length of a CKS string in bytes. Open full entry → Global | int StrLen(str)Returns the length of a CKS string in bytes. |
StrMid
Clamps the requested count with signed comparisons and copies from payload plus the unchanged start index. Open full entry → Global | str StrMid(str, int, int)Clamps the requested count with signed comparisons and copies from payload plus the unchanged start index. |
Str2Int
Converts a string to an integer. Conversion edge cases are not described here yet. Open full entry → Global | int Str2Int(str)Converts a string to an integer. Conversion edge cases are not described here yet. |
==
Behavior awaiting documentation. Open full entry → Global | bool ==(str, str)Description pendingDescription pending. |
!=
Behavior awaiting documentation. Open full entry → Global | bool !=(str, str)Description pendingDescription pending. |
IsFlagSet
Checks whether the two integer values share any set bits. Open full entry → Global | bool IsFlagSet(int, int)Checks whether the two integer values share any set bits. |
SetFlag
Sets or clears the requested bits in an integer passed by reference. Open full entry → Global | int SetFlag(int&, int, bool)Sets or clears the requested bits in an integer passed by reference. |
Point
Creates a point from its horizontal coordinate x and vertical coordinate y, in that order. Open full entry → Global | point Point(int, int)Creates a point from its horizontal coordinate x and vertical coordinate y, in that order. |
+
Behavior awaiting documentation. Open full entry → Global | point +(point, point)Description pendingDescription pending. |
-
Behavior awaiting documentation. Open full entry → Global | point -(point, point)Description pendingDescription pending. |
*
Behavior awaiting documentation. Open full entry → Global | point *(point, int)Description pendingDescription pending. |
/
Behavior awaiting documentation. Open full entry → Global | point /(point, int)Description pendingDescription pending. |
Dist
returns the integer square root of dx squared plus dy squared. Open full entry → Global | int Dist(point, point)returns the integer square root of dx squared plus dy squared. |
=
Behavior awaiting documentation. Open full entry → Global | void =(point&, point)Description pendingDescription pending. |
==
Behavior awaiting documentation. Open full entry → Global | bool ==(point, point)Description pendingDescription pending. |
!=
Behavior awaiting documentation. Open full entry → Global | bool !=(point, point)Description pendingDescription pending. |
IntersectRects
IntersectRects returns componentwise signed max,max,min,min of its two four-dword rectangles. Open full entry → Global | rect IntersectRects(rect, rect)IntersectRects returns componentwise signed max,max,min,min of its two four-dword rectangles. |
AddRects
Computes the union of two rectangles with signed integer coordinates. Open full entry → Global | rect AddRects(rect, rect)Computes the union of two rectangles with signed integer coordinates. |
=
Behavior awaiting documentation. Open full entry → Global | void =(rect&, rect)Description pendingDescription pending. |
==
Behavior awaiting documentation. Open full entry → Global | bool ==(rect, rect)Description pendingDescription pending. |
!=
Behavior awaiting documentation. Open full entry → Global | bool !=(rect, rect)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(IntArray&, IntArray&)Description pendingDescription pending. |
[
Behavior awaiting documentation. Open full entry → Global | int& [(IntArray&, int)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(StrArray&, StrArray&)Description pendingDescription pending. |
[
Behavior awaiting documentation. Open full entry → Global | str& [(StrArray&, int)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(StrMap&, StrMap&)Description pendingDescription pending. |
[
Behavior awaiting documentation. Open full entry → Global | str& [(StrMap&, str)Description pendingDescription pending. |
DumpStack
Scans the active VM frame bytes and formats them as hexadecimal. Open full entry → Global | void DumpStack()Scans the active VM frame bytes and formats them as hexadecimal. |
DumpCode
Walks a local instruction pointer while formatting diagnostics into a shared buffer. Open full entry → Global | void DumpCode(int)Walks a local instruction pointer while formatting diagnostics into a shared buffer. |
GetMapSize
GetMapSize pushes the two 32-bit bound differences plus one from the pointer stored at [field]. Open full entry → Global | point GetMapSize()GetMapSize pushes the two 32-bit bound differences plus one from the pointer stored at [field]. |
_RandomTerrain2
Routes a managed filename to a map worker and conditionally reports a nonzero return. Open full entry → Global | void _RandomTerrain2(str)Routes a managed filename to a map worker and conditionally reports a nonzero return. |
=
Behavior awaiting documentation. Open full entry → Global | void =(Obj&, Obj)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(Item&, Item)Description pendingDescription pending. |
==
Behavior awaiting documentation. Open full entry → Global | bool ==(Obj, Obj)Description pendingDescription pending. |
!=
Behavior awaiting documentation. Open full entry → Global | bool !=(Obj, Obj)Description pendingDescription pending. |
GetClassRace
Returns the resolved named class dword at [field], or -1 when lookup returns null. Open full entry → Global | int GetClassRace(str)Returns the resolved named class dword at [field], or -1 when lookup returns null. |
GetRaceStr
Converts a race ID to its canonical name and returns it as a CKS string. Open full entry → Global | str GetRaceStr(int)Converts a race ID to its canonical name and returns it as a CKS string. |
GetRaceStrPref
Maps race indices zero through seven to one-character strings and returns an empty string otherwise. Open full entry → Global | str GetRaceStrPref(int)Maps race indices zero through seven to one-character strings and returns an empty string otherwise. |
GetRaceStrPrefLow
Maps race indices zero through seven to lowercase single-character strings and returns an empty string otherwise. Open full entry → Global | str GetRaceStrPrefLow(int)Maps race indices zero through seven to lowercase single-character strings and returns an empty string otherwise. |
ClearSelection
Clears the selection when the supplied player is the current player. Open full entry → Global | void ClearSelection(int)Clears the selection when the supplied player is the current player. |
cmdparam
cmdparam returns a global command parameter or a fallback active-order string. Open full entry → Global | str cmdparam()cmdparam returns a global command parameter or a fallback active-order string. |
cmdwaiting
Returns the current selection's command-waiting string or an empty fallback. Open full entry → Global | str cmdwaiting()Returns the current selection's command-waiting string or an empty fallback. |
rollover
Concatenates two selected strings and pushes an owned managed string result. Open full entry → Global | str rollover()Concatenates two selected strings and pushes an owned managed string result. |
rollover
Builds command rollover text from an order description, resource costs, and current affordability. Open full entry → Global | str rollover(Obj, bool)Builds command rollover text from an order description, resource costs, and current affordability. |
rollover
Builds object rollover text from order costs, class statistics, and optional affordability detail. Open full entry → Global | str rollover(Obj, str, bool)Builds object rollover text from order costs, class statistics, and optional affordability detail. |
rollover
Composes rollover text from an order description, a localized supplied key, and a secondary description. Open full entry → Global | str rollover(Obj, str)Composes rollover text from an order description, a localized supplied key, and a secondary description. |
rollover_desc
Composes localized rollover text and conditionally appends the secondary order description. Open full entry → Global | str rollover_desc(Obj, str, bool)Composes localized rollover text and conditionally appends the secondary order description. |
cmdcost_gold
Returns the cached gold cost or obtains it from the current script command context. Open full entry → Global | int cmdcost_gold()Returns the cached gold cost or obtains it from the current script command context. |
cmdcost_food
Returns the current food command cost from the cache or active order. Open full entry → Global | int cmdcost_food()Returns the current food command cost from the cache or active order. |
cmdcost_pop
Returns the cached population cost or obtains it from the current script command context. Open full entry → Global | int cmdcost_pop()Returns the cached population cost or obtains it from the current script command context. |
cmdcost_stamina
Returns the cached stamina cost or obtains it from the current script command context. Open full entry → Global | int cmdcost_stamina()Returns the cached stamina cost or obtains it from the current script command context. |
GetPlayerRace
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int GetPlayerRace(int)Description pendingDescription pending. |
_GetSelection
Returns the active player's selected objects as an ObjList. Open full entry → Global | ObjList _GetSelection()Returns the active player's selected objects as an ObjList. |
ClearDebug
Increments a shared 32-bit value. The implementation reports status zero. Open full entry → Global | void ClearDebug()Increments a shared 32-bit value. The implementation reports status zero. |
Place
Creates an object of the named class at a map position for the specified player, when placement is possible. Open full entry → Global | Obj Place(str, point, int)Creates an object of the named class at a map position for the specified player, when placement is possible. |
PlaceInHolder
Validates the player and routes a compatible created unit to forced entry in the named holder. Open full entry → Global | Obj PlaceInHolder(str, str, int)Validates the player and routes a compatible created unit to forced entry in the named holder. |
_PlaceEx
Clamps a supplied point to map margins and routes placement with an optional script handle. Open full entry → Global | Obj _PlaceEx(str, int, int, int)Clamps a supplied point to map margins and routes placement with an optional script handle. |
_PlaceBlockEx
Routes class creation and placement across a signed grid, aborting on factory or template failure. Open full entry → Global | void _PlaceBlockEx(str, int, int, int, int, int, int, int)Routes class creation and placement across a signed grid, aborting on factory or template failure. |
_PlaceBlockEx
Prepares a named group and routes compatible grid objects to its insertion virtual. Open full entry → Global | void _PlaceBlockEx(str, int, int, int, int, int, int, int, str)Prepares a named group and routes compatible grid objects to its insertion virtual. |
_Summon
Allocates and populates a command-shaped object before game submission. Open full entry → Global | void _Summon(str, int, int, int)Allocates and populates a command-shaped object before game submission. |
Group
Looks up a named group query and conditionally constructs and registers a replacement before returning its managed Query value. ⚠ Only partly documented so far. Open full entry → Global | Query Group(str)Looks up a named group query and conditionally constructs and registers a replacement before returning its managed Query value. |
GetGroupSize
Looks up a named group and returns its list count or zero. Open full entry → Global | int GetGroupSize(str)Looks up a named group and returns its list count or zero. |
SpawnGroup
Looks up a named group, processes its live unit members through the world-spawn helper, and returns its resulting ObjList. Open full entry → Global | ObjList SpawnGroup(str)Looks up a named group, processes its live unit members through the world-spawn helper, and returns its resulting ObjList. |
SpawnGroupInHolder
Resolves a named group and named holder, forces eligible group units into that holder, and returns the processed-unit ObjList. Open full entry → Global | ObjList SpawnGroupInHolder(str, str)Resolves a named group and named holder, forces eligible group units into that holder, and returns the processed-unit ObjList. |
SpawnGroupInHolder
Resolves a named group and an Obj receiver's virtual holder, forces eligible group units into it, and returns the processed-unit ObjList. Open full entry → Global | ObjList SpawnGroupInHolder(str, Obj)Resolves a named group and an Obj receiver's virtual holder, forces eligible group units into it, and returns the processed-unit ObjList. |
SpawnNamed
Looks up a named query and routes its current member through spawn and handle allocation. Open full entry → Global | Obj SpawnNamed(str)Looks up a named query and routes its current member through spawn and handle allocation. |
ModLevel
Resolves a named group and dispatches one of three level deltas according to the game difficulty value. Open full entry → Global | void ModLevel(str, int, int, int)Resolves a named group and dispatches one of three level deltas according to the game difficulty value. |
Union
Creates or reuses a composite Query node of operation code zero for two Query operands. Open full entry → Global | Query Union(Query, Query)Creates or reuses a composite Query node of operation code zero for two Query operands. |
Intersect
Builds a composite Query from two resolved handles using selector 1 and returns its handle. Open full entry → Global | Query Intersect(Query, Query)Builds a composite Query from two resolved handles using selector 1 and returns its handle. |
Substract
Behavior awaiting documentation. Open full entry → Global | Query Substract(Query, Query)Description pendingDescription pending. |
Subtract
Creates or reuses a composite Query node of operation code two for two Query operands. Open full entry → Global | Query Subtract(Query, Query)Creates or reuses a composite Query node of operation code two for two Query operands. |
ClassPlayerAreaObjs
Behavior awaiting documentation. Open full entry → Global | Query ClassPlayerAreaObjs(str, int, str)Description pendingDescription pending. |
ClassPlayerObjs
Validates a player and class name, then returns a cached or newly built player-class Query. Open full entry → Global | Query ClassPlayerObjs(str, int)Validates a player and class name, then returns a cached or newly built player-class Query. |
BuildingsInSettlement
Behavior awaiting documentation. Open full entry → Global | Query BuildingsInSettlement(str, str)Description pendingDescription pending. |
UnitsInSettlement
Behavior awaiting documentation. Open full entry → Global | Query UnitsInSettlement(str, str)Description pendingDescription pending. |
UnitsAroundSettlement
Behavior awaiting documentation. Open full entry → Global | Query UnitsAroundSettlement(str, str)Description pendingDescription pending. |
UnitsGuardingSettlement
Behavior awaiting documentation. Open full entry → Global | Query UnitsGuardingSettlement(str, str)Description pendingDescription pending. |
UnitsInSettlement
Behavior awaiting documentation. Open full entry → Global | Query UnitsInSettlement(Settlement, str)Description pendingDescription pending. |
UnitsAroundSettlement
Behavior awaiting documentation. Open full entry → Global | Query UnitsAroundSettlement(Settlement, str)Description pendingDescription pending. |
UnitsGuardingSettlement
Behavior awaiting documentation. Open full entry → Global | Query UnitsGuardingSettlement(Settlement, str)Description pendingDescription pending. |
EnemyObjs
Validates a player and class string, requests a mode-two cached query and returns its managed Query value. ⚠ Only partly documented so far. Open full entry → Global | Query EnemyObjs(int, str)Validates a player and class string, requests a mode-two cached query and returns its managed Query value. |
FriendlyObjs
Constructs a class-filtered Query for a specified player. Open full entry → Global | Query FriendlyObjs(int, str)Constructs a class-filtered Query for a specified player. |
ControllableObjs
Behavior awaiting documentation. Open full entry → Global | Query ControllableObjs(int, str)Description pendingDescription pending. |
AreaObjs
Returns a query with the objects inside the map area named by its first argument. Works with both rectangular and circular areas. A rectangle or circle map query is used depending on the area's shape. The meaning of the second string and the exact query filter are not documented here. Open full entry → Global | Query AreaObjs(str, str)Returns a query with the objects inside the map area named by its first argument. Works with both rectangular and circular areas. |
ObjsInRect
Builds a query from an inclusive rectangle and a resolved script-class filter. Open full entry → Global | Query ObjsInRect(rect, str)Builds a query from an inclusive rectangle and a resolved script-class filter. |
ObjsInCircle
Returns a class-filtered spatial query centered on a point with a supplied radius. Open full entry → Global | Query ObjsInCircle(point, int, str)Returns a class-filtered spatial query centered on a point with a supplied radius. |
ObjsInSight
Builds a class-filtered query of objects visible to a resolved object. Open full entry → Global | Query ObjsInSight(Obj, str)Builds a class-filtered query of objects visible to a resolved object. |
VisibleObjsInSight
Builds a visibility-mode class-filtered Query around a resolved Obj. Open full entry → Global | Query VisibleObjsInSight(Obj, str)Builds a visibility-mode class-filtered Query around a resolved Obj. |
ObjsInRange
Validates an Obj and class name, then returns a cached or newly built object-range Query. Open full entry → Global | Query ObjsInRange(Obj, str, int)Validates an Obj and class name, then returns a cached or newly built object-range Query. |
AttachedUnits
Builds a class-filtered query of units attached to a resolved hero. Open full entry → Global | Query AttachedUnits(Hero, str)Builds a class-filtered query of units attached to a resolved hero. |
PartyQuery
Pushes a singleton query handle with its owned VM footer. Open full entry → Global | Query PartyQuery()Pushes a singleton query handle with its owned VM footer. |
=
Behavior awaiting documentation. Open full entry → Global | void =(Query&, Query)Description pendingDescription pending. |
DistributeExperience
Divides an unsigned experience amount across query members and adds the remainder to the first registry-live recipient. Open full entry → Global | void DistributeExperience(Query, int)Divides an unsigned experience amount across query members and adds the remainder to the first registry-live recipient. |
AttackArea
Routes Query and area name to the shared dispatcher with the advance literal. Open full entry → Global | void AttackArea(Query, str)Routes Query and area name to the shared dispatcher with the advance literal. |
MoveToArea
Routes Query and area name to the shared dispatcher with the move literal. Open full entry → Global | void MoveToArea(Query, str)Routes Query and area name to the shared dispatcher with the move literal. |
NearestObj
Behavior awaiting documentation. Open full entry → Global | Obj NearestObj(Query, point)Description pendingDescription pending. |
NearestObj
Behavior awaiting documentation. Open full entry → Global | Obj NearestObj(Query, Obj)Description pendingDescription pending. |
GetNamedObj
Returns a NamedObj reference for a named query, creating that query if it does not exist yet. Open full entry → Global | NamedObj GetNamedObj(str)Returns a NamedObj reference for a named query, creating that query if it does not exist yet. |
EnemyInRange
Builds a wrapped bounding rectangle and returns the spatial callback accumulator as a boolean. Open full entry → Global | bool EnemyInRange(point, int, Obj)Builds a wrapped bounding rectangle and returns the spatial callback accumulator as a boolean. |
GetResearchHack
Implements this function, testing the Building research-active interval flag. Open full entry → Global | bool GetResearchHack()Implements this function, testing the Building research-active interval flag. |
PlaceCatapult
Routes four script integers through class selection and catapult creation. Open full entry → Global | Catapult PlaceCatapult(int, int, int, int)Routes four script integers through class selection and catapult creation. |
GetCatapultAttackPoint
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | point GetCatapultAttackPoint(point)Description pendingDescription pending. |
max_train_1_level
max_train_1_level pushes the dword stored at [field]. Open full entry → Global | int max_train_1_level()max_train_1_level pushes the dword stored at [field]. |
SetExperienceModifier
Stores the supplied 32-bit value in a field of the selected player record. Open full entry → Global | void SetExperienceModifier(int, int)Stores the supplied 32-bit value in a field of the selected player record. |
GetExperienceModifier
GetExperienceModifier returns the selected player record dword at [field]. Open full entry → Global | int GetExperienceModifier(int)GetExperienceModifier returns the selected player record dword at [field]. |
GetPlayerUnits
Builds an ObjList of units for a one-based player number. Open full entry → Global | ObjList GetPlayerUnits(int)Builds an ObjList of units for a one-based player number. |
GetPlayerUnits
Builds an ObjList of a player's units using a resolved script class filter. Open full entry → Global | ObjList GetPlayerUnits(int, str)Builds an ObjList of a player's units using a resolved script class filter. |
InvalidateRegenConsts
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void InvalidateRegenConsts()Description pendingDescription pending. |
ExpFromLevel
ExpFromLevel replaces the input dword with the global dword at [field]. Open full entry → Global | int ExpFromLevel(int)ExpFromLevel replaces the input dword with the global dword at [field]. |
LevelFromExp
Converts an experience dword using an inline signed threshold scan and returns the resulting level dword. Open full entry → Global | int LevelFromExp(int)Converts an experience dword using an inline signed threshold scan and returns the resulting level dword. |
GetRandomHeroClass
Passes a class string and decremented player index to a hero selector and returns a new script string. Open full entry → Global | str GetRandomHeroClass(str, int)Passes a class string and decremented player index to a hero selector and returns a new script string. |
HeroSkillId
Consumes a skill-name string and returns the index found by a case-sensitive descriptor-name scan. Open full entry → Global | int HeroSkillId(str)Consumes a skill-name string and returns the index found by a case-sensitive descriptor-name scan. |
HeroSkillName
Returns an owned script string from the 25-entry display-name table or an empty-string fallback. Open full entry → Global | str HeroSkillName(int)Returns an owned script string from the 25-entry display-name table or an empty-string fallback. |
_ScriptEditor
Allocates an editor object and dispatches construction with the data/subai literal. Open full entry → Global | void _ScriptEditor()Allocates an editor object and dispatches construction with the data/subai literal. |
_ScriptEditor
Consumes a managed directory string and dispatches the editor constructor. Open full entry → Global | void _ScriptEditor(str)Consumes a managed directory string and dispatches the editor constructor. |
_DialogEditor
Shared no-argument handler for two CKS registrations that allocates and constructs a dialog using the literal EditorIni/ string. Open full entry → Global | void _DialogEditor()Shared no-argument handler for two CKS registrations that allocates and constructs a dialog using the literal EditorIni/ string. |
_DialogEditor
Consumes a CKS string and passes its character data to the dialog constructor. Open full entry → Global | void _DialogEditor(str)Consumes a CKS string and passes its character data to the dialog constructor. |
_de
Shared no-argument handler for two CKS registrations that allocates and constructs a dialog using the literal EditorIni/ string. Open full entry → Global | void _de()Shared no-argument handler for two CKS registrations that allocates and constructs a dialog using the literal EditorIni/ string. |
_Choose
Retains a native dialog pointer until its result text becomes available. Open full entry → Global | str _Choose(str, str)Retains a native dialog pointer until its result text becomes available. |
_ListClasses
Dispatches enumeration on the known class-template registry and returns a managed copy. Open full entry → Global | str _ListClasses()Dispatches enumeration on the known class-template registry and returns a managed copy. |
_ListFolder
Enumerates a VFS path and returns matching entry names joined by newlines. Open full entry → Global | str _ListFolder(str)Enumerates a VFS path and returns matching entry names joined by newlines. |
_ListFolderEx
Filters VFS enumeration names by an ASCII case-insensitive suffix and joins matches with newlines. Open full entry → Global | str _ListFolderEx(str, str)Filters VFS enumeration names by an ASCII case-insensitive suffix and joins matches with newlines. |
_ListTerrains
Appends the string member of each terrain record followed by a newline. Open full entry → Global | str _ListTerrains()Appends the string member of each terrain record followed by a newline. |
MiniMap
Branches on the minimap holder and either constructs its supporting message/UI objects or invokes close/destruction slots. Open full entry → Global | void MiniMap()Branches on the minimap holder and either constructs its supporting message/UI objects or invokes close/destruction slots. |
SetMiniMapRect
Consumes a script rectangle, narrows its coordinates to words, shifts/clamps it against native bounds, and updates an existing minimap. Open full entry → Global | void SetMiniMapRect(rect)Consumes a script rectangle, narrows its coordinates to words, shifts/clamps it against native bounds, and updates an existing minimap. |
BuildMiniMap
Consumes a managed script string and forwards a temporary native string to the minimap builder. Open full entry → Global | void BuildMiniMap(str)Consumes a managed script string and forwards a temporary native string to the minimap builder. |
ToggleZoomMap
Invokes a virtual operation on the shared zoom-map interface. Open full entry → Global | void ToggleZoomMap()Invokes a virtual operation on the shared zoom-map interface. |
ShowZoomMap
Invokes a virtual operation on the shared zoom-map interface. Open full entry → Global | void ShowZoomMap()Invokes a virtual operation on the shared zoom-map interface. |
HideZoomMap
Invokes a virtual operation on the shared zoom-map interface. Open full entry → Global | void HideZoomMap()Invokes a virtual operation on the shared zoom-map interface. |
_ZoomMapLastShownTime
CKS primitive bound to "_ZoomMapLastShownTime", querying the game tick when the tactical map was last opened. Open full entry → Global | int _ZoomMapLastShownTime()CKS primitive bound to "_ZoomMapLastShownTime", querying the game tick when the tactical map was last opened. |
==
Behavior awaiting documentation. Open full entry → Global | bool ==(Settlement, Settlement)Description pendingDescription pending. |
=
Behavior awaiting documentation. Open full entry → Global | void =(Settlement&, Settlement)Description pendingDescription pending. |
GetSettlement
Returns the first settlement whose name matches the supplied text. Open full entry → Global | Settlement GetSettlement(str)Returns the first settlement whose name matches the supplied text. |
=
Behavior awaiting documentation. Open full entry → Global | void =(ObjList&, ObjList)Description pendingDescription pending. |
[
Behavior awaiting documentation. Open full entry → Global | Obj [(ObjList, int)Description pendingDescription pending. |
ActorPresent
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | bool ActorPresent(str)Description pendingDescription pending. |
ConvResult
Adapts a CKS string through the engine conversion helpers and returns a managed result string. Open full entry → Global | str ConvResult(str)Adapts a CKS string through the engine conversion helpers and returns a managed result string. |
ConvSetResult
Behavior awaiting documentation. Open full entry → Global | void ConvSetResult(str, str)Description pendingDescription pending. |
RunConv
CKS native primitive that starts and presents a conversation directly by name. ⚠ Only partly documented so far. Open full entry → Global | str RunConv(str)CKS native primitive that starts and presents a conversation directly by name. |
_ListConvs
Concatenates string keys from two native tree containers into a managed result. Open full entry → Global | str _ListConvs()Concatenates string keys from two native tree containers into a managed result. |
EnvWriteString
Pops value and key managed strings and delegates their payloads to the environment writer. Open full entry → Global | void EnvWriteString(str, str)Pops value and key managed strings and delegates their payloads to the environment writer. |
EnvWriteInt
Behavior awaiting documentation. Open full entry → Global | void EnvWriteInt(str, int)Description pendingDescription pending. |
EnvReadString
Consumes a managed key string, calls the environment string reader and pushes a managed string result. Open full entry → Global | str EnvReadString(str)Consumes a managed key string, calls the environment string reader and pushes a managed string result. |
EnvReadInt
Pops a managed key string and pushes the 32-bit result of the environment integer helper. Open full entry → Global | int EnvReadInt(str)Pops a managed key string and pushes the 32-bit result of the environment integer helper. |
EnvWriteObj
Encodes a resolved object identifier as decimal marker text and delegates it with the key. Open full entry → Global | void EnvWriteObj(str, Obj)Encodes a resolved object identifier as decimal marker text and delegates it with the key. |
EnvReadObj
Delegates key lookup and writes an eight-byte result with initialized low16 identifier and zero offset. Open full entry → Global | Obj EnvReadObj(str)Delegates key lookup and writes an eight-byte result with initialized low16 identifier and zero offset. |
EnvWriteString
CKS native primitive that writes a string value under a key into a settlement's Env key-value store. Open full entry → Global | void EnvWriteString(Settlement, str, str)CKS native primitive that writes a string value under a key into a settlement's Env key-value store. |
EnvWriteInt
Formats a settlement-scoped environment path and writes a decimal integer value. Open full entry → Global | void EnvWriteInt(Settlement, str, int)Formats a settlement-scoped environment path and writes a decimal integer value. |
EnvReadString
Builds a settlement-scoped environment path and returns the string obtained from the environment lookup helper. Open full entry → Global | str EnvReadString(Settlement, str)Builds a settlement-scoped environment path and returns the string obtained from the environment lookup helper. |
EnvReadInt
EnvReadInt builds a settlement property path and reads its integer value. Open full entry → Global | int EnvReadInt(Settlement, str)EnvReadInt builds a settlement property path and reads its integer value. |
EnvWriteObj
Behavior awaiting documentation. Open full entry → Global | void EnvWriteObj(Settlement, str, Obj)Description pendingDescription pending. |
EnvReadObj
Behavior awaiting documentation. Open full entry → Global | Obj EnvReadObj(Settlement, str)Description pendingDescription pending. |
EnvWriteString
Requests a string write under an environment key scoped to the specified building and its settlement. Arguments are the building, the key and the string. If the building cannot be resolved, this overload skips the write. The key path includes the game environment, settlement and building. Available dynamic verification covers one specific call; it establishes neither cross-game persistence nor duplicate-key rules. Those storage properties remain unresolved. Open full entry → Global | void EnvWriteString(Building, str, str)Requests a string write under an environment key scoped to the specified building and its settlement. Arguments are the building, the key and the string. |
EnvWriteInt
Formats a building-scoped environment path and delegates an integer value as decimal text to the environment writer. Open full entry → Global | void EnvWriteInt(Building, str, int)Formats a building-scoped environment path and delegates an integer value as decimal text to the environment writer. |
EnvReadString
Formats a building-scoped environment path and returns a managed string from its reader helper. Open full entry → Global | str EnvReadString(Building, str)Formats a building-scoped environment path and returns a managed string from its reader helper. |
EnvReadInt
Formats a building-scoped environment path and returns the integer produced by its reader helper. Open full entry → Global | int EnvReadInt(Building, str)Formats a building-scoped environment path and returns the integer produced by its reader helper. |
EnvWriteObj
Formats a building-scoped key and encodes an object identifier for the environment writer. Open full entry → Global | void EnvWriteObj(Building, str, Obj)Formats a building-scoped key and encodes an object identifier for the environment writer. |
EnvReadObj
Formats a building-scoped key and writes an Obj result with initialized low16 identifier and zero offset. Open full entry → Global | Obj EnvReadObj(Building, str)Formats a building-scoped key and writes an Obj result with initialized low16 identifier and zero offset. |
EnvWriteString
Writes a string under a key in the specified player's environment. Arguments are, in order, the player number, the key, and the string to write. This overload scopes the key to the specified player. Scripts use it, for example, to record research states. Retention of this data across games and complete player-number validation are not documented. Open full entry → Global | void EnvWriteString(int, str, str)Writes a string under a key in the specified player's environment. Arguments are, in order, the player number, the key, and the string to write. |
EnvWriteInt
Formats a player-scoped environment path and writes a decimal integer value. Open full entry → Global | void EnvWriteInt(int, str, int)Formats a player-scoped environment path and writes a decimal integer value. |
EnvReadString
Builds a player-scoped environment path and returns the string obtained from the environment lookup helper. Open full entry → Global | str EnvReadString(int, str)Builds a player-scoped environment path and returns the string obtained from the environment lookup helper. |
EnvReadInt
Formats a player-scoped environment path and returns the integer reader result. Open full entry → Global | int EnvReadInt(int, str)Formats a player-scoped environment path and returns the integer reader result. |
EnvWriteObj
Formats a player-scoped key and encodes an object identifier for the environment writer. Open full entry → Global | void EnvWriteObj(int, str, Obj)Formats a player-scoped key and encodes an object identifier for the environment writer. |
EnvReadObj
Behavior awaiting documentation. Open full entry → Global | Obj EnvReadObj(int, str)Description pendingDescription pending. |
EnvList
Behavior awaiting documentation. Open full entry → Global | void EnvList(str)Description pendingDescription pending. |
EnvList
Behavior awaiting documentation. Open full entry → Global | void EnvList(Settlement, str)Description pendingDescription pending. |
EnvFind
Behavior awaiting documentation. Open full entry → Global | void EnvFind(str)Description pendingDescription pending. |
EnvExport
Consumes a filename and dispatches the serializer-produced buffer to a VFS stream. Open full entry → Global | void EnvExport(str)Consumes a filename and dispatches the serializer-produced buffer to a VFS stream. |
_ClearEnv
Behavior awaiting documentation. Open full entry → Global | void _ClearEnv()Description pendingDescription pending. |
RegisterSettlementUpgrade
Parses command-definition triples and dispatches settlement property writes. Open full entry → Global | void RegisterSettlementUpgrade(Settlement, str)Parses command-definition triples and dispatches settlement property writes. |
RegisterPlayerUpgrade
Gates on research command type and dispatches player property writes from command triples. Open full entry → Global | void RegisterPlayerUpgrade(int, str)Gates on research command type and dispatches player property writes from command triples. |
RunSequence
Validates a named sequence and starts the matching sequence when validation succeeds. Open full entry → Global | void RunSequence(str)Validates a named sequence and starts the matching sequence when validation succeeds. |
_SequencesStatus
Prints a status line for every registered script sequence. Open full entry → Global | void _SequencesStatus()Prints a status line for every registered script sequence. |
IsRunning
IsRunning tests exact provider text Running. Open full entry → Global | bool IsRunning(str)IsRunning tests exact provider text Running. |
IsWaiting
IsWaiting tests exact provider text Waiting. Open full entry → Global | bool IsWaiting(str)IsWaiting tests exact provider text Waiting. |
IsFinished
IsFinished tests exact provider text Finished. Open full entry → Global | bool IsFinished(str)IsFinished tests exact provider text Finished. |
ViewPos
Converts the native viewport midpoint to a world point and pushes it on the CKS VM stack. Open full entry → Global | point ViewPos()Converts the native viewport midpoint to a world point and pushes it on the CKS VM stack. |
View
Pops a world point and lock boolean from the CKS VM stack and forwards them to the native camera-centering helper. Open full entry → Global | void View(point, bool)Pops a world point and lock boolean from the CKS VM stack and forwards them to the native camera-centering helper. |
PlayMusic
PlayMusic dispatches a guarded named sound request. Open full entry → Global | void PlayMusic(str)PlayMusic dispatches a guarded named sound request. |
PlaySound
plays a global 2D non-spatial sound effect via the sound manager. Open full entry → Global | void PlaySound(str)plays a global 2D non-spatial sound effect via the sound manager. |
PlaySound
PlaySound player overload gates its request on the local player index. Open full entry → Global | void PlaySound(int, str)PlaySound player overload gates its request on the local player index. |
MusicPlaying
MusicPlaying tests the low16 result of a virtual manager query. Open full entry → Global | bool MusicPlaying()MusicPlaying tests the low16 result of a virtual manager query. |
SetSpeed
SetSpeed prepares and submits a command when game field230 is zero. Open full entry → Global | void SetSpeed(int)SetSpeed prepares and submits a command when game field230 is zero. |
GetSpeed
GetSpeed reads game field1244 with a null fallback. Open full entry → Global | int GetSpeed()GetSpeed reads game field1244 with a null fallback. |
TogglePause
TogglePause alternates submitted values between one and saved speed. Open full entry → Global | void TogglePause()TogglePause alternates submitted values between one and saved speed. |
_Run
_Run returns true only after both compile and map scheduling helpers return zero. Open full entry → Global | bool _Run(str)_Run returns true only after both compile and map scheduling helpers return zero. |
Run
Adapts the verified global Run overload with 0 integer arguments to named script compilation and dispatch. Open full entry → Global | void Run(str)Adapts the verified global Run overload with 0 integer arguments to named script compilation and dispatch. |
Run
Adapts the verified global Run overload with 1 integer arguments to named script compilation and dispatch. Open full entry → Global | void Run(str, int)Adapts the verified global Run overload with 1 integer arguments to named script compilation and dispatch. |
Run
Adapts the verified global Run overload with 2 integer arguments to named script compilation and dispatch. Open full entry → Global | void Run(str, int, int)Adapts the verified global Run overload with 2 integer arguments to named script compilation and dispatch. |
Run
Adapts the verified global Run overload with 3 integer arguments to named script compilation and dispatch. Open full entry → Global | void Run(str, int, int, int)Adapts the verified global Run overload with 3 integer arguments to named script compilation and dispatch. |
Run
Adapts the verified global Run overload with 4 integer arguments to named script compilation and dispatch. Open full entry → Global | void Run(str, int, int, int, int)Adapts the verified global Run overload with 4 integer arguments to named script compilation and dispatch. |
Run
Adapts the verified global Run overload with 5 integer arguments to named script compilation and dispatch. Open full entry → Global | void Run(str, int, int, int, int, int)Adapts the verified global Run overload with 5 integer arguments to named script compilation and dispatch. |
IRun
Adapts the verified global IRun overload with 0 integer arguments to named script compilation and dispatch. Open full entry → Global | int IRun(str)Adapts the verified global IRun overload with 0 integer arguments to named script compilation and dispatch. |
IRun
Adapts the verified global IRun overload with 1 integer arguments to named script compilation and dispatch. Open full entry → Global | int IRun(str, int)Adapts the verified global IRun overload with 1 integer arguments to named script compilation and dispatch. |
IRun
Adapts the verified global IRun overload with 2 integer arguments to named script compilation and dispatch. Open full entry → Global | int IRun(str, int, int)Adapts the verified global IRun overload with 2 integer arguments to named script compilation and dispatch. |
IRun
Adapts the verified global IRun overload with 3 integer arguments to named script compilation and dispatch. Open full entry → Global | int IRun(str, int, int, int)Adapts the verified global IRun overload with 3 integer arguments to named script compilation and dispatch. |
IRun
Adapts the verified global IRun overload with 4 integer arguments to named script compilation and dispatch. Open full entry → Global | int IRun(str, int, int, int, int)Adapts the verified global IRun overload with 4 integer arguments to named script compilation and dispatch. |
IRun
Adapts the verified global IRun overload with 5 integer arguments to named script compilation and dispatch. Open full entry → Global | int IRun(str, int, int, int, int, int)Adapts the verified global IRun overload with 5 integer arguments to named script compilation and dispatch. |
ToggleFPS
ToggleFPS writes the zero test of global [field]. Open full entry → Global | void ToggleFPS()ToggleFPS writes the zero test of global [field]. |
GetConst
Looks up and returns an integer gameplay configuration constant from the global constants table by name string. Open full entry → Global | int GetConst(str)Looks up and returns an integer gameplay configuration constant from the global constants table by name string. |
GetConstStr
Looks up a key under GamePlay and returns the resulting string or an empty fallback. Open full entry → Global | str GetConstStr(str)Looks up a key under GamePlay and returns the resulting string or an empty fallback. |
rand
rand passes a zero-based bound to the game RNG virtual method. Open full entry → Global | int rand(int)rand passes a zero-based bound to the game RNG virtual method. |
BlockUserInput
Dispatches input-block flags and refreshes then destroys the control-group HUD holder. Open full entry → Global | void BlockUserInput()Dispatches input-block flags and refreshes then destroys the control-group HUD holder. |
UnblockUserInput
Dispatches input-unblock flags and ensures the control-group HUD exists. Open full entry → Global | void UnblockUserInput()Dispatches input-unblock flags and ensures the control-group HUD exists. |
ExploreCircle
Validates a player index and delegates a center and radius to a map exploration helper. Open full entry → Global | void ExploreCircle(int, point, int)Validates a player index and delegates a center and radius to a map exploration helper. |
ExploreArea
Gates a named-area reveal call by a signed player index. Open full entry → Global | void ExploreArea(int, str)Gates a named-area reveal call by a signed player index. |
Party
Copies the game object's container at [field] into a new ObjList wrapper. Open full entry → Global | ObjList Party()Copies the game object's container at [field] into a new ObjList wrapper. |
GetTime
GetTime takes no arguments and pushes the 32-bit game clock counter at [shared state][field], the same field that CKS Clock divides by 1000 to obtain seconds. Open full entry → Global | int GetTime()GetTime takes no arguments and pushes the 32-bit game clock counter at [shared state][field], the same field that CKS Clock divides by 1000 to obtain seconds. |
EndGame
Converts a one-based player input to a zero-based index and delegates its address with the lose flag to the game virtual method. Open full entry → Global | void EndGame(int, bool)Converts a one-based player input to a zero-based index and delegates its address with the lose flag to the game virtual method. |
IsMultiplayer
IsMultiplayer tests whether the session byte contains any set bit. Open full entry → Global | bool IsMultiplayer()IsMultiplayer tests whether the session byte contains any set bit. |
SelAvgLevel
SelAvgLevel averages eligible primary-selection values. Open full entry → Global | int SelAvgLevel()SelAvgLevel averages eligible primary-selection values. |
SelAvgFood
Computes a rounded average of the food-related field across eligible selected units and nested members. Open full entry → Global | int SelAvgFood()Computes a rounded average of the food-related field across eligible selected units and nested members. |
SelAvgStamina
SelAvgStamina averages eligible direct and nested values. Open full entry → Global | int SelAvgStamina()SelAvgStamina averages eligible direct and nested values. |
SelAvgArmor
Computes a rounded average of armor across eligible selected units and nested members. Open full entry → Global | int SelAvgArmor()Computes a rounded average of armor across eligible selected units and nested members. |
SelAvgDamage
SelAvgDamage computes an unsigned rounded selection average. Open full entry → Global | int SelAvgDamage()SelAvgDamage computes an unsigned rounded selection average. |
SelHealth
Adds together current health values for the selection, including nested objects. Open full entry → Global | int SelHealth()Adds together current health values for the selection, including nested objects. |
SelMaxHealth
Adds together maximum health values for the selection, including nested objects. Open full entry → Global | int SelMaxHealth()Adds together maximum health values for the selection, including nested objects. |
LockView
LockView sets global [field], the flag read by IsViewLocked and shared with camera-follow activation. Open full entry → Global | void LockView()LockView sets global [field], the flag read by IsViewLocked and shared with camera-follow activation. |
UnlockView
UnlockView clears global [field]. Open full entry → Global | void UnlockView()UnlockView clears global [field]. |
IsViewLocked
IsViewLocked returns whether global [field] is nonzero. Open full entry → Global | bool IsViewLocked()IsViewLocked returns whether global [field] is nonzero. |
StartViewFollow
StartViewFollow resolves the target unit and activates camera tracking by setting [shared state] at [field] to 1 and storing the unit ID at [field]. Open full entry → Global | void StartViewFollow(Unit)StartViewFollow resolves the target unit and activates camera tracking by setting [shared state] at [field] to 1 and storing the unit ID at [field]. |
StopViewFollow
Writes zero to a shared 32-bit value and the all-bits-set sentinel to a shared 16-bit value. Open full entry → Global | void StopViewFollow()Writes zero to a shared 32-bit value and the all-bits-set sentinel to a shared 16-bit value. |
StartViewFollow
Resolves a managed NamedObj packet to a live unit and conditionally installs view-follow state. Open full entry → Global | void StartViewFollow(NamedObj)Resolves a managed NamedObj packet to a live unit and conditionally installs view-follow state. |
SetDifficulty
SetDifficulty admits exactly zero one and two. Open full entry → Global | void SetDifficulty(int)SetDifficulty admits exactly zero one and two. |
GetDifficulty
GetDifficulty copies the dword at pointer field [field]. Open full entry → Global | int GetDifficulty()GetDifficulty copies the dword at pointer field [field]. |
GetMapRect
Returns the map bounds as a rectangle, in left, top, right, bottom order. Open full entry → Global | rect GetMapRect()Returns the map bounds as a rectangle, in left, top, right, bottom order. |
MapName
MapName selects inline or pointed storage at game[field] and pushes an eight-byte managed string. Open full entry → Global | str MapName()MapName selects inline or pointed storage at game[field] and pushes an eight-byte managed string. |
ChangeMap
Changes to the map whose map.xml name matches the first string. If several maps share a name, the first folder in string order is used. The first string is the map name, not the folder number. If no map has that name, "ChangeMap: No map is named …" is logged and nothing changes. The second string is not documented here. Open full entry → Global | void ChangeMap(str, str)Changes to the map whose map.xml name matches the first string. If several maps share a name, the first folder in string order is used. |
SetNextSeason
SetNextSeason stores codes3,2,1 only for complete winter,autumn,spring matches. Open full entry → Global | void SetNextSeason(str)SetNextSeason stores codes3,2,1 only for complete winter,autumn,spring matches. |
GetTeamMilitaryScore
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int GetTeamMilitaryScore(int)Description pendingDescription pending. |
GetTeamPowerScore
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int GetTeamPowerScore(int)Description pendingDescription pending. |
GetTeamAchievementsScore
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int GetTeamAchievementsScore(int)Description pendingDescription pending. |
GetTeamOverallScore
Calculates and returns the average composite score across all players on a specified team. Open full entry → Global | int GetTeamOverallScore(int)Calculates and returns the average composite score across all players on a specified team. |
GetVec
Scales a wrapped integer point difference using signed division by an integer helper return. Open full entry → Global | point GetVec(point, point, int)Scales a wrapped integer point difference using signed division by an integer helper return. |
IsPassable
Returns an inverse map bitmap bit after signed bounds checks. Open full entry → Global | bool IsPassable(point)Returns an inverse map bitmap bit after signed bounds checks. |
IsPassable3x3
Tests a point and its eight surrounding offsets through a map passability bitmap helper. Open full entry → Global | bool IsPassable3x3(point)Tests a point and its eight surrounding offsets through a map passability bitmap helper. |
BlockMiniMap
Passes an inverted script boolean to a UI control helper and stores the original byte at Game[field]. Open full entry → Global | void BlockMiniMap(bool)Passes an inverted script boolean to a UI control helper and stores the original byte at Game[field]. |
IsExplored
Forwards a point and decremented player value to the exploration receiver. Open full entry → Global | bool IsExplored(point, int)Forwards a point and decremented player value to the exploration receiver. |
SelectionGold
SelectionGold sums selected wagon subtype-zero amounts. Open full entry → Global | int SelectionGold()SelectionGold sums selected wagon subtype-zero amounts. |
SelectionFood
SelectionFood sums selected wagon subtype-one amounts. Open full entry → Global | int SelectionFood()SelectionFood sums selected wagon subtype-one amounts. |
NoTents
NoTents negates an object predicate over the map vector. Open full entry → Global | bool NoTents()NoTents negates an object predicate over the map vector. |
RandomOffset
RandomOffset calls virtual slot [field] twice on Game[field] with the pair (-r,r), then writes (second,first). Open full entry → Global | point RandomOffset(int)RandomOffset calls virtual slot [field] twice on Game[field] with the pair (-r,r), then writes (second,first). |
RandomPointInCircle
Constructs a point from radial and angular samples and clamps it to map bounds. Open full entry → Global | point RandomPointInCircle(point, int)Constructs a point from radial and angular samples and clamps it to map bounds. |
PlayMovie
PlayMovie returns the saved movie helper result as a bool. Open full entry → Global | bool PlayMovie(str)PlayMovie returns the saved movie helper result as a bool. |
Translate
Translate resolves a string through primary and fallback translation tables. Open full entry → Global | str Translate(str)Translate resolves a string through primary and fallback translation tables. |
Translatef
Selects a translation table and formats one string value against a key. Open full entry → Global | str Translatef(str, str)Selects a translation table and formats one string value against a key. |
Translatef
Translatef chooses a translation table and formats a key with two strings. Open full entry → Global | str Translatef(str, str, str)Translatef chooses a translation table and formats a key with two strings. |
Translatef
Resolves a translation key and formats it with three string arguments. Open full entry → Global | str Translatef(str, str, str, str)Resolves a translation key and formats it with three string arguments. |
SaveAdventure
SaveAdventure builds profile[field] slash payload dot-adv and forwards it on the initial phase. Open full entry → Global | void SaveAdventure(str)SaveAdventure builds profile[field] slash payload dot-adv and forwards it on the initial phase. |
WasSelectionAssigned
WasSelectionAssigned group overload tests the stored assignment mask. Open full entry → Global | bool WasSelectionAssigned(int, int)WasSelectionAssigned group overload tests the stored assignment mask. |
WasSelectionAssigned
WasSelectionAssigned player overload tests any stored assignment bit. Open full entry → Global | bool WasSelectionAssigned(int)WasSelectionAssigned player overload tests any stored assignment bit. |
IsSelectionAssigned
Validates player and selection indices and reports whether the selected selection contains any units. Open full entry → Global | bool IsSelectionAssigned(int, int)Validates player and selection indices and reports whether the selected selection contains any units. |
IsSelectionAssigned
IsSelectionAssigned player overload scans ten live counts. Open full entry → Global | bool IsSelectionAssigned(int)IsSelectionAssigned player overload scans ten live counts. |
SetGlobalBloodlust
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetGlobalBloodlust(bool)Description pendingDescription pending. |
RevealHiddenEnemyUnits
Behavior awaiting documentation. Open full entry → Global | void RevealHiddenEnemyUnits(point, int, int)Description pendingDescription pending. |
InvalidateDamageFormulaParams
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void InvalidateDamageFormulaParams()Description pendingDescription pending. |
SwapSelectedObj
Behavior awaiting documentation. Open full entry → Global | void SwapSelectedObj(Obj, Obj)Description pendingDescription pending. |
Crash
Crash attempts an absolute zero-address dword write before its normal status-zero tail. Open full entry → Global | void Crash()Crash attempts an absolute zero-address dword write before its normal status-zero tail. |
AreaCenter
Returns area coordinates selected by its geometry mode field. Open full entry → Global | point AreaCenter(str)Returns area coordinates selected by its geometry mode field. |
DisableArea
Clears a resolved area state field before a conditional thread request. Open full entry → Global | void DisableArea(str)Clears a resolved area state field before a conditional thread request. |
EnableArea
Dispatches a successfully resolved area to an enable helper. Open full entry → Global | void EnableArea(str)Dispatches a successfully resolved area to an enable helper. |
GetRandomPointInArea
Returns a helper point or a fixed pair when area lookup fails. Open full entry → Global | point GetRandomPointInArea(str)Returns a helper point or a fixed pair when area lookup fails. |
AreaDistTo
Computes a nonnegative area distance value after name resolution. Open full entry → Global | int AreaDistTo(point, str)Computes a nonnegative area distance value after name resolution. |
_AdvPlaceAreaRect
Spawns an AdvArea and forwards rectangle, name and string setup. Open full entry → Global | void _AdvPlaceAreaRect(str, rect, str, str)Spawns an AdvArea and forwards rectangle, name and string setup. |
_AdvPlaceAreaCirc
Spawns and configures a circular adventure area from script arguments. Open full entry → Global | void _AdvPlaceAreaCirc(str, point, int, str, str)Spawns and configures a circular adventure area from script arguments. |
GiveNote
Shows the player the map objective whose id matches the text, as defined in the map's Notes.xml. In play it shows a notice with an icon and the objective title. An unknown id shows nothing. The objectives window and the minimap marker were not checked. Open full entry → Global | void GiveNote(str)Shows the player the map objective whose id matches the text, as defined in the map's Notes.xml. |
RemoveNote
Converts the script name to a native string and dispatches to the note-manager removal helper. Open full entry → Global | void RemoveNote(str)Converts the script name to a native string and dispatches to the note-manager removal helper. |
ShowNotes
Dispatches a zero argument to the notes-dialog helper and returns normally. Open full entry → Global | void ShowNotes()Dispatches a zero argument to the notes-dialog helper and returns normally. |
ClearNotes
Dispatches note-tree erasure and resets its header links and logical count to the empty state. Open full entry → Global | void ClearNotes()Dispatches note-tree erasure and resets its header links and logical count to the empty state. |
IsNoteActive
Returns whether the input name has an exact case-sensitive key in the note-manager tree. Open full entry → Global | bool IsNoteActive(str)Returns whether the input name has an exact case-sensitive key in the note-manager tree. |
CreateFeedback
Resolves a Unit and a feedback class name, looks up its class template, and spawns the feedback visual/audio effect. Open full entry → Global | void CreateFeedback(str, Unit)Resolves a Unit and a feedback class name, looks up its class template, and spawns the feedback visual/audio effect. |
CreateFeedback
Resolves a unit and named class and dispatches feedback construction with the supplied duration integer. Open full entry → Global | void CreateFeedback(str, Unit, int)Resolves a unit and named class and dispatches feedback construction with the supplied duration integer. |
CreateFeedback
Constructs named feedback at a supplied point and initializes its scheduling field from the current game field. Open full entry → Global | void CreateFeedback(str, point)Constructs named feedback at a supplied point and initializes its scheduling field from the current game field. |
CreateFeedback
Constructs named feedback at a supplied point and initializes its scheduling field with the integer offset. Open full entry → Global | void CreateFeedback(str, point, int)Constructs named feedback at a supplied point and initializes its scheduling field with the integer offset. |
DiplCeaseFire
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void DiplCeaseFire(int, int, bool)Description pendingDescription pending. |
DiplShareView
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void DiplShareView(int, int, bool)Description pendingDescription pending. |
DiplShareControl
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void DiplShareControl(int, int, bool)Description pendingDescription pending. |
DiplShareSupport
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void DiplShareSupport(int, int, bool)Description pendingDescription pending. |
DiplGetCeaseFire
Evaluates whether player 1 has a ceasefire with player 2 by querying bit 0 of the player's diplomacy record. Open full entry → Global | bool DiplGetCeaseFire(int, int)Evaluates whether player 1 has a ceasefire with player 2 by querying bit 0 of the player's diplomacy record. |
DiplGetShareView
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | bool DiplGetShareView(int, int)Description pendingDescription pending. |
DiplGetShareControl
Evaluates whether player 1 has granted shared control to player 2 by querying bit 5 of the player's diplomacy record. Open full entry → Global | bool DiplGetShareControl(int, int)Evaluates whether player 1 has granted shared control to player 2 by querying bit 5 of the player's diplomacy record. |
DiplGetShareSupport
inspects diplomacy mask bit 2 to determine if two players share support. Open full entry → Global | bool DiplGetShareSupport(int, int)inspects diplomacy mask bit 2 to determine if two players share support. |
ClearDiplomacy
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void ClearDiplomacy()Description pendingDescription pending. |
RecreateExploration
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void RecreateExploration()Description pendingDescription pending. |
IsPointInWater
Evaluates whether a given map coordinate corresponds to a water terrain tile by querying the global map terrain grid. Open full entry → Global | bool IsPointInWater(point)Evaluates whether a given map coordinate corresponds to a water terrain tile by querying the global map terrain grid. |
ItemUsed
Deducts a script-supplied amount from a registry object's dword and invokes its virtual slot zero when nonpositive. Open full entry → Global | void ItemUsed(int)Deducts a script-supplied amount from a registry object's dword and invokes its virtual slot zero when nonpositive. |
GetUseCount
Returns a field from the active item's script context or zero when context resolution fails. Open full entry → Global | int GetUseCount()Returns a field from the active item's script context or zero when context resolution fails. |
GetThis
Returns the item reference stored by the current item script while its registry entry remains nonnull. Open full entry → Global | Item GetThis()Returns the item reference stored by the current item script while its registry entry remains nonnull. |
GetTerrainHeight
Clamps a world point to map bounds and samples terrain height there. Open full entry → Global | int GetTerrainHeight(point)Clamps a world point to map bounds and samples terrain height there. |
GetVecByDir
Scales an input point vector to a requested integer magnitude. Open full entry → Global | point GetVecByDir(point, int)Scales an input point vector to a requested integer magnitude. |
GetAngleByDir
GetAngleByDir forms a wrapped unsigned squared length and applies a finite-path asin/quadrant pipeline before low-dword integer conversion. Open full entry → Global | int GetAngleByDir(point)GetAngleByDir forms a wrapped unsigned squared length and applies a finite-path asin/quadrant pipeline before low-dword integer conversion. |
GetDirByAngle
Handler for this function, point GetDirByAngle(int): returns cosine and sine of a degree angle scaled by 100. Open full entry → Global | point GetDirByAngle(int)Handler for this function, point GetDirByAngle(int): returns cosine and sine of a degree angle scaled by 100. |
MapSize
Implements this function, returning the global map maximum X bound. Open full entry → Global | int MapSize()Implements this function, returning the global map maximum X bound. |
OnLeft
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | bool OnLeft(point, point)Description pendingDescription pending. |
NumSquads
NumSquads returns a per-player squad pointer-span length divided by four for input IDs 1 through 16 and zero otherwise. Open full entry → Global | int NumSquads(int)NumSquads returns a per-player squad pointer-span length divided by four for input IDs 1 through 16 and zero otherwise. |
GetSquad
Handler for this function, Squad GetSquad(int, int): packs player and index into a 4-byte Squad value. Open full entry → Global | Squad GetSquad(int, int)Handler for this function, Squad GetSquad(int, int): packs player and index into a 4-byte Squad value. |
GAIKACount
Returns the number of GAIKA records in the shared AI record range. Open full entry → Global | int GAIKACount()Returns the number of GAIKA records in the shared AI record range. |
GetGAIKA
Leaves the four-byte argument slot unchanged so that its value becomes the GAIKA result. Open full entry → Global | GAIKA GetGAIKA(int)Leaves the four-byte argument slot unchanged so that its value becomes the GAIKA result. |
GetGAIKA
Resolves an Obj handle and pushes the zero-extended low word returned by its object-position GAIKA helper. Open full entry → Global | GAIKA GetGAIKA(Obj)Resolves an Obj handle and pushes the zero-extended low word returned by its object-position GAIKA helper. |
GetGAIKA
Obtains the GAIKA value associated with the point's coordinates in the AI map. Returns zero if that AI map is unavailable. The result is obtained from an unsigned 16-bit value. Zero is a default return value in the case described, but it has not been established as a universally invalid GAIKA. Map topology and complete behavior for coordinates outside its bounds are not documented here. Open full entry → Global | GAIKA GetGAIKA(point)Obtains the GAIKA value associated with the point's coordinates in the AI map. Returns zero if that AI map is unavailable. |
GetGAIKA
Resolves two integer coordinates through the global AI map and returns a zero-extended 16-bit GAIKA value. Open full entry → Global | GAIKA GetGAIKA(int, int)Resolves two integer coordinates through the global AI map and returns a zero-extended 16-bit GAIKA value. |
LAIKA
Returns the first 16-bit value of the selected AI entry after checked player and index lookup, or zero on failure. Open full entry → Global | GAIKA LAIKA(int, int)Returns the first 16-bit value of the selected AI entry after checked player and index lookup, or zero on failure. |
SetNoAttack
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetNoAttack(str, int, bool)Description pendingDescription pending. |
SetNoRecruit
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetNoRecruit(str, int, bool)Description pendingDescription pending. |
AreaAINoRecruit
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AreaAINoRecruit(str, int, bool)Description pendingDescription pending. |
AreaAINoAttack
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AreaAINoAttack(str, int, bool)Description pendingDescription pending. |
AreaAIMaxPriority
Applies priority 100 or -1 to player AI records whose points lie inside a named area. Open full entry → Global | void AreaAIMaxPriority(str, int, bool)Applies priority 100 or -1 to player AI records whose points lie inside a named area. |
AreaAISetAttackOptimism
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AreaAISetAttackOptimism(str, int, int)Description pendingDescription pending. |
SetMAIKA
Validates three distinct GAIKA identifiers and delegates a relation update to the global AI context. Open full entry → Global | void SetMAIKA(GAIKA, GAIKA, GAIKA)Validates three distinct GAIKA identifiers and delegates a relation update to the global AI context. |
DumpMAIKA
DumpMAIKA filters and visits six-byte route records. Open full entry → Global | void DumpMAIKA(int, int, int)DumpMAIKA filters and visits six-byte route records. |
SettlementCount
SettlementCount counts class-matching settlements below a strict unsigned metric threshold. Open full entry → Global | int SettlementCount(point, int, str)SettlementCount counts class-matching settlements below a strict unsigned metric threshold. |
FindRuins
Scans settlement slots and returns the last randomly accepted matching ruins handle. Open full entry → Global | Obj FindRuins(point, int, int)Scans settlement slots and returns the last randomly accepted matching ruins handle. |
AttackSetForTraining
Selects a prioritized nearby training target and queues approach and engagement commands. Open full entry → Global | bool AttackSetForTraining(Obj, point, int)Selects a prioritized nearby training target and queues approach and engagement commands. |
AIRun
Starts a named AI script task in the current player context and returns its task identifier or -1. Open full entry → Global | int AIRun(str)Starts a named AI script task in the current player context and returns its task identifier or -1. |
AIRun
Starts a typed AI script task in the current script player's AI context and returns its task identifier. Open full entry → Global | int AIRun(str, Settlement, ObjList, Obj, int)Starts a typed AI script task in the current script player's AI context and returns its task identifier. |
AIRun
Attempts to start an AI script task for the supplied one-based player and returns its task identifier or -1. Open full entry → Global | int AIRun(int, str, Settlement, ObjList, Obj, int)Attempts to start an AI script task for the supplied one-based player and returns its task identifier or -1. |
AIBreakScript
Checks the current script player's AI context and delegates the input script ID to an AI break helper. Open full entry → Global | void AIBreakScript(int)Checks the current script player's AI context and delegates the input script ID to an AI break helper. |
AIBreakScript
Routes an interruption request for the identified script to the specified player's AI system. Arguments are the player number followed by the script ID. The request is routed when the corresponding AI context exists. Immediate interruption and effects on pending scripts or tasks are not documented. The player-number check does not cover every invalid value; use valid player numbers. Open full entry → Global | void AIBreakScript(int, int)Routes an interruption request for the identified script to the specified player's AI system. Arguments are the player number followed by the script ID. |
AIExecCmd
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AIExecCmd(Obj, str)Description pendingDescription pending. |
IsAIShow
IsAIShow physically pushes one equality byte. Open full entry → Global | void IsAIShow()IsAIShow physically pushes one equality byte. |
ScrollTo
Uses a persistent blocking frame to interpolate a projected viewport center and schedule retries. Open full entry → Global | void ScrollTo(point, int)Uses a persistent blocking frame to interpolate a projected viewport center and schedule retries. |
GetGaikaCenter
Returns the point fields of a record selected by the low 16 bits of the input. Open full entry → Global | point GetGaikaCenter(int)Returns the point fields of a record selected by the low 16 bits of the input. |
GetSquadCenter
Averages resolved squad-member coordinates using unsigned division by the stored total count. Open full entry → Global | point GetSquadCenter(int, int)Averages resolved squad-member coordinates using unsigned division by the stored total count. |
SetToIdx
SetToIdx reads the resolved Settlement slot-index field. Open full entry → Global | int SetToIdx(Settlement)SetToIdx reads the resolved Settlement slot-index field. |
IdxToSet
IdxToSet returns the handle ID from an indexed global-map settlement pointer, or a null handle for an invalid or empty slot. Open full entry → Global | Settlement IdxToSet(int)IdxToSet returns the handle ID from an indexed global-map settlement pointer, or a null handle for an invalid or empty slot. |
MaxSetIdx
Handler for this function, int MaxSetIdx(): returns the number of settlement slots. Open full entry → Global | int MaxSetIdx()Handler for this function, int MaxSetIdx(): returns the number of settlement slots. |
AIH_UnitBuilt
Resolves the Unit operand and dispatches the resulting pointer to a native AI hook. Open full entry → Global | void AIH_UnitBuilt(Unit)Resolves the Unit operand and dispatches the resulting pointer to a native AI hook. |
AIGetPlayer
Returns the current script AI player index plus one. Open full entry → Global | int AIGetPlayer()Returns the current script AI player index plus one. |
AIO_SendSquad
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AIO_SendSquad(int, int, int)Description pendingDescription pending. |
AIO_Train
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AIO_Train(int, str, int, int)Description pendingDescription pending. |
ViewSlot
Returns viewport midpoint coordinates divided by128 while discarding the terrain-conversion output. Open full entry → Global | point ViewSlot()Returns viewport midpoint coordinates divided by128 while discarding the terrain-conversion output. |
Squadize
CKS scripting primitive wrapper exposing Squadize(ObjList ol, SquadList *sl, int nState) to scenario and AI scripts. Open full entry → Global | void Squadize(ObjList, SquadList, int)CKS scripting primitive wrapper exposing Squadize(ObjList ol, SquadList *sl, int nState) to scenario and AI scripts. |
IsResearched
CKS scripting primitive evaluating whether a technology or upgrade has been researched, supporting both settlement-anchored and player-direct overloads. Open full entry → Global | bool IsResearched(Settlement, str)CKS scripting primitive evaluating whether a technology or upgrade has been researched, supporting both settlement-anchored and player-direct overloads. |
IsResearched
CKS scripting primitive evaluating whether a technology or upgrade has been researched, supporting both settlement-anchored and player-direct overloads. Open full entry → Global | bool IsResearched(int, str)CKS scripting primitive evaluating whether a technology or upgrade has been researched, supporting both settlement-anchored and player-direct overloads. |
IsResearching
CKS scripting primitive reporting whether a technology or upgrade is currently in the "researching" state, with a settlement-anchored overload and a player-direct overload. Open full entry → Global | bool IsResearching(Settlement, str)CKS scripting primitive reporting whether a technology or upgrade is currently in the "researching" state, with a settlement-anchored overload and a player-direct overload. |
IsResearching
CKS scripting primitive reporting whether a technology or upgrade is currently in the "researching" state, with a settlement-anchored overload and a player-direct overload. Open full entry → Global | bool IsResearching(int, str)CKS scripting primitive reporting whether a technology or upgrade is currently in the "researching" state, with a settlement-anchored overload and a player-direct overload. |
GetCmdCost
Looks up a named command and writes its gold and food cost fields to output references. Open full entry → Global | bool GetCmdCost(str, int, int)Looks up a named command and writes its gold and food cost fields to output references. |
GetCmdStaminaCost
Resolves the order descriptor for a command name string and returns its required stamina cost from offset [field]. Open full entry → Global | int GetCmdStaminaCost(str)Resolves the order descriptor for a command name string and returns its required stamina cost from offset [field]. |
MilUnits
Counts eligible military units for a one-based player through the squad collection helper. Open full entry → Global | int MilUnits(int)Counts eligible military units for a one-based player through the squad collection helper. |
HeroArmiesFullPerc
Computes a signed ratio from the second and third outputs of the player collection helper. Open full entry → Global | int HeroArmiesFullPerc(int)Computes a signed ratio from the second and third outputs of the player collection helper. |
MilEval
Returns a masked collection sum of squad dwords at [field]. Open full entry → Global | int MilEval(int)Returns a masked collection sum of squad dwords at [field]. |
AllyMilUnits
Sums the unit helper across player slots whose relation result is not four. Open full entry → Global | int AllyMilUnits(int)Sums the unit helper across player slots whose relation result is not four. |
AllyMilEval
Sums squad evaluation dwords across player slots whose relation result is not four. Open full entry → Global | int AllyMilEval(int)Sums squad evaluation dwords across player slots whose relation result is not four. |
EnemyMilUnits
Sums the unit helper across player slots whose relation result equals four. Open full entry → Global | int EnemyMilUnits(int)Sums the unit helper across player slots whose relation result equals four. |
EnemyMilEval
Sums squad evaluation dwords across player slots whose relation result equals four. Open full entry → Global | int EnemyMilEval(int)Sums squad evaluation dwords across player slots whose relation result equals four. |
EnemyPlayersEval
EnemyPlayersEval initializes and conditionally writes three outputs. Open full entry → Global | int EnemyPlayersEval(int, int, int, int)EnemyPlayersEval initializes and conditionally writes three outputs. |
Strongholds
Strongholds counts same-owner settlements with BaseTownhall central buildings. Open full entry → Global | int Strongholds(int)Strongholds counts same-owner settlements with BaseTownhall central buildings. |
AllyStrongholds
AllyStrongholds counts BaseTownhall settlements with numeric relation different from four. Open full entry → Global | int AllyStrongholds(int)AllyStrongholds counts BaseTownhall settlements with numeric relation different from four. |
EnemyStrongholds
Counts hostile town halls for a requested player while excluding owner id fourteen. Open full entry → Global | int EnemyStrongholds(int)Counts hostile town halls for a requested player while excluding owner id fourteen. |
Villages
Villages counts same-owner settlements with BaseVillage central buildings. Open full entry → Global | int Villages(int)Villages counts same-owner settlements with BaseVillage central buildings. |
AllyVillages
AllyVillages counts BaseVillage settlements with numeric relation different from four. Open full entry → Global | int AllyVillages(int)AllyVillages counts BaseVillage settlements with numeric relation different from four. |
EnemyVillages
EnemyVillages counts BaseVillage settlements with relation four and owner different from fourteen. Open full entry → Global | int EnemyVillages(int)EnemyVillages counts BaseVillage settlements with relation four and owner different from fourteen. |
Outposts
Counts live Outpost-class map objects, optionally filtered by player. Open full entry → Global | int Outposts(int)Counts live Outpost-class map objects, optionally filtered by player. |
AllyOutposts
AllyOutposts counts Outpost settlements with numeric relation different from four. Open full entry → Global | int AllyOutposts(int)AllyOutposts counts Outpost settlements with numeric relation different from four. |
EnemyOutposts
EnemyOutposts counts Outpost settlements with relation four and owner different from fourteen. Open full entry → Global | int EnemyOutposts(int)EnemyOutposts counts Outpost settlements with relation four and owner different from fourteen. |
Count
Count looks up a class count in a player's indexed collection. Open full entry → Global | int Count(int, str)Count looks up a class count in a player's indexed collection. |
AllyCount
AllyCount sums class counts for relation codes other than four. Open full entry → Global | int AllyCount(int, str)AllyCount sums class counts for relation codes other than four. |
EnemyCount
EnemyCount sums class counts for relation code four. Open full entry → Global | int EnemyCount(int, str)EnemyCount sums class counts for relation code four. |
LSA
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int LSA(int, int)Description pendingDescription pending. |
LSA
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int LSA(point)Description pendingDescription pending. |
CheckLsaPath
Checks whether there is a path between two search areas (LSA) for a player. Returns 1 when both LSAs are the same and 0 when they are of different types. The third argument is the player number counted from 1. The result for two different LSAs of the same type has not been observed. Open full entry → Global | int CheckLsaPath(int, int, int)Checks whether there is a path between two search areas (LSA) for a player. Returns 1 when both LSAs are the same and 0 when they are of different types. |
Ships
Reads a 32-bit value from the AI table using the LSA and player indices. The value meaning is not documented. Open full entry → Global | int Ships(int, int)Reads a 32-bit value from the AI table using the LSA and player indices. The value meaning is not documented. |
EnemyShips
Returns the relation-four sum of the selected AI row's sixteen dword cells. Open full entry → Global | int EnemyShips(int, int)Returns the relation-four sum of the selected AI row's sixteen dword cells. |
AllyShips
Returns the relation-two sum of the selected AI row's sixteen dword cells. Open full entry → Global | int AllyShips(int, int)Returns the relation-two sum of the selected AI row's sixteen dword cells. |
ShipNeeds
Reads a 32-bit value from the AI table using the LSA and player indices. The value meaning is not documented. Open full entry → Global | int ShipNeeds(int, int)Reads a 32-bit value from the AI table using the LSA and player indices. The value meaning is not documented. |
ClrShipNeeds
ClrShipNeeds writes zero to the global-AI ship-needs cell selected by lsa and player indices. Open full entry → Global | void ClrShipNeeds(int, int)ClrShipNeeds writes zero to the global-AI ship-needs cell selected by lsa and player indices. |
IncShipNeeds
IncShipNeeds increments the global-AI ship-needs cell selected by lsa and player indices. Open full entry → Global | void IncShipNeeds(int, int)IncShipNeeds increments the global-AI ship-needs cell selected by lsa and player indices. |
IsWaterLsa
Handler for this function, bool IsWaterLsa(int lsa): tests whether an lsa region is water-majority. Open full entry → Global | bool IsWaterLsa(int)Handler for this function, bool IsWaterLsa(int lsa): tests whether an lsa region is water-majority. |
AIAssist
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AIAssist()Description pendingDescription pending. |
AIStart
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AIStart(int)Description pendingDescription pending. |
AIStart
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AIStart(int, str)Description pendingDescription pending. |
AIStart
Validates a player, AI profile, and difficulty before replacing that player's AI controller. Open full entry → Global | void AIStart(int, str, int)Validates a player, AI profile, and difficulty before replacing that player's AI controller. |
AIStop
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void AIStop(int)Description pendingDescription pending. |
NearestHospital
Scores eligible friendly hospital strongholds for a squad and returns the best GAIKA index. Open full entry → Global | GAIKA NearestHospital(Squad)Scores eligible friendly hospital strongholds for a squad and returns the best GAIKA index. |
NearestStronghold
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | Settlement NearestStronghold(point, int, int)Description pendingDescription pending. |
NearestStronghold
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | Settlement NearestStronghold(point, int)Description pendingDescription pending. |
NearestStronghold
NearestStronghold point overload selects the unfiltered BaseTownhall search. Open full entry → Global | Settlement NearestStronghold(point)NearestStronghold point overload selects the unfiltered BaseTownhall search. |
NearestSet
NearestSet four-argument overload forwards the class, decremented player and supplied relation mask. Open full entry → Global | Settlement NearestSet(point, str, int, int)NearestSet four-argument overload forwards the class, decremented player and supplied relation mask. |
NearestSet
NearestSet three-argument overload forwards the class, decremented player and fixed mask one. Open full entry → Global | Settlement NearestSet(point, str, int)NearestSet three-argument overload forwards the class, decremented player and fixed mask one. |
NearestSet
NearestSet point overload searches the Building central-building class without player filtering. Open full entry → Global | Settlement NearestSet(point)NearestSet point overload searches the Building central-building class without player filtering. |
GetSettlements
Builds an ObjList of map settlements selected by owner and central-building class. Open full entry → Global | ObjList GetSettlements(str, int)Builds an ObjList of map settlements selected by owner and central-building class. |
PrepareAiTransportShip
PrepareAiTransportShip conditionally builds an eight-byte handle result. Open full entry → Global | Ship PrepareAiTransportShip(int, int, int, str, point)PrepareAiTransportShip conditionally builds an eight-byte handle result. |
CheckLP
CheckLP calls the graph helper with fixed node indices 3 and 1, mode 1, an empty string and two minus-one values, then discards its result. ⚠ Only partly documented so far. Open full entry → Global | void CheckLP()CheckLP calls the graph helper with fixed node indices 3 and 1, mode 1, an empty string and two minus-one values, then discards its result. |
SendSquadToLsaX
SendSquadToLsaX retains a selected-unit pointer as a sixth order operand. Open full entry → Global | void SendSquadToLsaX()SendSquadToLsaX retains a selected-unit pointer as a sixth order operand. |
GetMouseXY
Prints widened signed mouse coordinates after calling a terrain conversion whose output is unused. Open full entry → Global | void GetMouseXY()Prints widened signed mouse coordinates after calling a terrain conversion whose output is unused. |
RUType
Maps a class-name string to its zero-based entry in a race-specific six-name recruitable-unit table. Open full entry → Global | int RUType(str, int)Maps a class-name string to its zero-based entry in a race-specific six-name recruitable-unit table. |
UType
Looks up a managed unit-type string by type and race indices. Open full entry → Global | str UType(int, int)Looks up a managed unit-type string by type and race indices. |
UTech
Selects a string from a race-indexed technology table and returns it as a managed CKS string. Open full entry → Global | str UTech(int, int)Selects a string from a race-indexed technology table and returns it as a managed CKS string. |
UTrainCmd
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | str UTrainCmd(int, int)Description pendingDescription pending. |
UEnabled
Handler for this function, bool UEnabled(int mask, int bit): tests one bit of a mask. Open full entry → Global | bool UEnabled(int, int)Handler for this function, bool UEnabled(int mask, int bit): tests one bit of a mask. |
CheckUEnabled
CheckUEnabled updates an output bit mask from a unit-class count and threshold. Open full entry → Global | bool CheckUEnabled(int, int, int, int, int)CheckUEnabled updates an output bit mask from a unit-class count and threshold. |
FindTeleport
Finds the shortest usable teleport connection between source and destination regions for a player. Open full entry → Global | Obj FindTeleport(int, point, point)Finds the shortest usable teleport connection between source and destination regions for a player. |
Eval
Resolves three referenced output integers, delegates a spatial query, and writes its three results. Open full entry → Global | void Eval(int, point, int, int, int, int)Resolves three referenced output integers, delegates a spatial query, and writes its three results. |
EvalGroup
Adds up the evaluation of the live units in the group named by the text. Returns 0 if the group does not exist, without creating it. Only objects still on the map count. The meaning of the evaluation value is not documented here. Open full entry → Global | int EvalGroup(str)Adds up the evaluation of the live units in the group named by the text. Returns 0 if the group does not exist, without creating it. |
IsProtected
IsProtected clamps coordinates and normalizes a local query flag. Open full entry → Global | bool IsProtected(int, point, str)IsProtected clamps coordinates and normalizes a local query flag. |
NeedTraining
Compares a player's sampled unit-level average with a threshold derived from allied players' sampled armies. Open full entry → Global | bool NeedTraining(int)Compares a player's sampled unit-level average with a threshold derived from allied players' sampled armies. |
GetCounterUnits
Tries indexed AI candidates and dispatches a settlement fallback into the resolved integer-array destination. Open full entry → Global | void GetCounterUnits(Settlement, IntArray)Tries indexed AI candidates and dispatches a settlement fallback into the resolved integer-array destination. |
GetClassHealt
Looks up a class by name and returns its class health value. Returns 0 when no class has that name. The name is spelled "Healt". A result of 0 tells that a class is not loaded; for example, a script can check that a hero class exists before changing maps. It is not a general class-lookup API, and the full health computation is not documented. Open full entry → Global | int GetClassHealt(str)Looks up a class by name and returns its class health value. Returns 0 when no class has that name. |
GetTrainGold
Resolves a unit class name through the command order registry and returns the training gold cost at [field]. Open full entry → Global | int GetTrainGold(str)Resolves a unit class name through the command order registry and returns the training gold cost at [field]. |
IsAIPlayer
IsAIPlayer returns true for player ids 1 through 16 whose selected player record has a non-null AI pointer, otherwise false. Open full entry → Global | bool IsAIPlayer(int)IsAIPlayer returns true for player ids 1 through 16 whose selected player record has a non-null AI pointer, otherwise false. |
SetNoAIFlag
The handler traverses the supplied ObjList. Open full entry → Global | void SetNoAIFlag(ObjList, bool)The handler traverses the supplied ObjList. |
ArenaTrainCmd
Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. Open full entry → Global | str ArenaTrainCmd(int)Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. |
ArenaUTech
Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. Open full entry → Global | str ArenaUTech(int)Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. |
ArenaUType
Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. Open full entry → Global | str ArenaUType(int)Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. |
TempleUType
Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. Open full entry → Global | str TempleUType(int)Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. |
TempleUTrain
Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. Open full entry → Global | str TempleUTrain(int)Selects a native string pointer by a signed index and builds an eight-byte managed script-string result. |
SelSquad
SelSquad without arguments submits the primary objects squad members. Open full entry → Global | void SelSquad()SelSquad without arguments submits the primary objects squad members. |
SelSquad
SelSquad player-index overload submits resolved squad members. Open full entry → Global | void SelSquad(int, int)SelSquad player-index overload submits resolved squad members. |
SelSquadLeader
SelSquadLeader submits the resolved first squad member. Open full entry → Global | void SelSquadLeader()SelSquadLeader submits the resolved first squad member. |
Breakpoint
The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. Open full entry → Global | void Breakpoint()The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. |
PrGAIKAStrat
PrGAIKAStrat formats the named strategy query result. Open full entry → Global | void PrGAIKAStrat(GAIKA, int)PrGAIKAStrat formats the named strategy query result. |
ViewGAIKA
ViewGAIKA queries the converted viewport midpoint. Open full entry → Global | GAIKA ViewGAIKA()ViewGAIKA queries the converted viewport midpoint. |
vg
vg requests camera centering and diagnostics for a narrowed GAIKA. Open full entry → Global | void vg(int)vg requests camera centering and diagnostics for a narrowed GAIKA. |
SS_STR
SS_STR allocates a string for a signed state selector. Open full entry → Global | str SS_STR(int)SS_STR allocates a string for a signed state selector. |
GS_STR
GS_STR allocates a string for a signed strategy selector. Open full entry → Global | str GS_STR(int)GS_STR allocates a string for a signed strategy selector. |
AIV
AIV integer overload passes a decremented player and empty prefix. Open full entry → Global | void AIV(int)AIV integer overload passes a decremented player and empty prefix. |
AIV
AIV string overload unlinks and releases its prefix operand. Open full entry → Global | void AIV(int, str)AIV string overload unlinks and releases its prefix operand. |
DbgAI
DbgAI formats an AI profile under an upper-only player gate. Open full entry → Global | void DbgAI(int)DbgAI formats an AI profile under an upper-only player gate. |
DbgArmy
DbgArmy queries fifty class names and prints nonzero results. Open full entry → Global | void DbgArmy(int)DbgArmy queries fifty class names and prints nonzero results. |
dp
Emits priority notifications for a bounded prefix of the local player's AI records. Open full entry → Global | void dp(int)Emits priority notifications for a bounded prefix of the local player's AI records. |
LsaStr
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | str LsaStr(int)Description pendingDescription pending. |
AIVar
AIVar returns the selected player AI variable when its player, index, record and table checks pass, otherwise zero. Open full entry → Global | int AIVar(int, int)AIVar returns the selected player AI variable when its player, index, record and table checks pass, otherwise zero. |
AIVar
Three-argument AIVar returns whether a selected bit is set in an indexed AI variable word after guarded player and variable lookup. Open full entry → Global | bool AIVar(int, int, int)Three-argument AIVar returns whether a selected bit is set in an indexed AI variable word after guarded player and variable lookup. |
SetAIVar
SetAIVar updates the selected player AI variable when its player, index, record and table checks pass, discarding the write otherwise. Open full entry → Global | void SetAIVar(int, int, int)SetAIVar updates the selected player AI variable when its player, index, record and table checks pass, discarding the write otherwise. |
SetAIVar
SetAIVar sets or clears bit (bit argument modulo 32) in an indexed dword reached through the selected player record. Open full entry → Global | void SetAIVar(int, int, int, bool)SetAIVar sets or clears bit (bit argument modulo 32) in an indexed dword reached through the selected player record. |
AIRun
Native adapter for this function resolving a player script and dispatching 0 integer arguments. Open full entry → Global | void AIRun(int, str)Native adapter for this function resolving a player script and dispatching 0 integer arguments. |
AIRun
Native adapter for this function resolving a player script and dispatching 1 integer arguments. Open full entry → Global | void AIRun(int, str, int)Native adapter for this function resolving a player script and dispatching 1 integer arguments. |
AIRun
Native adapter for this function resolving a player script and dispatching 2 integer arguments. Open full entry → Global | void AIRun(int, str, int, int)Native adapter for this function resolving a player script and dispatching 2 integer arguments. |
AIRun
Native adapter for this function resolving a player script and dispatching 3 integer arguments. Open full entry → Global | void AIRun(int, str, int, int, int)Native adapter for this function resolving a player script and dispatching 3 integer arguments. |
AIRun
Native adapter for this function resolving a player script and dispatching 4 integer arguments. Open full entry → Global | void AIRun(int, str, int, int, int, int)Native adapter for this function resolving a player script and dispatching 4 integer arguments. |
AIRun
Native adapter for this function resolving a player script and dispatching 5 integer arguments. Open full entry → Global | void AIRun(int, str, int, int, int, int, int)Native adapter for this function resolving a player script and dispatching 5 integer arguments. |
AIIRun
Native adapter for this function resolving a player script and dispatching 0 integer arguments. Open full entry → Global | int AIIRun(int, str)Native adapter for this function resolving a player script and dispatching 0 integer arguments. |
AIIRun
Native adapter for this function resolving a player script and dispatching 1 integer arguments. Open full entry → Global | int AIIRun(int, str, int)Native adapter for this function resolving a player script and dispatching 1 integer arguments. |
AIIRun
Native adapter for this function resolving a player script and dispatching 2 integer arguments. Open full entry → Global | int AIIRun(int, str, int, int)Native adapter for this function resolving a player script and dispatching 2 integer arguments. |
AIIRun
Native adapter for this function resolving a player script and dispatching 3 integer arguments. Open full entry → Global | int AIIRun(int, str, int, int, int)Native adapter for this function resolving a player script and dispatching 3 integer arguments. |
AIIRun
Native adapter for this function resolving a player script and dispatching 4 integer arguments. Open full entry → Global | int AIIRun(int, str, int, int, int, int)Native adapter for this function resolving a player script and dispatching 4 integer arguments. |
AIIRun
Native adapter for this function resolving a player script and dispatching 5 integer arguments. Open full entry → Global | int AIIRun(int, str, int, int, int, int, int)Native adapter for this function resolving a player script and dispatching 5 integer arguments. |
AppendFile
Retries opening a filename and dispatches content through stream virtual methods. Open full entry → Global | void AppendFile(str, str)Retries opening a filename and dispatches content through stream virtual methods. |
pr
Displays the supplied text in the in-game message log and chat window. Open full entry → Global | void pr(str)Displays the supplied text in the in-game message log and chat window. |
pr
Displays an integer as a decimal number in the game's chat. Open full entry → Global | void pr(int)Displays an integer as a decimal number in the game's chat. |
pr
Displays true or false in the game's chat. Open full entry → Global | void pr(bool)Displays true or false in the game's chat. |
cls
Invokes a clearing operation on a field of the game state. Open full entry → Global | void cls()Invokes a clearing operation on a field of the game state. |
quit
Dispatches game vtable slot [field] and returns normal interpreter status if the call returns. Open full entry → Global | void quit()Dispatches game vtable slot [field] and returns normal interpreter status if the call returns. |
switch
Requests the editor test transition through a helper that writes one to its flag. Open full entry → Global | void switch()Requests the editor test transition through a helper that writes one to its flag. |
_Black
Sets one global dword and dispatches two UI virtual operations. Open full entry → Global | void _Black()Sets one global dword and dispatches two UI virtual operations. |
_Place
Routes class creation, template validation and player-zero placement from console arguments. Open full entry → Global | void _Place(str, int, int)Routes class creation, template validation and player-zero placement from console arguments. |
_InvalidateAllToggle
Invalidation toggle primitives normalize their dword globals by a zero test. Open full entry → Global | void _InvalidateAllToggle()Invalidation toggle primitives normalize their dword globals by a zero test. |
_ToggleInvRects
Invalidation toggle primitives normalize their dword globals by a zero test. Open full entry → Global | void _ToggleInvRects()Invalidation toggle primitives normalize their dword globals by a zero test. |
_SetCursor
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void _SetCursor(str)Description pendingDescription pending. |
ProfileStart
ProfileStart forwards the profiling start request. Open full entry → Global | void ProfileStart()ProfileStart forwards the profiling start request. |
ProfileStop
ProfileStop forwards the profiling stop request. Open full entry → Global | void ProfileStop()ProfileStop forwards the profiling stop request. |
PerlinTest
The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. Open full entry → Global | void PerlinTest()The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. |
ShrinkEntities
ShrinkEntities invokes one worker and returns status zero. Open full entry → Global | void ShrinkEntities()ShrinkEntities invokes one worker and returns status zero. |
ReloadConstIni
ReloadConstIni delegates two operations with the constant filename. Open full entry → Global | void ReloadConstIni()ReloadConstIni delegates two operations with the constant filename. |
BuildSPF
Calls [field] and returns native status zero without accessing the VM cursor. Open full entry → Global | void BuildSPF()Calls [field] and returns native status zero without accessing the VM cursor. |
BuildRLEMMap
Calls [field] and returns native status zero without accessing the VM cursor. Open full entry → Global | void BuildRLEMMap()Calls [field] and returns native status zero without accessing the VM cursor. |
PrintMemStats
PrintMemStats formats current and saved counters. Open full entry → Global | void PrintMemStats()PrintMemStats formats current and saved counters. |
DumpObj
DumpObj preserves a five-byte modal packet while returning one. Open full entry → Global | void DumpObj()DumpObj preserves a five-byte modal packet while returning one. |
ConvTerrains
Rewrites packed terrain cells across the map through a fixed sixteen-entry conversion table. Open full entry → Global | void ConvTerrains()Rewrites packed terrain cells across the map through a fixed sixteen-entry conversion table. |
CheckClasses
CheckClasses dispatches the class registry and diagnostic callback. Open full entry → Global | void CheckClasses()CheckClasses dispatches the class registry and diagnostic callback. |
MakePassable
Clears one packed map bit per sixteen-unit interior coordinate and returns native status zero. Open full entry → Global | void MakePassable()Clears one packed map bit per sixteen-unit interior coordinate and returns native status zero. |
SetPlayer
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetPlayer(int)Description pendingDescription pending. |
CurPlayer
Behavior awaiting documentation. Open full entry → Global | int CurPlayer()Description pendingDescription pending. |
ToggleFog
Constructs a twelve-byte fog command and sends it through the game command entry. Open full entry → Global | void ToggleFog()Constructs a twelve-byte fog command and sends it through the game command entry. |
SetFog
Normalizes one VM boolean into a sixteen-byte command payload. Open full entry → Global | void SetFog(bool)Normalizes one VM boolean into a sixteen-byte command payload. |
ExploreAll
Forwards the map subobject at [field] to one engine call. Open full entry → Global | void ExploreAll()Forwards the map subobject at [field] to one engine call. |
Invalidate
Behavior awaiting documentation. Open full entry → Global | void Invalidate()Description pendingDescription pending. |
Render
Invokes virtual slot [field] on the global view receiver. Open full entry → Global | void Render()Invokes virtual slot [field] on the global view receiver. |
ScreenShot
Behavior awaiting documentation. Open full entry → Global | void ScreenShot()Description pendingDescription pending. |
ActivateScreenShots
ActivateScreenShots preserves a nine-byte retry packet until stop. Open full entry → Global | void ActivateScreenShots(int)ActivateScreenShots preserves a nine-byte retry packet until stop. |
ToggleScreenShots
ToggleScreenShots requests stop or compiles an activation call. Open full entry → Global | void ToggleScreenShots(int)ToggleScreenShots requests stop or compiles an activation call. |
DebugSelected
DebugSelected formats selection and script diagnostics. Open full entry → Global | void DebugSelected()DebugSelected formats selection and script diagnostics. |
Save
The no-argument Save and Load adapters construct test.svg and route it to distinct helpers. Open full entry → Global | void Save()The no-argument Save and Load adapters construct test.svg and route it to distinct helpers. |
ExportObjs
Selects a filename and routes a temporary map context to the object export worker. Open full entry → Global | void ExportObjs(str)Selects a filename and routes a temporary map context to the object export worker. |
ExportTerrain
Selects a filename and routes a temporary map context to the terrain save wrapper. Open full entry → Global | void ExportTerrain(str)Selects a filename and routes a temporary map context to the terrain save wrapper. |
Load
The no-argument Save and Load adapters construct test.svg and route it to distinct helpers. Open full entry → Global | void Load()The no-argument Save and Load adapters construct test.svg and route it to distinct helpers. |
Save
Named Save and Load prefix Scenarios/ under a nonzero global or append.svg when no dot is present. Open full entry → Global | void Save(str)Named Save and Load prefix Scenarios/ under a nonzero global or append.svg when no dot is present. |
Load
Named Save and Load prefix Scenarios/ under a nonzero global or append.svg when no dot is present. Open full entry → Global | void Load(str)Named Save and Load prefix Scenarios/ under a nonzero global or append.svg when no dot is present. |
ChMap
ChMap consumes its script string and forwards its unchanged payload to [field]. Open full entry → Global | void ChMap(str)ChMap consumes its script string and forwards its unchanged payload to [field]. |
MousePos
Prints the signed word pair from the input-interface position query. Open full entry → Global | void MousePos()Prints the signed word pair from the input-interface position query. |
Conv
Allocates a conversation object and passes the fixed test name to its setup worker. Open full entry → Global | void Conv()Allocates a conversation object and passes the fixed test name to its setup worker. |
ToggleVis
Selects one of two receiver calls and normalizes the selector to its zero test. Open full entry → Global | void ToggleVis()Selects one of two receiver calls and normalizes the selector to its zero test. |
Spawn
Attempts independent argument-sized square grids for players zero and one, then centers a terrain-adjusted point. Open full entry → Global | void Spawn(int, int)Attempts independent argument-sized square grids for players zero and one, then centers a terrain-adjusted point. |
RemoveDecors
Routes a calculated packed-grid extent to zero fill and then processes the viewport refresh path. Open full entry → Global | void RemoveDecors()Routes a calculated packed-grid extent to zero fill and then processes the viewport refresh path. |
Explorer
Selects complementary mask2 argument triples for the control style helper. Open full entry → Global | void Explorer()Selects complementary mask2 argument triples for the control style helper. |
Dlg
Constructs a menu object and routes a managed name plus fixed layout arguments to virtual calls. Open full entry → Global | void Dlg(str)Constructs a menu object and routes a managed name plus fixed layout arguments to virtual calls. |
DumpStats
DumpStats resolves an Obj and formats its unit statistics. Open full entry → Global | void DumpStats(Obj)DumpStats resolves an Obj and formats its unit statistics. |
sel
Returns an ObjList refreshed from the selection source selected by global state. Open full entry → Global | ObjList sel()Returns an ObjList refreshed from the selection source selected by global state. |
selo
Selects a candidate, checks that it supports the script-object interface and returns its encoded object reference. Open full entry → Global | Obj selo()Selects a candidate, checks that it supports the script-object interface and returns its encoded object reference. |
selu
Returns the currently selected unit handle, or the null handle when the selected object is not a unit. Open full entry → Global | Unit selu()Returns the currently selected unit handle, or the null handle when the selected object is not a unit. |
selh
Selects a candidate with a particular flag and returns its encoded hero reference. Open full entry → Global | Hero selh()Selects a candidate with a particular flag and returns its encoded hero reference. |
selb
Selects a candidate with a particular flag and returns its encoded building reference. Open full entry → Global | Building selb()Selects a candidate with a particular flag and returns its encoded building reference. |
sels
Returns the settlement associated with the currently selected settlement object, or the null handle. Open full entry → Global | Settlement sels()Returns the settlement associated with the currently selected settlement object, or the null handle. |
selsq
Selects a candidate with a particular flag and returns its squad selector extended with zero bits. Open full entry → Global | Squad selsq()Selects a candidate with a particular flag and returns its squad selector extended with zero bits. |
selg
Routes a selected candidate through direct GAIKA helpers or coordinate fallback and pushes a narrowed selector. Open full entry → Global | GAIKA selg()Routes a selected candidate through direct GAIKA helpers or coordinate fallback and pushes a narrowed selector. |
Desync
Desync passes a diagnostic file object through two virtual calls. Open full entry → Global | void Desync()Desync passes a diagnostic file object through two virtual calls. |
PFPersist
Consumes one boolean byte and selects two helper sequences around active-pathfinder virtual slot [field]. Open full entry → Global | void PFPersist(bool)Consumes one boolean byte and selects two helper sequences around active-pathfinder virtual slot [field]. |
AddFD
Inserts a callback into a global list and refreshes the current render-target rectangle. Open full entry → Global | void AddFD()Inserts a callback into a global list and refreshes the current render-target rectangle. |
RemFD
Behavior awaiting documentation. Open full entry → Global | void RemFD()Description pendingDescription pending. |
RebuildPass
Invokes the map passability-mask rebuild routine for the current map bounds. Open full entry → Global | void RebuildPass()Invokes the map passability-mask rebuild routine for the current map bounds. |
Splash
executes a modal introductory splash video/image sequence from INI configuration. Open full entry → Global | void Splash(str, str)executes a modal introductory splash video/image sequence from INI configuration. |
F5
Behavior awaiting documentation. Open full entry → Global | void F5()Description pendingDescription pending. |
FlatTerrain
Zeroes the global packed height surface, rebuilds the derived slope surface, and processes the pending viewport rectangle. Open full entry → Global | void FlatTerrain()Zeroes the global packed height surface, rebuilds the derived slope surface, and processes the pending viewport rectangle. |
Pause
Pause calls game virtual slot54 with one. Open full entry → Global | void Pause()Pause calls game virtual slot54 with one. |
TestLoad
TestLoad calls [field] and returns status zero without a VM packet operation. Open full entry → Global | void TestLoad()TestLoad calls [field] and returns status zero without a VM packet operation. |
TestSave
Sequentially executes explorer dialog state serialization followed by dialog list cleanup and heap deallocation. Open full entry → Global | void TestSave()Sequentially executes explorer dialog state serialization followed by dialog list cleanup and heap deallocation. |
sd
sd delegates without a semantic incoming-register argument. Open full entry → Global | void sd()sd delegates without a semantic incoming-register argument. |
_RedrawAll
Dispatches the two UI virtual operations also used after the _Black global store. Open full entry → Global | void _RedrawAll()Dispatches the two UI virtual operations also used after the _Black global store. |
InsDecor
Writes an unmasked shifted decor value into the selected packed-grid word and dispatches a callback. Open full entry → Global | void InsDecor(int, int, int)Writes an unmasked shifted decor value into the selected packed-grid word and dispatches a callback. |
DelDecor
Clears the selected 16-bit halfword of a packed-grid dword and dispatches a callback. Open full entry → Global | void DelDecor(int, int)Clears the selected 16-bit halfword of a packed-grid dword and dispatches a callback. |
PreLit
Dispatches a full-extent light worker with fixed constants before printing its completion label. Open full entry → Global | void PreLit()Dispatches a full-extent light worker with fixed constants before printing its completion label. |
DeepWater
Forwards three VM integers and the full terrain rectangle to one worker. Open full entry → Global | void DeepWater(int, int, int)Forwards three VM integers and the full terrain rectangle to one worker. |
RayOfLight
Gates on signed X and forwards all four VM integers to a six-argument worker. Open full entry → Global | void RayOfLight(int, int, int, int)Gates on signed X and forwards all four VM integers to a six-argument worker. |
DumpFuncToXML
Dispatches the fixed XML filename and announces completion without checking the result. Open full entry → Global | void DumpFuncToXML()Dispatches the fixed XML filename and announces completion without checking the result. |
USR
Prints the running-script name for every currently selected unit, or a no-selection message. Open full entry → Global | void USR()Prints the running-script name for every currently selected unit, or a no-selection message. |
ToggleLD
Toggles one rendering callback in a global callback list and requests viewport redraw processing. Open full entry → Global | void ToggleLD()Toggles one rendering callback in a global callback list and requests viewport redraw processing. |
ChangeFormation
Routes a managed shape name to a selected registry object form pointer. Open full entry → Global | void ChangeFormation(str)Routes a managed shape name to a selected registry object form pointer. |
UndoMemory
UndoMemory prints a sampled field or an unavailable diagnostic. Open full entry → Global | void UndoMemory()UndoMemory prints a sampled field or an unavailable diagnostic. |
AdvExplorer
Behavior awaiting documentation. Open full entry → Global | void AdvExplorer()Description pendingDescription pending. |
ae
Behavior awaiting documentation. Open full entry → Global | void ae()Description pendingDescription pending. |
TTest
Resolves a translation key and prints the input and translated value to chat. Open full entry → Global | void TTest(str)Resolves a translation key and prints the input and translated value to chat. |
TTestf
TTestf passes fixed variadic test operands to the formatter. Open full entry → Global | void TTestf()TTestf passes fixed variadic test operands to the formatter. |
SaveEdit
Dispatches a fixed scenario path through the game object virtual slot [field]. Open full entry → Global | void SaveEdit()Dispatches a fixed scenario path through the game object virtual slot [field]. |
EdgeOfForever
Prints a TLS-derived pointer with the literal ScopeStack format. Open full entry → Global | void EdgeOfForever()Prints a TLS-derived pointer with the literal ScopeStack format. |
TestAdventure
Initiates an integrity audit of the current adventure map set, reporting errors and warnings to the in-game message console. Open full entry → Global | void TestAdventure()Initiates an integrity audit of the current adventure map set, reporting errors and warnings to the in-game message console. |
TestAdventureDebug
audits adventure integrity and outputs results via the debug stream logger. Open full entry → Global | void TestAdventureDebug()audits adventure integrity and outputs results via the debug stream logger. |
SettlementCount
SettlementCount prints vector length and each stored building field. Open full entry → Global | void SettlementCount()SettlementCount prints vector length and each stored building field. |
LSA
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void LSA()Description pendingDescription pending. |
GAIKAFD
GAIKAFD toggles a callback and forwards a bitmap filename. Open full entry → Global | void GAIKAFD()GAIKAFD toggles a callback and forwards a bitmap filename. |
ESG
ESG filters packed squad entries and prints a local accumulator. Open full entry → Global | void ESG(int, int)ESG filters packed squad entries and prints a local accumulator. |
GS
GS prints a viewport cell identifier and a registered symbol. Open full entry → Global | void GS(int)GS prints a viewport cell identifier and a registered symbol. |
cvar1
Pops an integer and forwards it with /cvar1 to the property setter helper. Open full entry → Global | void cvar1(int)Pops an integer and forwards it with /cvar1 to the property setter helper. |
cvar1
Passes /cvar1 to a property lookup operation and returns its 32-bit result. Open full entry → Global | int cvar1()Passes /cvar1 to a property lookup operation and returns its 32-bit result. |
cvar2
Pops an integer and forwards it with /cvar2 to the property setter helper. Open full entry → Global | void cvar2(int)Pops an integer and forwards it with /cvar2 to the property setter helper. |
cvar2
Passes /cvar2 to a property lookup operation and returns its 32-bit result. Open full entry → Global | int cvar2()Passes /cvar2 to a property lookup operation and returns its 32-bit result. |
TogglePtDraw
Toggles a native mask bit and sends the viewport rectangle to the dirty-rect marker. Open full entry → Global | void TogglePtDraw(int)Toggles a native mask bit and sends the viewport rectangle to the dirty-rect marker. |
DisablePtDraw
Clears the native draw mask and sends the viewport rectangle to the dirty-rect marker. Open full entry → Global | void DisablePtDraw()Clears the native draw mask and sends the viewport rectangle to the dirty-rect marker. |
EnablePtDraw
Sets every native draw-mask bit and sends the viewport rectangle to the dirty-rect marker. Open full entry → Global | void EnablePtDraw()Sets every native draw-mask bit and sends the viewport rectangle to the dirty-rect marker. |
ClearDecors
Clears every packed 16-bit decor-grid sample across the global map dimensions. Open full entry → Global | void ClearDecors()Clears every packed 16-bit decor-grid sample across the global map dimensions. |
GenTransTables
The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. Open full entry → Global | void GenTransTables()The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. |
GetItem
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void GetItem(str)Description pendingDescription pending. |
_PlayersAlly
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void _PlayersAlly(int, int)Description pendingDescription pending. |
_PlayersShareControl
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void _PlayersShareControl(int, int)Description pendingDescription pending. |
_PlayersShareView
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void _PlayersShareView(int, int)Description pendingDescription pending. |
_PlayersShareSupport
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void _PlayersShareSupport(int, int)Description pendingDescription pending. |
_PlayersMakeEnemies
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void _PlayersMakeEnemies(int, int)Description pendingDescription pending. |
_chs
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void _chs(str)Description pendingDescription pending. |
_SetNextSeason
_SetNextSeason stores the parser result even when it is zero. Open full entry → Global | void _SetNextSeason(str)_SetNextSeason stores the parser result even when it is zero. |
IngameDebugSelected
The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. Open full entry → Global | void IngameDebugSelected()The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. |
gmp
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void gmp()Description pendingDescription pending. |
GenHelpCmdIcons
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void GenHelpCmdIcons()Description pendingDescription pending. |
gdb
Behavior awaiting documentation. Open full entry → Global | void gdb()Description pendingDescription pending. |
_handles
_handles prints two initialized counter outputs behind pointer gates. Open full entry → Global | void _handles()_handles prints two initialized counter outputs behind pointer gates. |
GetFormDsc
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | str GetFormDsc(str)Description pendingDescription pending. |
SetPlayerSettRace
Behavior awaiting documentation. Open full entry → Global | void SetPlayerSettRace(int, int)Description pendingDescription pending. |
SetSettRace
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetSettRace(str, int)Description pendingDescription pending. |
SetShortcutSel
Native CKS binding writing eligible units from an ObjList into a numbered control group, validating the full 0..9 range. Open full entry → Global | void SetShortcutSel(int, int, ObjList)Native CKS binding writing eligible units from an ObjList into a numbered control group, validating the full 0..9 range. |
GetShortcutSel
Native CKS binding exporting a numbered control group's primary unit list to a new ObjList, validating the full 0..9 range. Open full entry → Global | ObjList GetShortcutSel(int, int)Native CKS binding exporting a numbered control group's primary unit list to a new ObjList, validating the full 0..9 range. |
UIShowTab
Consumes the requested tab integer but uses it only as a guard for a selection refresh helper. Open full entry → Global | void UIShowTab(int)Consumes the requested tab integer but uses it only as a guard for a selection refresh helper. |
UITabShown
Pushes the tab-holder global dword read by a native getter. Open full entry → Global | int UITabShown()Pushes the tab-holder global dword read by a native getter. |
BlurTerrain
Narrows its integer to signed sixteen bits before terrain processing and refresh dispatch. Open full entry → Global | void BlurTerrain(int)Narrows its integer to signed sixteen bits before terrain processing and refresh dispatch. |
ShowFlatTerrain
Runs a terrain worker followed by slope-grid rebuild and viewport processing. Open full entry → Global | void ShowFlatTerrain()Runs a terrain worker followed by slope-grid rebuild and viewport processing. |
clock
Formats the game counter at [field] as an hours-minutes-seconds string and returns a CKS string value. Open full entry → Global | str clock()Formats the game counter at [field] as an hours-minutes-seconds string and returns a CKS string value. |
_DbgSel
Modifies a selected related unit descriptor, prints native values and conditionally creates feedback for a point command. Open full entry → Global | void _DbgSel()Modifies a selected related unit descriptor, prints native values and conditionally creates feedback for a point command. |
WaitIdle
Implements the registered WaitIdle blocking predicate and timeout paths. Open full entry → Global | bool WaitIdle(Query, int)Implements the registered WaitIdle blocking predicate and timeout paths. |
WaitObjInQuery
Implements the registered WaitObjInQuery blocking predicate and timeout paths. Open full entry → Global | bool WaitObjInQuery(Obj, Query, int)Implements the registered WaitObjInQuery blocking predicate and timeout paths. |
WaitQueryCountBetween
Implements the registered WaitQueryCountBetween blocking predicate and timeout paths. Open full entry → Global | bool WaitQueryCountBetween(Query, int, int, int)Implements the registered WaitQueryCountBetween blocking predicate and timeout paths. |
WaitCommonObjects
Implements a blocking wait condition over two queries and schedules a retry interval when required. Open full entry → Global | bool WaitCommonObjects(Query, Query, int)Implements a blocking wait condition over two queries and schedules a retry interval when required. |
WaitHealthBetween
Implements the registered WaitHealthBetween blocking predicate and timeout paths. Open full entry → Global | bool WaitHealthBetween(Query, int, int, int)Implements the registered WaitHealthBetween blocking predicate and timeout paths. |
WaitSettlementCapture
Implements the registered WaitSettlementCapture blocking predicate and timeout paths. Open full entry → Global | bool WaitSettlementCapture(str, int, int)Implements the registered WaitSettlementCapture blocking predicate and timeout paths. |
WaitSettlementAllied
Waits until a named settlement is not allied with a requested player or a finite timeout expires. Open full entry → Global | bool WaitSettlementAllied(str, int, int)Waits until a named settlement is not allied with a requested player or a finite timeout expires. |
WaitEnvStringEqual
Implements the registered WaitEnvStringEqual blocking predicate and timeout paths. Open full entry → Global | bool WaitEnvStringEqual(str, str, int)Implements the registered WaitEnvStringEqual blocking predicate and timeout paths. |
WaitEnvIntBetween
Implements the registered WaitEnvIntBetween blocking predicate and timeout paths. Open full entry → Global | bool WaitEnvIntBetween(str, int, int, int)Implements the registered WaitEnvIntBetween blocking predicate and timeout paths. |
WaitAddNote
Suspends a VM thread until a named note exists or the requested timeout expires. Open full entry → Global | bool WaitAddNote(str, int)Suspends a VM thread until a named note exists or the requested timeout expires. |
WaitRemoveNote
Suspends a VM thread while a named note remains active, subject to the requested timeout. Open full entry → Global | bool WaitRemoveNote(str, int)Suspends a VM thread while a named note remains active, subject to the requested timeout. |
WaitConvRequest
Behavior awaiting documentation. Open full entry → Global | bool WaitConvRequest(Query, Query, int, Obj&, Obj&)Description pendingDescription pending. |
WaitUnitsInArea
WaitUnitsInArea tests a nonempty query collection using the area acceptance helper. Open full entry → Global | bool WaitUnitsInArea(Query, str, int)WaitUnitsInArea tests a nonempty query collection using the area acceptance helper. |
WaitIdleUnitsInArea
WaitIdleUnitsInArea tests idle names in a nonempty area-filtered collection. Open full entry → Global | bool WaitIdleUnitsInArea(Query, str, int)WaitIdleUnitsInArea tests idle names in a nonempty area-filtered collection. |
WaitEmptyQuery
WaitEmptyQuery completes true when query virtual slot [field] returns nonzero. Open full entry → Global | bool WaitEmptyQuery(Query, int)WaitEmptyQuery completes true when query virtual slot [field] returns nonzero. |
WaitNonEmptyQuery
WaitNonEmptyQuery completes true when query virtual slot [field] returns zero. Open full entry → Global | bool WaitNonEmptyQuery(Query, int)WaitNonEmptyQuery completes true when query virtual slot [field] returns zero. |
WaitConvRequest
Behavior awaiting documentation. Open full entry → Global | bool WaitConvRequest(Obj, Obj, int)Description pendingDescription pending. |
EndConvSetup
Behavior awaiting documentation. Open full entry → Global | void EndConvSetup(Obj, Obj)Description pendingDescription pending. |
WaitPlayerChat
WaitPlayerChat copies and removes a matching-stamp chat entry into output references. Open full entry → Global | void WaitPlayerChat(int&, str&, int)WaitPlayerChat copies and removes a matching-stamp chat entry into output references. |
ShowLastNotificationPos
Projects the stored notification target and submits a scene viewport center request. Open full entry → Global | void ShowLastNotificationPos()Projects the stored notification target and submits a scene viewport center request. |
UserNotification
Triggers a notification from two script strings and a point when the requested player matches the active player. Open full entry → Global | void UserNotification(str, str, point, int)Triggers a notification from two script strings and a point when the requested player matches the active player. |
HasStarvingArmy
Tests whether the notifications manager contains the named army-starving notification. Open full entry → Global | bool HasStarvingArmy()Tests whether the notifications manager contains the named army-starving notification. |
HasStarvingArmy
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | bool HasStarvingArmy(int)Description pendingDescription pending. |
StarvingArmyPos
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | Obj StarvingArmyPos(int)Description pendingDescription pending. |
RunAIHelper
Consumes 2 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str)Consumes 2 script strings and forwards their character data to the global AI helper invocation routine. |
RunAIHelper
Consumes 3 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str, str)Consumes 3 script strings and forwards their character data to the global AI helper invocation routine. |
RunAIHelper
Consumes 4 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str, str, str)Consumes 4 script strings and forwards their character data to the global AI helper invocation routine. |
RunAIHelper
Consumes 5 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str, str, str, str)Consumes 5 script strings and forwards their character data to the global AI helper invocation routine. |
RunAIHelper
Consumes 6 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str, str, str, str, str)Consumes 6 script strings and forwards their character data to the global AI helper invocation routine. |
RunAIHelper
Consumes 7 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str, str, str, str, str, str)Consumes 7 script strings and forwards their character data to the global AI helper invocation routine. |
RunAIHelper
Consumes 8 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str, str, str, str, str, str, str)Consumes 8 script strings and forwards their character data to the global AI helper invocation routine. |
RunAIHelper
Consumes 9 script strings and forwards their character data to the global AI helper invocation routine. Open full entry → Global | void RunAIHelper(str, str, str, str, str, str, str, str, str)Consumes 9 script strings and forwards their character data to the global AI helper invocation routine. |
StopAIHelper
Consumes a helper-name string and forwards a named task cancellation request. Open full entry → Global | void StopAIHelper(str)Consumes a helper-name string and forwards a named task cancellation request. |
IsAIHelperRunning
Consumes a helper-name string and returns the helper name-table membership result. Open full entry → Global | bool IsAIHelperRunning(str)Consumes a helper-name string and returns the helper name-table membership result. |
pfd
Alternates destruction and allocation of the object pointer at [field]. Open full entry → Global | void pfd()Alternates destruction and allocation of the object pointer at [field]. |
testpf
Calls [field] only when the diagnostic object pointer is nonzero. Open full entry → Global | void testpf()Calls [field] only when the diagnostic object pointer is nonzero. |
SPFDone
Restores the active pathfinder from task offset zero, releases the task and clears its global pointer. Open full entry → Global | void SPFDone()Restores the active pathfinder from task offset zero, releases the task and clears its global pointer. |
SPFFindAreas_Quant
Advances one SPF area-finding step and returns a boolean continuation value to CKS. Open full entry → Global | bool SPFFindAreas_Quant()Advances one SPF area-finding step and returns a boolean continuation value to CKS. |
SPFInitData
Passes the current SPF task to an implementation operation. The implementation reports zero. Open full entry → Global | void SPFInitData()Passes the current SPF task to an implementation operation. The implementation reports zero. |
SPFInitDirectionData
Delegates direction-map initialization from the current SPF build task. Open full entry → Global | void SPFInitDirectionData()Delegates direction-map initialization from the current SPF build task. |
SPFInitPointToAreaData
Delegates point-to-area connection data initialization from the current SPF build task. Open full entry → Global | void SPFInitPointToAreaData()Delegates point-to-area connection data initialization from the current SPF build task. |
SPFInitConnectData
Initializes five counters in the current SPF build task from a nested size value. Open full entry → Global | void SPFInitConnectData()Initializes five counters in the current SPF build task from a nested size value. |
SPFCalcConnectHighRes_Quant
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | bool SPFCalcConnectHighRes_Quant()Description pendingDescription pending. |
SPFIncreaseConnect
Routes three arguments from the SPF task to [field] and then zeros task [field]. Open full entry → Global | void SPFIncreaseConnect()Routes three arguments from the SPF task to [field] and then zeros task [field]. |
SPFIncreaseConnect_Quant
Pushes one boolean byte for the nonzero result of [field] on the current SPF task. Open full entry → Global | bool SPFIncreaseConnect_Quant()Pushes one boolean byte for the nonzero result of [field] on the current SPF task. |
GetInnState
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int GetInnState(str, str)Description pendingDescription pending. |
SetInnState
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetInnState(str, str, int)Description pendingDescription pending. |
GetInnState
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | int GetInnState(Obj)Description pendingDescription pending. |
SetInnState
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetInnState(Obj, int)Description pendingDescription pending. |
GenTransGame
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void GenTransGame(str)Description pendingDescription pending. |
MousePtm
MousePtm pushes the dwords at receiver[field] and [field] from [[field]]. Open full entry → Global | point MousePtm()MousePtm pushes the dwords at receiver[field] and [field] from [[field]]. |
Goto
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void Goto(int, int)Description pendingDescription pending. |
ToggleFD
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void ToggleFD()Description pendingDescription pending. |
Catch
Shared address-taken handler that decrements the VM cursor by eight bytes and returns zero. Open full entry → Global | void Catch(Obj)Shared address-taken handler that decrements the VM cursor by eight bytes and returns zero. |
RemakeVis
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void RemakeVis()Description pendingDescription pending. |
HeroStats
Builds a local statistics context, invokes collection and reporting workers, then cleans its stored output handle. Open full entry → Global | void HeroStats()Builds a local statistics context, invokes collection and reporting workers, then cleans its stored output handle. |
EqualHeroes
Routes a pointer to a local byte to the class-registry worker. Open full entry → Global | void EqualHeroes()Routes a pointer to a local byte to the class-registry worker. |
_ui
Allocates and constructs a unit-import adapter object under a nonzero global gate. Open full entry → Global | void _ui()Allocates and constructs a unit-import adapter object under a nonzero global gate. |
_di
Allocates and constructs a decor-import adapter object under a nonzero global gate. Open full entry → Global | void _di()Allocates and constructs a decor-import adapter object under a nonzero global gate. |
_bi
Allocates and constructs a building-import adapter object under a nonzero global gate. Open full entry → Global | void _bi()Allocates and constructs a building-import adapter object under a nonzero global gate. |
_itools
The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. Open full entry → Global | void _itools()The implementation performs no additional work and reports zero internally. This void signature exposes no return value to the script. |
StartPlayerScript
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void StartPlayerScript(int, str)Description pendingDescription pending. |
StopPlayerScript
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void StopPlayerScript(int, str)Description pendingDescription pending. |
GetPlayerScriptsCount
Registered handler that overwrites its integer argument slot with the constant eight. Open full entry → Global | int GetPlayerScriptsCount(int)Registered handler that overwrites its integer argument slot with the constant eight. |
GetPlayerScript
Returns one of eight stored script strings for a validated one-based player number. Open full entry → Global | str GetPlayerScript(int, int)Returns one of eight stored script strings for a validated one-based player number. |
ShowAnnouncement
Consumes two VM string arguments and calls the announcement table helper using receiver [field]. Open full entry → Global | void ShowAnnouncement(str, str)Consumes two VM string arguments and calls the announcement table helper using receiver [field]. |
HideAnnouncement
Consumes a key string, looks it up in the table at [field], and sets a matched node field[field] to1. Open full entry → Global | void HideAnnouncement(str)Consumes a key string, looks it up in the table at [field], and sets a matched node field[field] to1. |
ShowAnnouncement
Consumes two strings and an integer selector. Calls the announcement operation for selectors from 1 to 16 using the corresponding receiver. Open full entry → Global | void ShowAnnouncement(int, str, str)Consumes two strings and an integer selector. Calls the announcement operation for selectors from 1 to 16 using the corresponding receiver. |
HideAnnouncement
Consumes a key and selector, and invokes the matched-node flag helper for a nonnull key and selectors1..16. Open full entry → Global | void HideAnnouncement(int, str)Consumes a key and selector, and invokes the matched-node flag helper for a nonnull key and selectors1..16. |
SetPlayerStatus
Forwards a player, key, string and importance flag to a global status store. Open full entry → Global | void SetPlayerStatus(int, int, str, bool)Forwards a player, key, string and importance flag to a global status store. |
SetPlayerStatus
Forwards a player, key, and importance bool to the global player-status store when present. Open full entry → Global | void SetPlayerStatus(int, int, bool)Forwards a player, key, and importance bool to the global player-status store when present. |
ShowNotification
Consumes three strings, an integer and an Obj, resolves two strings and conditionally forwards the packet with mode 2 before pushing the helper result. Open full entry → Global | int ShowNotification(str, str, int, str, Obj)Consumes three strings, an integer and an Obj, resolves two strings and conditionally forwards the packet with mode 2 before pushing the helper result. |
ShowHint
Consumes two strings and an Obj, resolves both strings under a manager gate and submits mode 1 before pushing the helper result. Open full entry → Global | int ShowHint(str, str, Obj)Consumes two strings and an Obj, resolves both strings under a manager gate and submits mode 1 before pushing the helper result. |
ShowTutorial
Consumes two strings and an Obj, applies an additional native gate and submits translated strings with mode 0 before pushing the helper result. Open full entry → Global | int ShowTutorial(str, str, Obj)Consumes two strings and an Obj, applies an additional native gate and submits translated strings with mode 0 before pushing the helper result. |
HideNotification
Consumes an integer and conditionally forwards it to the notification helper. Open full entry → Global | void HideNotification(int)Consumes an integer and conditionally forwards it to the notification helper. |
TutorialActive
Registered handler that pushes a zero Boolean without reading tutorial state. Open full entry → Global | bool TutorialActive()Registered handler that pushes a zero Boolean without reading tutorial state. |
HintsActive
Checks whether a 32-bit field reached through a shared pointer is nonzero. Open full entry → Global | bool HintsActive()Checks whether a 32-bit field reached through a shared pointer is nonzero. |
EnableHintsAndTutorials
Hints and tutorials setters conditionally write pointer field [field]. Open full entry → Global | void EnableHintsAndTutorials()Hints and tutorials setters conditionally write pointer field [field]. |
DisableHintsAndTutorials
Hints and tutorials setters conditionally write pointer field [field]. Open full entry → Global | void DisableHintsAndTutorials()Hints and tutorials setters conditionally write pointer field [field]. |
AreHintsAndTutorialsEnabled
Hints and tutorials query returns pointer field [field] nonzero or false. Open full entry → Global | bool AreHintsAndTutorialsEnabled()Hints and tutorials query returns pointer field [field] nonzero or false. |
PrintMsg
Consumes a managed string and player selector, conditionally printing its characters without releasing the payload. Open full entry → Global | void PrintMsg(int, str)Consumes a managed string and player selector, conditionally printing its characters without releasing the payload. |
_cr
Routes an empty native string to the report worker. Open full entry → Global | void _cr()Routes an empty native string to the report worker. |
GetTerritoryState
Resolves a named territory and returns its stored state value, with a default of two. Open full entry → Global | int GetTerritoryState(str)Resolves a named territory and returns its stored state value, with a default of two. |
SetTerritoryState
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void SetTerritoryState(str, int)Description pendingDescription pending. |
ConquestBonus
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | str ConquestBonus()Description pendingDescription pending. |
FormDescription
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | str FormDescription(str)Description pendingDescription pending. |
EndGame
The three-argument EndGame stores its message only when the decremented player matches the computed local index. Open full entry → Global | void EndGame(int, bool, str)The three-argument EndGame stores its message only when the decremented player matches the computed local index. |
RandomPathCast
Behavior awaiting documentation. The extension records this primitive, but does not yet provide a description of its behavior. Open full entry → Global | void RandomPathCast()Description pendingDescription pending. |
DiplAreAllied
Checks whether two players have a reciprocal diplomatic alliance. Returns false if either player number is outside the range 1 to 16, and true when both valid numbers identify the same player. For distinct players, the relationship is checked in both directions along with an additional condition in each player's state. The full meaning of that additional condition is not yet documented. Open full entry → Global | bool DiplAreAllied(int, int)Checks whether two players have a reciprocal diplomatic alliance. Returns false if either player number is outside the range 1 to 16, and true when both valid numbers identify the same player. |
SetUseCount
Behavior awaiting documentation. Open full entry → Global | void SetUseCount(int)Description pendingDescription pending. |
WaitForMapChange
WaitForMapChange waits while a cached adventure field equals the current field. Open full entry → Global | void WaitForMapChange()WaitForMapChange waits while a cached adventure field equals the current field. |