From 57f3c491880b65b8ade022d26bf4fe34dcbf7209 Mon Sep 17 00:00:00 2001 From: Major- Date: Mon, 2 Mar 2015 09:10:29 +0000 Subject: [PATCH] Add get_dialogue method in dialogue.rb. --- data/plugins/dialogue/dialogue.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/plugins/dialogue/dialogue.rb b/data/plugins/dialogue/dialogue.rb index 935cebdf..08836464 100644 --- a/data/plugins/dialogue/dialogue.rb +++ b/data/plugins/dialogue/dialogue.rb @@ -74,6 +74,12 @@ def declare_emote(name, id) end +# Sends the dialogue from the specified Conversation with the specified name. +def get_dialogue(conversation, name) + CONVERSATIONS[conversation].part(name) +end + + # Sends the specified dialogue. def send_dialogue(player, dialogue) type = dialogue.type