Full Version : Checking attachment as a condition
xmlspawner >>Q&A >>Checking attachment as a condition
<< Prev | Next >>
dagormanu- 05-25-2006
My quests are going great (Thanks for the help!), but I have an issue now.
Once a player completes one of my nonrepeatable quests, the NPC still offers them the quest. They can accept the quest only to find the book says it is not repeatable.
I have confirmed that the XmlQuestAttachment is being added to the player and all that is working correctly. I just need to add a condition to the QuestNPC so that he does not trigger his speech if the player has the attachment.
The NPC already has a NoTrigOnCarried set to the name of the questholder (so he doesn't ask them for help once they already are on the quest). Now I need something similar to prevent the offer if they've completed it.
Thanks!
Vladimir- 05-25-2006
add something like this to your NoTriggerOnCarried bar:
so if you already have the name of the quest holder it would be
Questholder | ATTACHMENT,Quest Name,XmlQuestAttachment
ie
Kill Bobo | ATTACHMENT,Kill Bobo,XmlQuestAttachment
That will check to see if the player already has the attachment, and then won't trigger if he does have it.
dagormanu- 05-25-2006
Perfect. works like a champ. Thanks!