If the text fields are static, you can read them directly from the dialogue database using, for example, GetActor(). Example:
Code: Select all
var actor = DialogueManager.masterDatabase.GetActor("Charles");
string rank = actor.LookupValue("Rank");
Debug.Log("Charles is " + rank);
Code: Select all
string rank = DialogueLua.GetActorField("Charles", "Rank").asString;
Debug.Log("Charles is currently " + rank);