I thought about simply having fields with the same name, and a helper function to gather them in an array when needed.
Like this:


Short question, would that break anything? The dialogue editor doesn't seem to mind.
Code: Select all
List<Field> portraitFields = DialogueManager.masterDatabase.GetActor("Player").fields.Find(x => x.title == "Portrait");
Code: Select all
string value = DialogueLua.GetActorField("Player", "Portrait").asString;