Example code of how I'm doing it - basically it is a basic quest with two different endings, and each ending is a different inventory item as a dummy token. This code is for turning in the quest and getting a specific response based on which ending you have. If I have just one ifitem on the page it works fine with the required item, but if both of them are on the page and only one item is present, it won't pass that flag, if that makes sense?
Code: Select all
Page
{
Link = "QuestDoneEnding1";
IfItem
{
item = "TestQuestTokenDone1";
amount = 1;
}
Link = "QuestDoneEnding2";
IfItem
{
item = "TestQuestTokenDone2";
amount = 1;
}
PageName = "Quest2";
Name = "testnpc";
Panel = "NPCC";
Dialog = "How did you go?";
Goodbye = "RANDOM_GOODBYE";
}