Full Version : Tutorial Links
xmlspawner >>XMLSpawner - Tutorials >>Tutorial Links


<< Prev | Next >>

ArteGordon- 01-31-2006
I think in the other thread the problem was that they had used the html code &lt; instead of the actual '<' char, like

GIVE/<questholder/name/blah/.... >

You remove a book by just placing it in the world. It will delete itself after asking if you really want to do that.
It will not allow you put it in another container to prevent stocking them, dealing them, etc.

Sunshine- 01-31-2006
ahh ok and can I make them go into the back pack instead of on the ground when they accept the quest?


ArteGordon- 01-31-2006
if you have this properly formatted

GIVE/<questholder/name/blah/.... >

then it will go into their pack

Sunshine- 01-31-2006
I really am sorry for keep asking what has to be silly and bothersome questions but I want to learn to do this properly...

here is what I have ..so maybe you can tell me where I am messing up as I tried to follow the how to page but seems I messed up


GIVE/&lt;questholder/name/Find and kill the Tiderc Darc/notestring/I need that package. Find him and kill him/objective1/GIVENAMED,Sandra,Sandra's Package,1/autoreward/true/rewardstring/@bag/ADD/FinestSilkCloak

ArteGordon- 01-31-2006
when you look the string while in the game, do you see

GIVE/&lt;questholder/name/Find and kill the Tiderc Darc/notestring/I need that package. Find him and kill him/objective1/GIVENAMED,Sandra,Sandra's Package,1/autoreward/true/rewardstring/@bag/ADD/FinestSilkCloak

or

GIVE/<questholder/name/Find and kill the Tiderc Darc/notestring/I need that package. Find him and kill him/objective1/GIVENAMED,Sandra,Sandra's Package,1/autoreward/true/rewardstring/@bag/ADD/FinestSilkCloak

The &lt; is the html code for '<' and is only used when entering text into an XML file. When entering the strings ingame, use the actual char '<'

Sunshine- 01-31-2006
QUOTE (ArteGordon @ Jan 31 2006, 11:23 AM)
when you look the string while in the game, do you see

GIVE/&lt;questholder/name/Find and kill the Tiderc Darc/notestring/I need that package. Find him and kill him/objective1/GIVENAMED,Sandra,Sandra's Package,1/autoreward/true/rewardstring/@bag/ADD/FinestSilkCloak

or

GIVE/<questholder/name/Find and kill the Tiderc Darc/notestring/I need that package. Find him and kill him/objective1/GIVENAMED,Sandra,Sandra's Package,1/autoreward/true/rewardstring/@bag/ADD/FinestSilkCloak

The &lt; is the html code for '<' and is only used when entering text into an XML file. When entering the strings ingame, use the actual char '<'




