Skip to content

Command Reference

Below is the complete reference of script commands supported by the RagNext Game Engine.

NOTE

Dialogue Nodes and Switch Nodes are structural flow nodes on the visual canvas rather than inner commands. For visual screenshots and usage details, refer to the Visual Scripts & Triggers guide.

Action

Action: Add Custom Choice

Adds a dynamic choice button to a player prompt and binds it to a target variable.

ParameterTypeUI Input
Prompt NamePromptNameComboBox
Choice TextStringText
Target VariableVariableComboBox

Action: Clear Custom Choice

Clears all custom choices from a player prompt.

ParameterTypeUI Input
Prompt NamePromptNameComboBox

Character

Character: Display Description

Appends the character's description text to the story feed.

ParameterTypeUI Input
CharacterCharacterComboBox

Character: Move To Room

Moves a character to a target room.

ParameterTypeUI Input
CharacterCharacterComboBox
Destination RoomRoomComboBox

Character: Move Inventory To Player

Transfers all items from a character's inventory to the player.

ParameterTypeUI Input
CharacterCharacterComboBox

Character: Move To Object

Moves a character inside a container object.

ParameterTypeUI Input
CharacterCharacterComboBox
ObjectGameObjectComboBox

Character: Set Portrait Media

Changes the active portrait image of a character.

ParameterTypeUI Input
CharacterCharacterComboBox
MediaMediaComboBox

Character: Set Action To Active/Inactive

Activates or deactivates a specific character script action.

ParameterTypeUI Input
Action NameStringText
ActiveBoolCheckbox

Character: Set Attribute

Sets a custom string attribute value on a character.

ParameterTypeUI Input
CharacterCharacterComboBox
Attribute NameStringText
ValueStringText

Character: Set Description

Changes the story description text of a character.

ParameterTypeUI Input
DescriptionStringTextArea

Character: Set Gender

Sets the gender of a character.

ParameterTypeUI Input
GenderStringComboBox

Character: Set Display Name

Sets the visible display name of a character.

ParameterTypeUI Input
NameStringText

General

General: Call Function

Invokes a global scripting function by ID.

ParameterTypeUI Input
FunctionFunctionComboBox

Add A Comment

Inserts a designer note or comment inside the action graph (ignored at runtime).

ParameterTypeUI Input
Comment TextStringTextArea

Debug Text

Outputs a test message to the developer console log.

ParameterTypeUI Input
MessageStringTextArea

Display Text

Appends standard text narrative to the gameplay story feed.

ParameterTypeUI Input
TextStringTextArea

General: Wait for Continue

Suspends action steps execution and shows a custom Continue button overlay prompt to the player.

ParameterTypeUI Input
Button TextStringText

Prompt Player Input

Displays an input popup dialog to prompt user text/option entry.

ParameterTypeUI Input
Prompt NameStringText
Prompt TextStringTextArea
Input TypeStringComboBox
Custom OptionsStringText
Store VariableVariableComboBox

Media

Media: Display Layered Picture

Draws a layered composite picture on the multimedia panel.

ParameterTypeUI Input
Picture FileMediaComboBox

Media: Display Multimedia

Draws an image or plays audio on the gameplay screen.

ParameterTypeUI Input
Media FileMediaComboBox

Media: Set Background Music

Plays a music asset on loop as the active background track.

ParameterTypeUI Input
Music FileMediaComboBox

Media: Stop Background Music

Fades out and stops the active background music.

No parameters.

Media: Play Sound Effect

Plays a one-shot sound effect at a designated volume.

ParameterTypeUI Input
Sound FileMediaComboBox
VolumeNumberNumber

Item

Item: Display Description

Appends an item's description text to the story feed.

ParameterTypeUI Input
ItemItemComboBox

Item: Move To Character

Moves an item to a character's inventory.

ParameterTypeUI Input
CharacterCharacterComboBox

Item: Move To Inventory

Moves an item to the player's inventory.

ParameterTypeUI Input
ItemItemComboBox

Item: Move Inside Object

Places an item inside a container object.

