Full Version : Quest NPC trouble
xmlspawner >>Q&A >>Quest NPC trouble


<< Prev | Next >>

Vladimir- 05-20-2006
Hey there... just wandering if anyone can see where i'm going wrong here.

The quest NPC works fine up till field 70, where it is supposed to hand out a reward.

In the Gump I select a reward but nothing happens.

QUOTE
<?xml version="1.0" standalone="yes"?>
<XmlQuestNPC>
  <NPC>
    <Name>Ogden</Name>
    <Running>True</Running>
    <ProximityRange>3</ProximityRange>
    <NoTriggerOnCarried>ATTACHMENT,Supplies at the Dock,XmlQuestAttachment | Supplies at the Dock</NoTriggerOnCarried>
    <AllowGhost>False</AllowGhost>
    <SpeechPace>10</SpeechPace>
    <ResetTime>1</ResetTime>
    <ConfigFile>Supplies</ConfigFile>
    <SpeechEntries>9</SpeechEntries>
  </NPC>
  <SpeechEntry>
    <EntryNumber>0</EntryNumber>
    <ID>0</ID>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>10</EntryNumber>
    <ID>10</ID>
    <Text>{GETONTRIGMOB,name}! your a mage aren't you? Would you use your abilities to help me?</Text>
    <Condition>GETONTRIGMOB,classe=#Mage</Condition>
    <DependsOn>-2</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>20</EntryNumber>
    <ID>20</ID>
    <Keywords>yes,quest,What seems to be the problem?</Keywords>
    <DependsOn>10</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
    <Gump>GUMP,Supplies at the Dock,4/A shipment of supplies recently came into the dock. There is a crate there with an item of great importance to me, but alas the pier that its on is blocked off! I need a mage to teleport across from the adjacent peer and retrieve my ingredients! Would you do that for me?;I will try my best;ok;Whats in it for me?;money</Gump>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>30</EntryNumber>
    <ID>30</ID>
    <Keywords>money</Keywords>
    <DependsOn>20</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
    <Gump>GUMP,Supplies at the Dock,4/I can offer you a bag of reagents or some coin.;ok, I will help you;No thanks;no</Gump>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>40</EntryNumber>
    <ID>40</ID>
    <Keywords>ok</Keywords>
    <DependsOn>10,20</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
    <Gump>GUMP,Supplies at the Dock,3/Go to the docks to the south and retrieve my statue! hurry {GETONTRIGMOB,name}! It is of great value to me!</Gump>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>50</EntryNumber>
    <ID>50</ID>
    <Keywords>accept</Keywords>
    <Action>GIVE/&lt;questholder/name/Supplies at the Dock/notestring/Retrieve Dales' statue from the supply crate at the docks. You will have to teleport from the adjacent pier to get there./objective1/COLLECTNAMED,Dales' Statue,1/autoreward/false/repeatable/false ; SETONTHIS/doreset/true</Action>
    <DependsOn>40</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>60</EntryNumber>
    <ID>60</ID>
    <Condition>GETONCARRIED,Supplies at the Dock,questholder,iscompleted=true</Condition>
    <DependsOn>-1</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
    <Gump>GUMP,Supplies at the Dock,4/Thank you so very much {GETONTRIGMOB,name}! Please choose a reward!;1200 Gold Coins;gol;A bag of 50 of each normal reagent;ba</Gump>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>70</EntryNumber>
    <ID>70</ID>
    <Keywords>gol</Keywords>
    <Action>GIVE/gold,1200</Action>
    <DependsOn>60</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
  </SpeechEntry>
  <SpeechEntry>
    <EntryNumber>80</EntryNumber>
    <ID>80</ID>
    <Keywords>bag</Keywords>
    <Action>GIVE/bagofreagents</Action>
    <DependsOn>60</DependsOn>
    <Pause>1</Pause>
    <PrePause>-1</PrePause>
    <LockConversation>True</LockConversation>
    <AllowNPCTrigger>False</AllowNPCTrigger>
    <SpeechStyle>Regular</SpeechStyle>
    <SpeechHue>-1</SpeechHue>
  </SpeechEntry>
</XmlQuestNPC>


Any help would be great smile.gif

ArteGordon- 05-20-2006
A bag of 50 of each normal reagent;ba</Gump>

you have it generating the response 'ba' but your keyword is 'bag' for activating the reagent reward.
The gold one looks ok though.

Vladimir- 05-20-2006
Ye i'm trying to test it using the response for "gol" first... still nothing

ArteGordon- 05-20-2006
QUOTE (Vladimir @ May 20, 2006 08:12 pm)
Ye i'm trying to test it using the response for "gol" first... still nothing

ah, ok. I see that it is because of your NoTriggerOnCarried setting. That will apply to any non-banter entry. So it allows the gump entry to come up because it DependsOn -1, which only requires movement, but entry 70 and 80 will still required the NoTrig settings be satisfied as well as the keyword.

I may add a flag to individual entries to allow them to ignore the trig/notrig settings. It would be more flexible that way.

Vladimir- 05-21-2006
ahh ok, then I'll just have to make then choose their reward before they complete the quest. Thx ArteGordon

ArteGordon- 05-22-2006
I have added a new IgnoreCarried flag to xmldialog entries that will allow them to ignore the Trigger/NoTriggerOnCarried settings that normally control the activation . This will allow entries to be controlled only by their Condition field. In the [xmledit gump, the flag can be toggled by checking the new IgnoreCar box.

This will allow you to set up things like your reward entries that you want to keep separate from the main triggering conditions.

Just go to entries 70 and 80 and check the IgnoreCar box.

You will need to get the latest beta_311.zip update for the changes to XmlDialog.cs and XmlEdit.cs