Go to the documentation of this file.
25 #define QUESTFILE_NEXTQUEST 0
26 #define QUESTFILE_QUEST 1
27 #define QUESTFILE_QUESTDESC 2
28 #define QUESTFILE_STEP 3
29 #define QUESTFILE_STEPDESC 4
30 #define QUESTFILE_STEPCOND 5
31 #define QUESTFILE_COMMENT 6
47 if (strcmp(read,
"end_setwhen") == 0) {
58 LOG(
llevError,
"Invalid line '%s' in setwhen block for quest %s=n", read,
quest->quest_code);
63 step->conditions.push_back(cond);
64 LOG(
llevDebug,
"condition added for step %d of quest %s, looking for quest %s between steps %d and %d\n",
69 if (strcmp(read,
"end_description") == 0) {
89 if (strcmp(read,
"end_step") == 0) {
94 if (strcmp(read,
"finishes_quest") == 0) {
95 step->is_completion_step = 1;
98 if (strcmp(read,
"description") == 0) {
103 if (strcmp(read,
"setwhen") == 0) {
107 LOG(
llevError,
"quests: invalid line %s in definition of quest %s in %s:%zu!\n",
113 if (strcmp(read,
"end_description") == 0) {
131 if (strcmp(read,
"end_comment") == 0) {
135 quest->quest_comment = (*comment !=
'\0') ?
add_string(comment + 1) : NULL;
145 if (strcmp(read,
"end_quest") == 0) {
155 if (strcmp(read,
"description") == 0) {
161 if (strncmp(read,
"title ", 6) == 0) {
166 if (sscanf(read,
"step %d", &i)) {
174 if (sscanf(read,
"restart %d", &i)) {
175 quest->quest_restart = i;
178 if (strncmp(read,
"parent ", 7) == 0) {
183 if (strncmp(read,
"face ", 5) == 0) {
188 if (strncmp(read,
"comment", 7) == 0) {
194 if (sscanf(read,
"is_system %d", &i)) {
195 quest->quest_is_system = (i ? true :
false);
203 if (strncmp(read,
"quest ", 6) == 0) {
214 if (strcmp(read,
"") == 0)
217 LOG(
llevError,
"quest: invalid file format for %s, I don't know what to do with the line %s\n",
filename.c_str(), read);
221 LOG(
llevError,
"quest: quest definition file %s read in, ends with state %d\n",
filename.c_str(), in);
virtual void assetDefined(const archetype *asset, const std::string &filename)
#define QUESTFILE_QUESTDESC
QuestLoader(Quests *quests, Faces *faces, AssetsTracker *tracker)
size_t bufferreader_current_line(BufferReader *br)
void LOG(LogLevel logLevel, const char *format,...)
StringBuffer * stringbuffer_new(void)
quest_definition * quest_create(const char *name)
quest_condition * quest_create_condition(void)
#define QUESTFILE_COMMENT
char * stringbuffer_finish(StringBuffer *sb)
sstring add_string(const char *str)
int quest_condition_from_string(quest_condition *condition, const char *buffer)
#define QUESTFILE_STEPCOND
TIPS on SURVIVING Crossfire is populated with a wealth of different monsters These monsters can have varying immunities and attack types In some of them can be quite a bit smarter than others It will be important for new players to learn the abilities of different monsters and learn just how much it will take to kill them This section discusses how monsters can interact with players Most monsters in the game are out to mindlessly kill and destroy the players These monsters will help boost a player s after he kills them When fighting a large amount of monsters in a single attempt to find a narrower hallway so that you are not being attacked from all sides Charging into a room full of Beholders for instance would not be open the door and fight them one at a time For there are several maps designed for them Find these areas and clear them out All throughout these a player can find signs and books which they can read by stepping onto them and hitting A to apply the book sign These messages will help the player to learn the system One more always keep an eye on your food If your food drops to your character will soon so BE CAREFUL ! NPCs Non Player Character are special monsters which have intelligence Players may be able to interact with these monsters to help solve puzzles and find items of interest To speak with a monster you suspect to be a simply move to an adjacent square to them and push the double ie Enter your message
void stringbuffer_append_string(StringBuffer *sb, const char *str)
How to Install a Crossfire Server on you must install a python script engine on your computer Python is the default script engine of Crossfire You can find the python engine you have only to install them The VisualC Crossfire settings are for but you habe then to change the pathes in the VC settings Go in Settings C and Settings Link and change the optional include and libs path to the new python installation path o step
quest_step_definition * quest_create_step(void)
#define QUESTFILE_NEXTQUEST
T * define(const Key &name, T *asset)
virtual void load(BufferReader *reader, const std::string &filename) override
#define QUESTFILE_STEPDESC
static struct_quest ** quests
char * bufferreader_next_line(BufferReader *br)