Example #1
0
    // Dialogue is pulled from this method by providing actors name and set/line id
    public string getActorLineById(string actor, int setId, int lineId)
    {
        ActorDialogue actorDialogue;

        if (dialogue.TryGetValue(actor, out actorDialogue))
        {
            DialogueLine dialogueLine = actorDialogue.getDialogueLineById(setId, lineId);
            if (dialogueLine != null)
            {
                return(dialogueLine.getText());
            }
            else
            {
                return("FAIL");
            }
        }
        else
        {
            return("FAIL, NO VALUE");
        }
    }