All right. So the class selection system that's being used will provide the players with a basic class token at the time of class selection. For the "Soldier" class, this item will be called "Enlistment Papers". It's just going to be a book or a scroll that carries the name, but I'm not exactly sure how to make the questers look for that scroll/book? The first NPC would need a TriggerOnCarried function, and then that NPC gives a quest telling the player to GIVENAMED those papers. So my questions are these:
1) What is the proper syntax for preparing NPC 1's TriggerOnCarried for the book/scroll titled "Enlistment Papers"?
2) How do I make sure that when NPC 2 receives those papers it (a) satisfies NPC 1's quest requirements and (
initializes NPC 2's portion of the quest?
If I'm not being clear please let me know and I'll try to clarify!
2) For the TriggerOnCarried string, you just need to enter the name of the item, so
Enlistment Papers
If you wanted to be more specific you could also specify the type of the item, like
Enlistment Papers,scroll
if it happened to be a scroll.
2) if you have specified a GIVENAMED objective in a quest, then it will be automatically satisfied as soon as the player gives the named NPC the named item.
I knew it would be something complicated like that.
Thanks.
just make sure that the NPC that you are giving the papers to is an XmlQuestNPC or some other npc derived from the TalkingBaseCreature class, otherwise it wont recognize the item as satisfying a quest objective.
I'm not quite sure I understand how the XmlQuestTokens are working. If I have my NPC 1 generating one of those blue objective books, that's the token right? So I should be able to add more objectives to that book if I understand this correctly.
I was doing some reading on the XML Wiki about QuestNotes and SETONCARRIED. Am I heading in the right direction?
Also, on another sidenote, is it possible to denote two actions in one action line? Are these actions seperated by commas? How does this work?
EDIT: Okay, so I've got my second NPC to do everything I want him to do except add a second objective while completing the first. I was able to get him to complete the first objective with the SETONCARRIED function, but I have no idea how to add a second objective to the same book. Also, there are no quest points being given when I use the SETONCARRIED to complete the objective task. This may or may not have relevance to my shard, but in the event we decide to make quest points worth something, it will suddenly become very important.
Would it be easier to simply DELETE the current book after satisfying the objective and giving the necessary quest points and then just create a new one with the new objective? I'd really like for the player to see the whole progression of their quest with one book.
QUOTE |
I'm not quite sure I understand how the XmlQuestTokens are working. If I have my NPC 1 generating one of those blue objective books, that's the token right? So I should be able to add more objectives to that book if I understand this correctly.
I was doing some reading on the XML Wiki about QuestNotes and SETONCARRIED. Am I heading in the right direction?
|
yes, you are correct.
QUOTE |
Also, on another sidenote, is it possible to denote two actions in one action line? Are these actions seperated by commas? How does this work?
|
Separate them with a semicolon.
QUOTE |
EDIT: Okay, so I've got my second NPC to do everything I want him to do except add a second objective while completing the first. I was able to get him to complete the first objective with the SETONCARRIED function, but I have no idea how to add a second objective to the same book.
|
To use SETONCARRIED to add another objective, you can just set the desired 'objective' property. You can do it at the same time you set the 'completed' property of the first quest objective, like this
SETONCARRIED,yourquest,questholder/completed1/true/objective2/KILL,orc/description2/Cleanse the orc infestation
Take a look at this example from dracondar's quest that can be found in xmlextras.zip.
SETONCARRIED,Dracondar's lute/completed2/true/objective3/Find Dracondar at the Shrine of Sacrifice
There are also examples in the blather and harmon quests.
SETONCARRIED,Harmon's Quest/Objective2/KILLNAMED,Oberon the Wicked/Completed1/true/Objective3/GIVENAMED,Harmon,Harmon's note/Description3/Return the note to Harmon
QUOTE |
Also, there are no quest points being given when I use the SETONCARRIED to complete the objective task. This may or may not have relevance to my shard, but in the event we decide to make quest points worth something, it will suddenly become very important.
|
Quest points are automatically handed out when a questbook is actually deleted.
QUOTE |
Would it be easier to simply DELETE the current book after satisfying the objective and giving the necessary quest points and then just create a new one with the new objective? I'd really like for the player to see the whole progression of their quest with one book.
|
While you can certainly delete a questholder and hand out another, I agree that in many cases (such as the sample quests included in xmlextras) you want to keep the progression and simply add new objectives.