Anything you put inside quotation marks. Typically words or sentences e.g. "This is a string"
, 'so is this'
You can create strings with both double quotes ("
) and single quotes ('
). There is no difference between the two; "Hello"
is identical to 'Hello'
. Note, however, that if you want to use double quotation marks inside a string which is enclosed inside double quotes, you need to escape it with a backslash i.e. "These quotes are \"escaped\""
. The same goes for using single quotes inside a string that’s enclosed using single quotes. You can, however, use double quotes inside a single-quoted string and vice versa e.g. "This apostrophe isn't a problem"
.
The most common place you will see strings in Ren’Py script is for dialogue e.g. e "This is some dialogue."