A Commands is a enum used by SetText that indicates a command to processes something with or without parameters. When specifying the input string, a command and its parameters must be enclosed in |. The command name and each of its parameters must be separated by ,. The command text is refered to anything between both | which the command has the ability to replace the text and resume processing at the same position.
Commands also has the ability to perform what's called a redirection which overwrites the input string with a new one and then resumes processing at the start of this new string.
While the actual parsing of the command's name is case insensitive, it is strongly recommended to specify it in all lowercase. This is because there are some logic which are only compatible with the name being in all lowercase notably OrganiseLines and some checks such as the commands allowed in testdiag mode. Not putting it in all lowercase can result in commands being misidentified in some special cases.
For that reason, it is best to consider everything to be case sensitive unless specified otherwise.
The notes contain useful information about each commands, here are what they mean:
NOT REFERENCED: The enum value exists, but no implementation or references exists, the command name can be parsed without errors, but it will do nothing and so, it does not have a documentation page.
UNUSED: The command remains functional and has an implementation, but there are no known usage in the game. Whether the command is useful or not can be found in its details page.
The actual int form of the enum isn't used in any way. Only the enum values's name is used for parsing. This means the backing value isn't relevant and as such, the table presented below will not show them in enum value order, but rather by logical categories. The ID column will show the value still for the sake of completeness. If you wish to only view the commands list sorted by their enum value, consult this page
An alias of line that is only processed by SetText when the pause menu is active and either in no window or in the following windows: top level window, "Inventory" and "Medals and Stats"
Does the same task than line, but with a different syntax and it only works in Regular Letter Rendering while line works for both letter rendering method
Perform an arithmetic operation on a flagvar slot using a value as the other operand where the value is directly specified, corresponds to the current amount of berries or contained in another flagvar slot
Replaces this command's text with a textual representation of a number followed by a space followed by either the singular form of the game's currency (berry in English) or the plural form (berries in English) depending on a specific amount or an amount contained in a flagvar
Replace the text of this command by the remaining amount of free items space of the storage (this is 35 - amount of items in storage under normal gameplay)
Alias to string if processed by SetText directly, but it can also be processed before on OrganiseLines by replacing the text of this command to a flagstring
Alias to string if processed by SetText directly where flagstring is a menu text line id instead, but it can also be processed before by OrganiseLines with different behaviours
A helper of string where flagstring 0 is set to the Lore Book's text whose id is in flagvar 0 with additional commands then the same flagstring is sent to string in its fourth syntax
Check that the quantity of items in an inventory is equal or higher than a specific quantity or the maximum amount allowed by the game for this specific inventory. If it is, replaces the input string by another dialogue line
Redirect to a particular dialogue line or a randomly selected one from a list. This has support for appending commands and to not blank the textbox before the replacement
Check a flagvar for NOT being a specific integer, a single flag for being true or a set of flags for a specific state and either do nothing if all conditions are satisfied or redirect to a different line if they aren't
Compare a flagvar against a value or another flagvar for a condition and redirect if this condition ends up being true or do nothing if it ends up being false
Redirect to a different line by a Dialogue line id if the current player's position on a specific axis isn't at least a specific value or do nothing otherwise
A goto helper where the Dialogue line id can be one of 2 values depending if both high scores at the Termacade games were beaten or not from their default one
Process a goto in its first syntax if 2 values or flagvar slots added together is strictly bigger than another value or flagvar slot or do nothing otherwise
Instruct the game to start a forcemove on an Entity where the destination is relative to its current position with a configurable speed, start and stop state
Teleports the party's entities near the player's Entity which optionally includes any temporary non party follower or teleport just the party entities at a specified distance and direction from the player's Entity
Add a stat bonus by specifying its properties directly or by specifying flagvar slots containing them and optionally recalculate the party's stats after the removal
Restore the position bound limits of the camera from their original one when the map was loaded or from the ones saved using removemaplimits if they were saved to the temporary fields
Show some text inside a Minibubble by a Dialogue line id or by directly specifying the text which will have its tail set to a specified entity. The Minibubble's lifecycle can then be controlled from the same SetText call using waitminibubble and destroyminibubble
Displays a prompt where an integer number can be entered by entering each digits and redirects upon confirmation or cancellation. The result is stored in a flagvar slot upon confirmation
Signal the char loop that processing is completed once this iteration ends under certain conditions (this command is broken, see its documentation section for details)
Give an Item based on its id or a flagvar containing it or transfer all the items selected to or from the storage if the last ItemList had a multi selection
Remove a medal by its id or an item by its index from a specific inventory type where the item index or medal id is specified directly or is contained into a specified flagvar slot. This can also remove all items that was multi selected in the last ItemList if it was a listsell
Give an item, Medal, Crystal Berry or berries to the player where its identification or amount is specified directly or is retrieved from a flagvar with proper animations, presentations and checks that this action does not exceed the maximum amount of standard items if it is one
Mark a Caravan prize medal as obtained via its Medal id or the caller's animstate which also removes it from the caravan list. This can also mark any prize medal as obtained via its prize id
Add a medal to a medal shop's pool by Medal id or one coming from a flagvar, remove all medals from a specific shop's pool using a store id or one coming from a flagvar or remove all medals from all shop pools
Play a fade in visual transition with options to specify the speed, color and the ability to destroy the caller after a fadeout done right after this one
Play a sound effect music from its file path with a configurable pitch and volume with the option to loop it at the first free AudioSource or a specific one by its id
Immediately stops the game's execution if called from the StartMenu's settings or reset the game's scene after a transition if called from the pause menu after loading a file
Setup a map transfer to either a specific map id or one that is contained in a flagvar with the optional ability to set where to move the party after the new map is loaded