Full Version : Question about setting up quests
xmlspawner >>Q&A >>Question about setting up quests


<< Prev | Next >>

ArteGordon- 02-03-2006
that looks ok

Galfaroth- 02-03-2006
But when player has this attachement, the script again gives the List z Kopalni to him. So it doesn't work properly.

ArteGordon- 02-03-2006
SETONTRIGMOB/ATTACH/xmlvalue,Ma List,1

~GETONTRIGMOB,[ATTACHMENT,xmlvalue,Ma list,value]=1

The names are not the same. The tests are case sensitive.

Galfaroth- 02-03-2006
Yeah... you're right... Now the end of my quest: SETONTRIGMOB/Title/ - shade/Oboz/1/Ranga/1/ATTACH/xmlquestattachment,WObozie,21600;TAKE/Proba Cienia,questholder Bolded part doesn't work. Why? (it should destroy this questholder, because quest is done).

ArteGordon- 02-03-2006
the syntax for the TAKE keyword is

TAKE[,prob[,quantity[,true,[itemtype]]]]/itemname

so you could do

TAKE/Proba Cienia

or if you wanted to make sure that it only looked for questholders by that name

TAKE,1,1,false,questholder/Proba Cienia

the true/false arg to TAKE indicates whether the bank should also be searched.

Galfaroth- 02-04-2006
Okay it works. Another question wink.gif. 1. This is my Condition: GETONTRIGMOB,Rasa= 1 & GETONTRIGMOB,Oboz= 1 & (GETONTRIGMOB,Wins= 0 | GETONTRIGMOB,Loses= 0) Why doesn't it trigger (without paranthesis it trigger...). 2. How to make in condition that it is true if player is not carrying some item/attachment e.g: GETONCARRIED,Zadanie Thorusa,questholder,name="Zadanie Thorusa" So if player has this questholder it can't trigger (I know there is NoTrigOnCarried (for whole quest) but I wan't to set my own conditions for specific entries).

ArteGordon- 02-04-2006
QUOTE

1. This is my Condition: GETONTRIGMOB,Rasa= 1 & GETONTRIGMOB,Oboz= 1 & (GETONTRIGMOB,Wins= 0 | GETONTRIGMOB,Loses= 0) Why doesn't it trigger (without paranthesis it trigger...).


the compound conditional tests do not support grouping with parentheses. Tests are implicitly grouped using the following form

A & ( B & (C & D)))

so your test would be evaluated like

(GETONTRIGMOB,Rasa= 1 & ( GETONTRIGMOB,Oboz= 1 & (GETONTRIGMOB,Wins= 0 | GETONTRIGMOB,Loses= 0) ) )

QUOTE

2. How to make in condition that it is true if player is not carrying some item/attachment e.g: GETONCARRIED,Zadanie Thorusa,questholder,name="Zadanie Thorusa" So if player has this questholder it can't trigger (I know there is NoTrigOnCarried (for whole quest) but I wan't to set my own conditions for specific entries).


yes, this will work

~GETONCARRIED,Zadanie Thorusa,questholder,name="Zadanie Thorusa"

so would something like

~GETONCARRIED,Zadanie Thorusa,questholder,visible=true

The idea is to test for something that you know will be true if the item exists, and then use the NOT operator

Galfaroth- 02-04-2006
And last condition that isn't triggering: GETONCARRIED,,gold,amount > 104 (it should check if player has more than 104 gold and if so it triggers (usable for make our questnpcs to sell us sth (e.g for delivery quests)).

ArteGordon- 02-04-2006
you should use the AMOUNTCARRIED keyword instead.

QUOTE

- added the new "AMOUNTCARRIED,itemtype" keyword that will return the total amount of the specified type of item being carried in the backpack of the triggering mob.  You can use this to test for carried items like

IF/AMOUNTCARRIED,gold < 100/33

or add it to a Condition field in xmldialogs or in a triggering condition test on spawners

AMOUNTCARRIED,bandage>100


Checking the amount using GETONCARRIED will not return the correct amounts if there are multiple stacks or multiple items.

Galfaroth- 02-05-2006
Backing to my condition: GETONTRIGMOB,Rasa = 1 & ( GETONTRIGMOB,Oboz = 0 & ( GETONTRIGMOB,Wins = 0 | GETONTRIGMOB,Loses = 0 ) ) doesn't trigger... And another: ~GETONTRIGMOB,[ATTACHMENT,xmlquestattachment,DexterDiego,name]=DexterDiego should trigger only if player hasn't this attachement...

ArteGordon- 02-05-2006
you cannot place parentheses in the string. It has to look like

GETONTRIGMOB,Rasa = 1 & GETONTRIGMOB,Oboz = 0 & GETONTRIGMOB,Wins = 0 | GETONTRIGMOB,Loses = 0

Galfaroth- 02-05-2006
QUOTE (Galfaroth @ Feb 5 2006, 08:53 AM)
And another: ~GETONTRIGMOB,[ATTACHMENT,xmlquestattachment,DexterDiego,name]=DexterDiego should trigger only if player hasn't this attachement...

And this?

ArteGordon- 02-05-2006
~GETONTRIGMOB,[ATTACHMENT,xmlquestattachment,DexterDiego,name]=DexterDiego

You need to put the string you are testing for in double quotes

~GETONTRIGMOB,[ATTACHMENT,xmlquestattachment,DexterDiego,name]="DexterDiego"

Galfaroth- 02-05-2006
Here is my working condition npc:

CODE
 <NPC>
   <Name>Scatty</Name>
   <Running>True</Running>
   <ProximityRange>3</ProximityRange>
   <AllowGhost>False</AllowGhost>
   <SpeechPace>10</SpeechPace>
   <ResetTime>1</ResetTime>
   <SpeechEntries>3</SpeechEntries>
 </NPC>
 <SpeechEntry>
   <EntryNumber>10</EntryNumber>
   <ID>10</ID>
   <Text>You're weak man.</Text>
   <Keywords>hello</Keywords>
   <Condition>GETONTRIGMOB,Rasa = 1 &amp; GETONTRIGMOB,Oboz = 0 &amp; GETONTRIGMOB,Wins = 0 &amp; GETONTRIGMOB,Loses = 0</Condition>
   <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>
   <Text>You're my men.</Text>
   <Keywords>hi</Keywords>
   <Condition>GETONTRIGMOB,Rasa = 1 &amp; GETONTRIGMOB,Oboz = 0 &amp; GETONTRIGMOB,Wins &gt; 0 | GETONTRIGMOB,Loses &gt; 0</Condition>
   <DependsOn />
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
 </SpeechEntry>
Now works... Hadn't Depends on

Galfaroth- 02-07-2006
Okay I've done about 10 quests, thanks Arte smile.gif Now players can play Gothic I on my UO shard. Now I need a command for trigger dialog if player is actually escorting named mob. E.G. To trigger some dialog player must escort mob named Lester. If he escorts him, dialog starts. Is there sth like: GETONTRIGMOB,Escortermobname,name = "Lester" blah blah? Or could you make it in new release?