Requirements

The QuestRequirement class is a representation of what the player needs to do to complete a specific part of a quest.

Creating Requirements

A quest reference is required for a quest requirement.

var quest = QT.GetQuest("MyQuestKey");

// questIDReference, key, requirementDetail, intValue
var requirement = new QuestRequirement(quest.ID, "SomeRequirementKey", "Some requirement", 1);

Adding Requirements

quest.AddRequirement(requirement);

Removing Requirements

quest.RemoveRequirement("SomeRequirementKey");

Getting Requirements

var requirement = quest.GetRequirement("SomeRequirementKey");

Updating Active Requirements

See Requirements Manager.

Last updated