ParameterTypeUI Input
ItemItemComboBox
Container ObjectGameObjectComboBox

Item: Move To Room

Places an item in a specific room location.

ParameterTypeUI Input
ItemItemComboBox
RoomRoomComboBox

Item: Set Attribute

Sets a custom string attribute value on an item.

ParameterTypeUI Input
ItemItemComboBox
Attribute NameStringText
ValueStringText

Item: Open Container

Opens an item container so its contents can be accessed.

ParameterTypeUI Input
Container ObjectItemComboBox

Item: Close Container

Closes an item container.

ParameterTypeUI Input
Container ObjectItemComboBox

Player

Player: Display Description

Appends the player's description text to the story feed.

No parameters.

Player: Move Inventory To Character

Transfers the player's entire inventory to a character.

No parameters.

Player: Move Inventory To Room

Drops the player's entire inventory into the current room.

No parameters.

Player: Move To Room

Teleports the player to a target room.

ParameterTypeUI Input
Destination RoomRoomComboBox

Player: Move To Character

Teleports the player to the room where a specific character is located.

No parameters.

Player: Move To Object

Teleports the player to the room where a specific object is located.

No parameters.

Player: Set Attribute

Sets a custom string attribute value on the player.

ParameterTypeUI Input
Attribute NameStringText
ValueStringText

Player: Set Description

Changes the story description text of the player.

ParameterTypeUI Input
DescriptionStringTextArea

Player: Set Name

Changes the player's character name.

ParameterTypeUI Input
NameStringText

Player: Set Gender

Sets the player's gender.

ParameterTypeUI Input
GenderStringComboBox

Player: Set Portrait Media

Changes the active portrait image of the player.

ParameterTypeUI Input
Media FileMediaComboBox

Room

Room: Display Description

Appends the current room's description text to the story feed.

No parameters.

Room: Display Picture

Displays the current room's assigned background image.

No parameters.

Room: Move Items To Player

Moves all loose items in the current room to the player's inventory.

No parameters.

Room: Set Description

Changes the story description text of a room.

ParameterTypeUI Input
DescriptionStringTextArea

Room: Set Picture

Changes the background picture asset of a room.

ParameterTypeUI Input
PictureMediaComboBox

Room: Lock Exit

Locks a room exit direction, preventing traversal.

ParameterTypeUI Input
RoomRoomComboBox
DirectionDirectionComboBox

Room: Unlock Exit

Unlocks a room exit direction, allowing traversal.

ParameterTypeUI Input
RoomRoomComboBox
DirectionDirectionComboBox

UI

StatusBar: Set Visible/Invisible

Shows or hides the engine's gameplay status bar.

ParameterTypeUI Input
VisibleBoolCheckbox

Timer

Timer: Execute Timer

Forces a background timer to trigger immediately.

No parameters.

Timer: Reset Timer

Resets a timer's tick count back to zero.

No parameters.

Timer: Set Attribute

Sets a custom string attribute value on a timer.

ParameterTypeUI Input
TimerTimerComboBox
Attribute NameStringText
ValueStringText

Timer: Set Timer To Active/Inactive

Starts or stops a background interval timer.

ParameterTypeUI Input
ActiveBoolCheckbox

Variable

Variable: Display Data

Outputs the formatted value of a variable to the story feed.

No parameters.

Variable: Set

Assigns a value to a global variable (supports numbers, booleans, and date/times).

ParameterTypeUI Input
VariableVariableComboBox
ValueStringText

Variable: Increment

Adds a numeric value or time duration offset to a variable.

ParameterTypeUI Input
VariableVariableComboBox
ValueStringText

Variable: Decrement

Subtracts a numeric value or time duration offset from a variable.

ParameterTypeUI Input
VariableVariableComboBox
ValueStringText

Variable: Set Numeric Randomly

Assigns a random integer within a range to a variable.

ParameterTypeUI Input
MinimumNumberNumber
MaximumNumberNumber

System

End The Game

Ends gameplay and displays a final summary message to the player.

ParameterTypeUI Input
Final MessageStringTextArea

RagNext Labs LLC — Software Engine & Development Studio