— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
Prints data to the debug console, for example to display the value of a property or validate that a script is running by logging a message.
print(data)
Argument | Description | Type | Required |
---|---|---|---|
data | Data to be printed to the debug console. | String, Number, Boolean | Yes |
You can display variables and properties directly using the Print function, or you can display them with additional text using placeholder expressions.
print("Player is at coordinate ${player.coord}");
Results: The player character's tile coordinate will be displayed in the debug console.
Use the Print function to debug a script that isn't working properly by logging a text message or the value of a property to the console.