I am not sure how to look in the game to see which string it is ..that is the string I placed when I did [xmledit I added that string to the action section as per the instructions , other than that I am lost.. but still trying lol
http://www.ageofdarkstone.com/txt/questtut...st4Dummies.html

Sorry hun I do appreciate your being so patient with me on this

ArteGordon- 01-31-2006
yeah, I think that there is a small error in the tutorial. The gump picture shows the correct string (with the '<'), but the text description has the wrong string (with the &lt;) so if you cut and pasted it from the text, you probably have the wrong string in there.

To look at the string ingame, just bring up the [xmledit gump, select that entry, and look at the string in the Action field. If you see '&lt;' then change it to a '<'

In the part of the tutorial that says

QUOTE

EntryNumber = 70
Keywords = accept
Action = GIVE/&lt;questholder/name/Kill Bobo/notestring/Bobo must go.  Find him and kill him/objective1/KILLNAMED,Bobo,1/autoreward/true/rewardstring/@bag/ADD/gold,200
DependsOn = 50

This is the result:


it should actually look like

QUOTE

EntryNumber = 70
Keywords = accept
Action = GIVE/<questholder/name/Kill Bobo/notestring/Bobo must go.  Find him and kill him/objective1/KILLNAMED,Bobo,1/autoreward/true/rewardstring/@bag/ADD/gold,200
DependsOn = 50

This is the result:

Sunshine- 01-31-2006
That was it now it works just as I hoped it would..

Thanks soo much.. you make learning this soo much nicer and easier..

Is there a way to set it to one time quest?


When there is a new or addtional informational page like the previously listed one done ..could someone concider adding to it how to :::::

Make the quest non solo and maybe how you adjust difficulty levels?.....


The step by step thing really helps nooobies like me to take the instructions and try to mold them to fit our visions...

I am trying to read over as much as I can about how to use the xmls to make quest ...I would be crazy not to ...they are just soo much nicer and easier

ArteGordon- 01-31-2006
to make them non-solo, you just have to set the PartyEnabled flag on the questholder. To set the difficulty, just set the Difficulty property. Like this

QUOTE

Action = GIVE/<questholder/name/Kill Bobo/PartyEnabled/true/Difficulty/5/notestring/Bobo must go.  Find him and kill him/objective1/KILLNAMED,Bobo,1/autoreward/true/rewardstring/@bag/ADD/gold,200


Note, you dont have to put them in that exact position in the string. Pretty much anywhere will do. The string gets evaluated from left to right, so sometimes you can use that to your advantage if you want certain properties to be set before others, but in this case it doesnt matter.

You can also set the PartyRange property to determine how far away party members can be and still get credit for quest objectives.

from xmlspawner2.txt

QUOTE
Added the PartyEnabled and PartyRange properties to XmlQuestToken items like the QuestNote.  When this is set to true, KILL and COLLECT type quests will allow all members of a party to have quest objectives satisfied if any member of the party kills or collects quest objective targets.  For the KILL type quests, each member will get credit for a kill made by the party.  For COLLECT type quests, regardless of who in the party collects the target items, they will be distributed to randomly selected party members. If the PartyRange is set to a value zero or greater, then only members of the party within the specified range will share the quest targets. The default range is -1 which means infinite range. PartyEnabled is set to false by default.  Both party enabled and range status are shown in the upper right corner of the quest status gump. (Thanks to Bane for the suggestion).


I will be adding info from these types of threads to the How tos when I get the chance.

Sunshine- 01-31-2006
Ok thank you again I look forward to trying to learn all I can from you and the others here..

Can the quest be set to one time only? meaning once a player has completed it they can not repeat it?

ArteGordon- 01-31-2006
from xmlspawner2.txt

QUOTE

- added support for flagging quests as either non-repeatable, or repeatable but only after some time period.  If the Repeatable property is set to false on a questholder or questnote item, when the quest is completed and deleted, the player will be given a quest attachment (XmlQuestAttachment)  that will flag the player as having completed the quest.  If the Repeatable property is set to true (the default) and the NextRepeatable property is set to a TimeSpan value, then the attachment will be set to expire after that time.  As long as the XmlQuestAttachment with the quest name is attached to the player, objectives for that quest cannot be completed. The quest can still be held by the player and when the attachment expires, the player can then repeat the quest.  Note, staff can add or remove these attachments in-game using [addatt and [delatt to manually control whether specific players can repeat specific quests. The repeatability status of a quest will be shown at the bottom of the quest status gump.
For example spawning a quest as

questholder/name/waitforme/objective1/KILL,orc/autoreward/true/rewardstring/ARMOR,1,2/nextrepeatable/10:00

would make a quest named 'waitforme' with the objective to kill an orc and a random armor auto reward that could only be repeated once every 10 hours.

questholder/name/onlyone/objective1/KILL,balron/autoreward/true/rewardstring/ARMOR,4,5/repeatable/false

would make a quest named 'onlyone' with the objective to kill a balron and a random armor auto reward that could only be done once.

Sunshine- 01-31-2006
Thank you very much I have learned soo much today, and for the 1st time in a long time I am exicted about the thought of learning to script. Moreso I do not feel soo stupid like I normally do when I have dared to ask for help on A forum...THANK YOU

skargon- 03-19-2006
So I tried remaking the quest on the "quest for dummies". I put "Kill Bobo" on the NoTrigOnCarried, and I also made it repeatable/false. I also changed the prize to something unique, and added that to the NoTrigOnCarried.

QUOTE
NoTrigOnCarried: Kill Bobo,mediumbagofholding


The thing is, even though it has the questbook on NoTrig, I can sit there and get the quest over and over and over again (as long as I haven't completed it)

I added the unique reward, hoping that if the player had it in their posession, it wouldn't trigger the quest.... Doesn't matter. Quest still triggers. (Although if I have it as repeatable/false, I don't get the questbook)


Did I make an error somewhere? I thought the "NoTrigOnCarried" would prevent the quest from starting if they had the item listed..... huh.gif

Help?

ArteGordon- 03-19-2006
you would put the name of the item and optionally the type in the NoTriggerOnCarried field. In your case you would want it to be the name of the questholder, and the type would be 'questholder'
If the item is also a questholder then you can optionally add objective number arguments. The syntax is

name[,type][,EQUIPPED][,objective,objective,...]

What is the exact string that you entered?

If it is "Kill Bobo,mediumbagofholding" then that would not be a valid string.

If "Kill Bobo" is the name of the questholder, then you could use something like

Kill Bobo,questholder

If it is still triggering, then check the spelling. The names must match exactly, including capitalization.

Vladimir- 04-23-2006
Hey all... i'm new to XmlQuest and i've been trying to do the tutorial quests and eventually set up my own...

When i tried the tutorial, it went well up to the point where you kill Bobo. I killed him but my quest log did not register the objective as completed... I then made a similar quest to see where i had made a mistake and I got the same problem

here is my .npc file

CODE
<?xml version="1.0" standalone="yes"?>
<XmlQuestNPC>
 <NPC>
   <Name>Talia</Name>
   <Running>True</Running>
   <ProximityRange>3</ProximityRange>
   <NoTriggerOnCarried>Kill The Orc</NoTriggerOnCarried>
   <AllowGhost>False</AllowGhost>
   <SpeechPace>10</SpeechPace>
   <ResetTime>1</ResetTime>
   <SpeechEntries>8</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>Hi!</Text>
   <DependsOn>-1</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>Good Morning!</Text>
   <DependsOn>-1</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>30</EntryNumber>
   <ID>30</ID>
   <Text>Wouldst thou mind helping a troubled lady, brave traveler?</Text>
   <DependsOn>10,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,ok</Keywords>
   <DependsOn>30</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Talia,4/Will you help me restore my trade, whom the Orcs have brought to a standstill?;Ok;ok;Whats in it for me?;money</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>50</EntryNumber>
   <ID>50</ID>
   <Keywords>ok</Keywords>
   <DependsOn>40,60</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Talia,3/I have lost too much trade to those devilish Orcs. would you help me deal with them? I often lumber for wood in the near-by forest, but as of late it is too dangerous for me because of the Orc that roams there. Will you rid him from those trees good traveler? I will kindly reward you.</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>60</EntryNumber>
   <ID>60</ID>
   <Keywords>money</Keywords>
   <DependsOn>40</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
   <Gump>GUMP,Talia,4/I can reward you with 200 gold!;Ok;ok;No thanks;No</Gump>
 </SpeechEntry>
 <SpeechEntry>
   <EntryNumber>70</EntryNumber>
   <ID>70</ID>
   <Keywords>accept</Keywords>
   <Action>GIVE/&lt;questholder/name/Kill the Orc/notestring/Kill the orc in the forest/objective1/KILL,orc,1/autoreward/true/rewardstring/@bag/ADD/gold,200</Action>
   <DependsOn>50</DependsOn>
   <Pause>1</Pause>
   <PrePause>-1</PrePause>
   <LockConversation>True</LockConversation>
   <AllowNPCTrigger>False</AllowNPCTrigger>
   <SpeechStyle>Regular</SpeechStyle>
   <SpeechHue>-1</SpeechHue>
 </SpeechEntry>
</XmlQuestNPC>


the questholder registers the objective and says i need to kill 1 Orc. But after killing an Orc it still says the objective is incomplete. Where am i going wrong? :/

Thx