Quest definition files using the new quest definition syntax

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12983 282e977c-c81d-0410-88c4-b93c2d0d6712
master
cavesomething 2010-04-26 20:08:02 +00:00
parent 9cd4cc6697
commit ea55424150
3 changed files with 131 additions and 0 deletions

View File

@ -0,0 +1,34 @@
quest darcap/Spike
title Spike's aching back
description
Spike, the weapon shop owner, has backaches, and needs a potion to endure his pains.
end_description
restart 1
step 10
description
You need to get a potion from the potion shop.
end_description
end_step
step 20
description
You need to get some smaprh roots from Bob's shop in the south of Darcap.
end_description
end_step
step 30
description
Bring back the smaprh roots to Molthir.
end_description
end_step
step 40
description
Bring back the potion to Spike.
end_description
end_step
step 50
finishes_quest
description
You brought the potion back to Spike.
end_description
end_step
end_quest

68
test/test.quests 100644
View File

@ -0,0 +1,68 @@
quest testquest
title testquest
description
test that quests work properly
end_description
restart 0
step 10
description
10 - pick up the sword, and bring it here.
end_description
end_step
step 20
description
20 - you have acquired the sword, return it.
end_description
end_step
step 30
description
30 - You have picked up a sword, figure out what to do with it
end_description
end_step
step 40
description
40 - you gave the sword back, speak to the old man who will open the door for you.
end_description
end_step
step 50
finishes_quest
description
50 - you got rewarded, Yay!
end_description
end_step
end_quest
quest testquest2
title testquest2
description
second test that quests work properly
end_description
restart 0
step 10
description
10 - Get 6 apples
end_description
end_step
step 20
description
20 - You were given a mcguffin to help you
end_description
end_step
step 25
description
25 - You see the yummy apples ahead of you.
end_description
end_step
step 30
finishes_quest
description
30 - You got the apples, success.
end_description
end_step
step 40
finishes_quest
description
40 - You got even more apples than you needed to, you are a jee-knee-ous
end_description
end_step
end_quest

29
world.quests 100644
View File

@ -0,0 +1,29 @@
# Quest definition file
# This file describes the various quests known to the game, and used through the functions in quest.c
#
# Format is pretty simple:
# quest "internal code, whatever you wand but must be unique"
# title "one-line to describe the quest"
# description
# "multi-line"
# "description if you feel like it"
# end_description
# restart "optional integer, if non zero the quest can be done multiple times"
# (then multiple "step/end_step" blocks)
# step "integer value for the step"
# description
# "multi-line step"
# "description"
# end_description
# end_step
# (then after all steps)
# end_quest
# you can include other quest files by using
# include path/to/file.quests
# the include path can be either relative or absolute to the maps/ directory
# (this can be done by starting the path with a /)
# any files that are included may have other files included from them.
include darcap/darcap.quests
include test/test.quests