From 110166a1cb63fb962d894f65ca353f3b5ceba7c4 Mon Sep 17 00:00:00 2001 From: Nicolas Weeger Date: Sun, 7 Nov 2021 19:38:11 +0100 Subject: [PATCH] Remove obsolete 'include' from quests, update the root file to contain the syntax --- darcap/darcap.quests | 2 -- scorn/scorn.quests | 7 ------- world.quests | 42 +++++++++++++++--------------------------- 3 files changed, 15 insertions(+), 36 deletions(-) diff --git a/darcap/darcap.quests b/darcap/darcap.quests index ccd243bde..9e608f435 100644 --- a/darcap/darcap.quests +++ b/darcap/darcap.quests @@ -1,5 +1,3 @@ -include darcap/cameron.quests - quest darcap/Spike title Spike's Aching Back diff --git a/scorn/scorn.quests b/scorn/scorn.quests index 0164ec9e2..6d19827fb 100644 --- a/scorn/scorn.quests +++ b/scorn/scorn.quests @@ -1,10 +1,3 @@ -include houses/malone.quests -include houses/farm.quests -include aristocracy.quests -include citygate.quests -include kar/gork.quests -include misc/rhyz.quests - quest scorn/smith/customarmour title Custom Armour diff --git a/world.quests b/world.quests index a157a34f6..b9d8e3cc6 100644 --- a/world.quests +++ b/world.quests @@ -1,44 +1,32 @@ -# world.quests -- global quest definition file -# -# This file describes the various quests known in the game. It is used by the -# functions in 'server/quest.c'. -# -# This file describes the various quests known in the game, which is used by -# the functions in 'server/quest.c'. For the most part, this file pulls in -# additional quest description files that are region-specific. +# This file describes the syntax for the quests file. # # Quest definition files are written much like other files in the game. Each # quest is defined by several keys, which are read from the file line-by-line. # Some keys contain fields that may span multiple lines (i.e. 'description'). # The best way to understand the format is to look at an existing example. # +# Quests are is handled by the functions in 'server/quest.c', +# quest files are handled by classes 'QuestLoader' and 'QuestWriter'. +# # Key Reference: # quest - internal name, which must be globally unique # title - short, one-line descriptive title for the quest -# description - start of a description field for the block it is in +# description - start of a description field for the block (quest or step) it is in # end_description - end a description field +# comment - start of a developer-oriented comment, not visible to players in-game +# end_comment - end of comment field # restart - (optional) when set to a non-zero integer, the quest can # is replayable (can be completed multiple times) # step - integer value for the beginning of a step block; this # block must also contain its own description block (see # examples for details) +# setwhen - in a 'step' block, starts a block of conditions to automatically switch +# to that step, based on other quests. Syntax is 'quest state', where +# 'quest' is the internal name of a quest, and 'state' can be +# - "min step-max step" for a step range +# - "<=max step" for range 0 to "max step" +# - "exact step" for a specific step +# - "finished" to indicate the quest must be finished +# end_setwhen - end of a setwhen block # end_step - end a step field # end_quest - end of a quest definition -# -# include - include another quest file, either as a relative path to -# the current directory or an absolute path from the top -# level maps directory - -include brest/brest.quests -include darcap/darcap.quests -include darcap/darcap/elemental.quests -include euthville/euthville.quests -include lake_country/lake_country.quests -include navar_city/navar_city.quests -include port_joseph/port_joseph.quests -include quests/quests.quests -include santo_dominion/santo_dominion.quests -include scorn/scorn.quests -include start/start.quests -include test/test.quests -include wolfsburg/wolfsburg.quests