Class engine.generator.interface.ActorQuest
Handles actors quests
Methods
engine.generator.interface.ActorQuest:grantQuest (quest, args)
Grants a quest to an actor from the given quest definition
engine.generator.interface.ActorQuest:setQuestStatus (quest, status, sub)
Sets the status of a quest for an actor If the actor does not have the quest, does nothing
engine.generator.interface.ActorQuest:hasQuest (id)
Checks if the actor has this quest
engine.generator.interface.ActorQuest:isQuestStatus (quest, status, sub)
Checks the status of the given quest If the actor does not have the quest, does nothing
engine.generator.interface.ActorQuest:removeQuest (id)
Removes the quest completely from the actor.
Methods
- engine.generator.interface.ActorQuest:grantQuest (quest, args)
-
Grants a quest to an actor from the given quest definition
Parameters:
- quest
- args
- engine.generator.interface.ActorQuest:setQuestStatus (quest, status, sub)
-
Sets the status of a quest for an actor
If the actor does not have the quest, does nothing
Parameters:
- quest
- status
- sub
- engine.generator.interface.ActorQuest:hasQuest (id)
-
Checks if the actor has this quest
Parameters:
- id
- engine.generator.interface.ActorQuest:isQuestStatus (quest, status, sub)
-
Checks the status of the given quest
If the actor does not have the quest, does nothing
Parameters:
- quest
- status
- sub
- engine.generator.interface.ActorQuest:removeQuest (id)
-
Removes the quest completely from the actor.
USE WITH CAUTION
Parameters:
- id