To do this, just format your text like this example:
Code: Select all
Kids, say hello to <player>! <They> <are> so cool, look at <their> style wow I love <them>.
To use it, put the charnames.lua file in your level/episode folder and write this line in the luna.lua file:
Code: Select all
local charnames = require("charnames")
The library also comes with a variable which can be set to true to show the current character and their pronouns on screen. It can be useful for debug and testing.
Code: Select all
charnames.printMyCharacter = true
Note - The library currently doesn't support littleDialogue and other libraries for custom text boxes. At the moment, it only works properly with vanilla text boxes.