tango_functions.zh#
Variables#
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
Functions#
int |
__Tango_RunFlowControl(int pos) |
void |
__Tango_RunSetter(int pos, bool clear) |
int |
__Tango_RunFunction(int pos, bool clear) |
int |
__Tango_ReadArgLength(int pos) |
int |
__Tango_ReadArg(int pos) |
int |
__Tango_BoolToInt(bool value) |
void |
__Tango_AppendMessage(int pos, int messageID) |
void |
|
void |
__Tango_FuncNumber(int number, int pos) |
void |
__Tango_FuncOrdinal(int number, int pos) |
int |
__Tango_GetOrdinal(int num) |
void |
__Tango_FuncSaveName(int pos) |
void |
__Tango_FuncString(char32[] string, int pos) |
void |
__Tango_FuncTab(int value) |
void |
__Tango_FuncAddMenuItem(int pos, int value) |
void |
__Tango_FuncActivateMenu(int pos, int flags, int initialPos) |
void |
__Tango_FuncGoto(int newString) |
void |
|
int |
__Tango_FuncSync(int[] args) |
bool |
__Tango_FindSyncingStrings(int value) |
int |
__Tango_GetVar(int var) |
void |
__Tango_SetVar(int var, int value) |
void |
__Tango_Delete(int pos, int end) |
void |
Tango_LogUndefinedFunction(int function) |
void |
Tango_LogUndefinedVariable(int var) |
void |
__Tango_SetAlternateColor(int num) |
void |
Variable descriptions#
const int __TANGO_MAX_FUNCTION_ARGS = 4 π Source
Constants and functions relating to functions and variables. Max function args; should match array size in __Tango_RunFunction
const int __TANGO_CODE_FACTOR = 7 π Source
Used in converting names to numbers
const int __TANGO_SETTER_SET = 0.0986 π Source
Setters
const int __TANGO_SETTER_INC = 0.0542 π Source
const int __TANGO_FLOW_IF = 0.0069 π Source
Flow control functions
const int __TANGO_FLOW_ELSE = 0.2441 π Source
const int __TANGO_FLOW_ELSEIF = 11.9678 π Source
const int __TANGO_FLOW_WHILE = 5.8497 π Source
const int __TANGO_FLOW_WAITUNTIL = 13486.5 π Source
const int __TANGO_FUNC_ADD = 0.0081 π Source
Other functions
const int __TANGO_FUNC_OR = 0.0123 π Source
const int __TANGO_FUNC_AND = 0.0151 π Source
const int __TANGO_FUNC_NOT = 0.0811 π Source
const int __TANGO_FUNC_TAB = 0.0989 π Source
const int __TANGO_FUNC_CHAR = 0.1446 π Source
const int __TANGO_FUNC_GOTO = 0.3291 π Source
const int __TANGO_FUNC_LESS = 0.4513 π Source
const int __TANGO_FUNC_NEXT = 0.5235 π Source
const int __TANGO_FUNC_RAND = 0.6325 π Source
const int __TANGO_FUNC_SYNC = 0.7843 π Source
const int __TANGO_FUNC_DELAY = 1.1939 π Source
const int __TANGO_FUNC_CLOSE = 1.2192 π Source
const int __TANGO_FUNC_EQUAL = 1.8884 π Source
const int __TANGO_FUNC_APPEND = 6.1058 π Source
const int __TANGO_FUNC_CHOICE = 7.5241 π Source
const int __TANGO_FUNC_NUMBER = 29.0329 π Source
const int __TANGO_FUNC_PRESSA = 31.491 π Source
const int __TANGO_FUNC_STRING = 37.4073 π Source
const int __TANGO_FUNC_GREATER = 113.945 π Source
const int __TANGO_FUNC_ORDINAL = 208.066 π Source
const int __TANGO_FUNC_PLAYSFX = 209.604 π Source
const int __TANGO_FUNC_SUSPEND = 263.973 π Source
const int __TANGO_FUNC_NOTEQUAL = 1364.94 π Source
const int __TANGO_FUNC_SAVENAME = 1615.17 π Source
const int __TANGO_VAR_A0 = 0.0034 π Source
Variables
const int __TANGO_VAR_A1 = 0.0035 π Source
const int __TANGO_VAR_X = 0.0024 π Source
const int __TANGO_VAR_Y = 0.0025 π Source
const int __TANGO_VAR_CSET = 0.2015 π Source
const int __TANGO_VAR_COLOR = 1.3059 π Source
const int __TANGO_VAR_SPEED = 5.1391 π Source
const int __TANGO_VAR_SFX = 0.0997 π Source
const int __TANGO_VAR_STYLE = 5.3793 π Source
const int __TANGO_VAR_NEXT = 0.5235 π Source
const int __TANGO_VAR_CHOSEN = 7.5754 π Source
const int __TANGO_VAR_DEFAULT = 57.0513 π Source
const int __TANGO_NUM_MARKER = -100 π Source
Data markers
const int __TANGO_VAR_MARKER = -200 π Source
const int __TANGO_SETTER_MARKER = -300 π Source
const int __TANGO_FUNC_MARKER = -400 π Source
const int __TANGO_FUNC_END_MARKER = -500 π Source
const int __TANGO_FLOW_MARKER = -600 π Source
const int __TANGO_FLOW_END_MARKER = -700 π Source
const int __TANGO_ALT_COLOR_START_MARKER = -1000 π Source
Function descriptions#
int __Tango_RunFlowControl(int pos) π Source
Runs @if, @elseif, @else, @while, and @waituntil.
void __Tango_RunSetter(int pos, bool clear) π Source
Runs @set or @inc. If clear is true, the setter and its arguments will be deleted from in __Tango_Buffer[] afterward.
int __Tango_RunFunction(int pos, bool clear) π Source
Runs other functions. If clear is true, the function and its arguments in __Tango_Buffer[] will be deleted.
int __Tango_ReadArgLength(int pos) π Source
Determines the length of an argument.
int __Tango_ReadArg(int pos) π Source
Get the value of an argument, reading variables or running functions if needed.
int __Tango_BoolToInt(bool value) π Source
Convert true to 1 and false to 0, since ZScript doesnβt allow casting bool to int. This is just used to make the conditional functions less ugly.
void __Tango_AppendMessage(int pos, int messageID) π Source
Implementation of @append
void __Tango_FuncClose() π Source
void __Tango_FuncNumber(int number, int pos) π Source
Implementation of @number
void __Tango_FuncOrdinal(int number, int pos) π Source
Implementation of @ordinal
int __Tango_GetOrdinal(int num) π Source
Helper for __Tango_FuncOrdinal.
void __Tango_FuncSaveName(int pos) π Source
Implementation of @savename
void __Tango_FuncString(char32[] string, int pos) π Source
Implementation of @string
void __Tango_FuncTab(int value) π Source
Implementation of @tab
Implementation of @choice
Implementation of @domenu
void __Tango_FuncGoto(int newString) π Source
Implementation of @goto
void __Tango_FuncPressA() π Source
Implementation of @pressa
int __Tango_FuncSync(int[] args) π Source
Implementation of @sync
bool __Tango_FindSyncingStrings(int value) π Source
Helper for __Tango_FuncSync() and Tango_Sync(). Finds any strings waiting for the given sync value and restarts them. Returns true if any were found.
int __Tango_GetVar(int var) π Source
Get the current value of a variable.
void __Tango_SetVar(int var, int value) π Source
Set a variable to the given value.
void __Tango_Delete(int pos, int end) π Source
Fills the string with filler characters from pos to end, inclusive. Used to blank out functions so __Tango_Process() can proceed.
void Tango_LogUndefinedFunction(int function) π Source
Log an error when an unknown function is called.
void Tango_LogUndefinedVariable(int var) π Source
Log an error when an unknown variable is used.
void __Tango_SetAlternateColor(int num) π Source
Set an alternate color for [text].
These arenβt exactly functions, thoughβ¦