Esempio n. 1
0
    def show_dialogue(self, npc, dialogue):
        """
        Show a dialogue.

        Args:
            npc: (optional) NPC's object.
            dialogue: dialogue's key.

        Returns:
            None
        """
        # Get next sentences_list.
        sentences = DIALOGUE_HANDLER.get_dialogue_sentences(
            self, npc, dialogue)

        # Send the dialogue to the player.
        self.save_current_dialogue(sentences, npc)
        self.msg({"dialogue": sentences})