-
Notifications
You must be signed in to change notification settings - Fork 16
Next: GetScriptData
Archie_UwU edited this page Aug 20, 2025
·
4 revisions
Retrieves a pointer to the CScript object for a given script ID.
AurieStatus GetScriptData(
[in] int Index,
[out] CScript*& Script
);The index of an element within the runner's script array, the data of which to retrieve.
Important
Script IDs returned by both GameMaker built-in functions and the GetNamedRoutineIndex function are offset by 100 000 due to how asset IDs are reserved.
To convert a script ID into the array index required by this function, subtract 100 000 from it.
A reference to a pointer-sized buffer, into which the address of the script's data will be written. The contents of this buffer are guaranteed to be left untouched if the function fails.
| Value | Description |
|---|---|
AURIE_SUCCESS |
The script lookup succeeded and the result was written into the buffer. |
AURIE_MODULE_INTERNAL_ERROR |
The internal function needed is unavailable. |
AURIE_OBJECT_NOT_FOUND |
The script does not exist. |
| Criterium | Value |
|---|---|
| Minimum YYTK Version | 3.0.1 |
| Context | Any |