Module ...
Handle quests
Functions
| _M:check (prop, ...) | Check for an quest property If not a function it returns it directly, otherwise it calls the function with the extra parameters | 
| _M:isCompleted (sub) | Checks if the quest (or sub-objective) is complete | 
| _M:isEnded () | Checks if the quest is ended (DONE or FAILED) | 
| _M:isStatus (status, sub) | Checks the quests status or sub-objective status | 
| _M:setStatus (status, sub, who) | Sets the quests status or sub-objective status | 
Functions
- _M:check (prop, ...)
- 
Check for an quest property If not a function it returns it directly, otherwise it calls the function with the extra parameters
Parameters- prop: the property name to check
- ...:
 
- _M:isCompleted (sub)
- 
Checks if the quest (or sub-objective) is complete
Parameters- sub: a subobjective id or nil for the whole quest
 Return value:true or false
- _M:isEnded ()
- 
Checks if the quest is ended (DONE or FAILED)
Return value:true or false
- _M:isStatus (status, sub)
- 
Checks the quests status or sub-objective status
Parameters- status: one of the possible quest status (PENDING, COMPLETED, DONE, FAILED)
- sub:
 
- _M:setStatus (status, sub, who)
- 
Sets the quests status or sub-objective status
Parameters- status: one of the possible quest status (PENDING, COMPLETED, DONE, FAILED)
- sub:
- who: