Specifically, let's say I have an external save system, and I store the 'state' of the various characters the player has met. Now I want to see if each of those characters was properly introduced, and set their display names on load if so. I have this snippet of code:
Code: Select all
foreach (string charac in characters) { // iterate over characters we've met
if (characters[charac] != "encountered") { // if not just 'encountered', they are at least introduced
ChangeActorNameLua.ChangeActorName(charac, charac); // so set it to their real name
}
}
For reference, here's the ChangeActorName stuff.