 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
15 #define W(x, n) { if (quest->x) { stringbuffer_append_printf(buf, n "\n", quest->x); } }
18 W(quest_code,
"quest %s");
19 W(quest_title,
"title %s");
27 W(quest_restart,
"restart %d");
28 W(quest_is_system,
"is_system %d");
32 if (
step->is_completion_step) {
36 if (!
step->conditions.empty()) {
39 for (
const auto cond :
step->conditions) {
sstring name
Face name, as used by archetypes and such.
void quest_write_condition(char *buf, size_t len, const quest_condition *cond)
Write a step condition to a buffer.
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Append a formatted string to a string buffer instance.
sstring quest_description
Quest longer description.
sstring quest_comment
Quest comment, not visible to players.
const Face * face
Face associated with this quest.
sstring quest_code
Quest internal code.
struct quest_definition * parent
Parent for this quest, NULL if it is a 'top-level' quest.
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
void stringbuffer_append_string(StringBuffer *sb, const char *str)
Append a string to a string buffer instance.
A buffer that will be expanded as content is added to it.
void stringbuffer_append_multiline_block(StringBuffer *sb, const char *start, const char *content, const char *end)
Append the specified content in a multiline block, starting with "start" and ending with "end".
virtual void write(const quest_definition *quest, StringBuffer *buf)
Write the specified asset to the StringBuffer.
Definition of an in-game quest.
std::vector< quest_step_definition * > steps
Quest steps.