User Tools

Site Tools


This is an old revision of the document!


A string is a scripting data type consisting of a string of characters enclosed by double quotes on each end. Strings are typically used to represent a message, for example in the Display Message function, or when referencing an entity name or property name within a script. Placeholder expressions can be used within a string as a way to generate dynamic values at game runtime.


display_message("Hello world! This is a string.")

The above example demonstrates a string passed to the Display Message function as an argument.

Any double quotation marks within a string must be escaped with a backslash.


set_entity_property(entity["sign_01"], "message", "This is the sign's message text.")

The above example demonstrates 3 different cases of a string being used: an entity name reference, the name of the property, and a text value to store in the property.

string.1496332669.txt.gz · Last modified: 2017/06/01 08:57 by justin