Crossfire Server, Trunk
quest_condition Struct Reference

#include <quest.h>

+ Collaboration diagram for quest_condition:

Data Fields

int maxstep = 0
 
int minstep = 0
 
sstring quest_code = nullptr
 

Detailed Description

One condition to automatically move to a quest step.

Definition at line 20 of file quest.h.

Field Documentation

◆ maxstep

int quest_condition::maxstep = 0

The latest step that triggers the condition, to match, the stages must be between minstep and maxstep

Definition at line 24 of file quest.h.

Referenced by check_conditions(), QuestLoader::load(), quest_condition_from_string(), and quest_write_condition().

◆ minstep

int quest_condition::minstep = 0

The earliest step in the quest that triggers the condition, -1 means finished, 0 means not started

Definition at line 22 of file quest.h.

Referenced by check_conditions(), QuestLoader::load(), quest_condition_from_string(), and quest_write_condition().

◆ quest_code

sstring quest_condition::quest_code = nullptr

The quest that triggers the condition

Definition at line 21 of file quest.h.

Referenced by check_conditions(), QuestLoader::load(), quest_condition_from_string(), quest_destroy_condition(), and quest_write_condition().


The documentation for this struct was generated from the following file: