If you mean saving a variable, so you can reload it when you play the game again, then you'll need to use the saveVars function or save the string in a text file. Either way you'll need a string variable, which can be used to access the text you want. Here's an example.
Create a string variable saveText, and put it into the a Save Group (like savefile).
To copy the text into the string saveText, use this.
- Code: Select all
strcpy(saveText,actor.text);
To save the variable you'll need to save the save group you put saveText in.
- Code: Select all
saveVars("savefile", "savefile");
Now when you want to load the string into a text actor, you can use this.
- Code: Select all
loadVars("safefile", "safefile");
strcpy(actor.text, saveText);