Full Version : multiple or statements in NoTriggerOnCarried?
xmlspawner >>Troubleshooting >>multiple or statements in NoTriggerOnCarried?


<< Prev | Next >>

Fafnir- 04-03-2006
I've got a quest where we give an idol from a choice of 10. I deliver the idol, locked in their pack. I want this to be a one time only deal, so I am checking with NoTriggerOnCarried with multilple ors to see if they have any of the idols. Is so the questnpc should not speak to them and thus not offer them another idol.

This works if the first or second idol in the list is chosen. If they chose any other idol, it will not detect it in the pack.

The npc file is attached.

Edit: well, it says I can attach, but I don't see it. I will paste it here:

CODE
<?xml version="1.0" standalone="yes"?>
<XmlQuestNPC>
 <NPC>
   <Name>Giver of Races</Name>
   <Running>True</Running>
   <ProximityRange>3</ProximityRange>
   <NoTriggerOnCarried> Daemon Idol,item | Orc Idol,item | Lich Idol,item | Gargoyle Idol,item | Mongbat Idol,item | Ogre Idol,item | Pixie Idol,item | VampireBat Idol,item | Wolf Idol,item | Dragon Idol,item </NoTriggerOnCarried>
   <AllowGhost>False</AllowGhost>
   <SpeechPace>10</SpeechPace>
   <ResetTime>0.0833333333333333</ResetTime>
   <ConfigFile>racegiver</ConfigFile>
   <SpeechEntries>18</SpeechEntries>
 </NPC>
 <SpeechEntry>
   <EntryNumber>10</EntryNumber>
   <ID>10</ID>
   <Text>Do not be afraid! I am not what I apear to be.</Text>
   <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>
   <DependsOn>10</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Giver of Races,1/Here we have a item which allows a player to take on the form of another race. Would you like to learn about it?</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>30</EntryNumber>
   <ID>30</ID>
   <Text>You may return to me anytime before you leave the Training Grounds, if you change your mind.</Text>
   <Keywords>no</Keywords>
   <DependsOn>20</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>40</EntryNumber>
   <ID>40</ID>
   <Keywords>yes</Keywords>
   <DependsOn>20</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Giver of Races,0/Good! The item is called an idol and you may choose between 10 possible races.</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>50</EntryNumber>
   <ID>50</ID>
   <Keywords>done</Keywords>
   <DependsOn>40</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Giver of Races,0/Please choose one of the following races. Note that you may only choose one and once you choose you may not change, so choose wisely!</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>60</EntryNumber>
   <ID>60</ID>
   <Keywords>done</Keywords>
   <DependsOn>50</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Giver of Races,4/The races are; Daemon; daemon; Orc; orc; Gargoyle; gargoyle; Lich; lich; Mongbat; mongbat; Ogre; ogre; Pixie; pixie; VampireBat; vampire; Wolf; wolf; Dragon; dragon; I cannot decide!; end</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>70</EntryNumber>
   <ID>70</ID>
   <Keywords>daemon</Keywords>
   <Action>GIVE/&lt;DaemonIdol/movable/false</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>orc</Keywords>
   <Action>GIVE/&lt;OrcIdol/movable/false</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>90</EntryNumber>
   <ID>90</ID>
   <Keywords>lich</Keywords>
   <Action>GIVE/&lt;LichIdol/movable/false</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>100</EntryNumber>
   <ID>100</ID>
   <Keywords>gargoyle</Keywords>
   <Action>GIVE/&lt;GargoyleIdol/movable/false</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>110</EntryNumber>
   <ID>110</ID>
   <Keywords>mongbat</Keywords>
   <Action>GIVE/&lt;MongbatIdol/movable/false</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>120</EntryNumber>
   <ID>120</ID>
   <Keywords>ogre</Keywords>
   <Action>GIVE/&lt;OgreIdol/movable/false</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>140</EntryNumber>
   <ID>140</ID>
   <Keywords>pixie</Keywords>
   <Action>GIVE/&lt;PixieIdol/movable/false</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>150</EntryNumber>
   <ID>150</ID>
   <Keywords>vampire</Keywords>
   <Action>GIVE/&lt;VampireBatIdol/movable/false</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>160</EntryNumber>
   <ID>160</ID>
   <Keywords>wolf</Keywords>
   <Action>GIVE/&lt;WolfIdol/movable/false</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>170</EntryNumber>
   <ID>170</ID>
   <Keywords>dragon</Keywords>
   <Action>GIVE/&lt;DragonIdol/movable/false</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>180</EntryNumber>
   <ID>180</ID>
   <Text>You may return to me anytime before you leave the Training Grounds, if you decide.</Text>
   <Keywords>end</Keywords>
   <DependsOn>60</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
 </SpeechEntry>
 <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>
</XmlQuestNPC>


ArteGordon- 04-03-2006
are you using the latest version of xmlspawner? There was a problem with evaluating multiple conditional tests that was fixed in the most recent version.

Fafnir- 04-03-2006
I think I'm one version behind. I'll upgrade and see if that does it. Thanks.

Fafnir- 04-03-2006
I just upgraded to 3.08 and it's still only suppressing the dialog when either daemon idol or orc idol are in the pack. For any others, it is just like they are not there. I have checked the idol names with [get name and they are just as I have them.

ArteGordon- 04-03-2006
I'll check it out.

ArteGordon- 04-04-2006
ah, sorry, I thought it was in v3.08 but the fix is going into the next update. You can find it in beta_309.zip

http://xmlspawner.15.forumer.com/index.php?showtopic=53

Fafnir- 04-04-2006
Thanks Arte! I'll give your beta 3.09 a spin and let you know! xmlspawner/Checked2.gif

Fafnir- 04-04-2006
That's better, but it's still not seeing all of my items in pack. I am getting about 8 out of 10 and there are a few of my GIVE statements that are not working now, whereas they all were before. Are we pushing the system to it's limit?

ArteGordon- 04-05-2006
QUOTE (Fafnir @ April 04, 2006 09:18 pm)
That's better, but it's still not seeing all of my items in pack. I am getting about 8 out of 10 and there are a few of my GIVE statements that are not working now, whereas they all were before. Are we pushing the system to it's limit?

no, it should all work. Just point out the ones that arent working and I will take a look.

Fafnir- 04-05-2006
That's what I get for testing late in the day! I found 2 problems on my end and all of them work now! Good work Arte! Will the full 3.09 release be soon?

ArteGordon- 04-05-2006
QUOTE (Fafnir @ April 05, 2006 08:33 am)
That's what I get for testing late in the day! I found 2 problems on my end and all of them work now! Good work Arte! Will the full 3.09 release be soon?

There are a few more things that I would like to add, but probably in a week or so.

Fafnir- 04-05-2006
Cool, looking forward to it! xmlspawner/ok.bmp