View Single Post
Old 05-29-2004, 12:09 AM   #12 (permalink)
Styla
 
Join Date: Aug 2003
Location: Omaha, Nebraska
Age: 54
Posts: 42
Send a message via ICQ to Styla Send a message via MSN to Styla
Cool

Quote:
Originally Posted by joantinet
Thanks Arya this is so cool. I've been waiting for someone to script this in RunUO. Very nice not only for quests, also for RP Shards.

Is there any way to make the NPC mantain a conversation, and at the end of it respond to the "main" keyword? I mean, If I want the NPC to say where is a treasure, but I want my players to ask the NPC first about the legend of the world, about the ships that used to sail in sosaria's seas... and finally, when the NPC reaches the part of the history concerning treasures, when you say whatever+treasure she answers. I just dont want players to tell his friends the keyword, go there and get the location and stuff inmediately...

thanks in advance
A quick glance at the code shows the following:
Code:
private class SpeechEntry
{
                // Means all keywords must be matched for the NPC to respond
	private bool m_MatchAll = false;
Set m_MatchAll = true;
Then just add most of the sentence:
Player: Can you tell me where is Morgan's treasure chest hidden?
keywords: where morgan's chest hidden?
That should make the NPC match everything and keep it from one keyword.
That is, if I read the code and description right.
-------------------------------------------------------------------------------------------------------------------------------------
"Wrong is wrong, even if everybody is doing it, and right is right, even if nobody is doing it." -Bishop Fulton J. Sheen
Styla is offline