# Fixed quests

# There are spying quests, recover item quests, and kill monster quests...

# We also allocate a number of random quests

# The following is a bit of a 'bag of numbers' to describe various quests

# N:number:name
# S:stage
# F:flags
# Q:quest
# T:dungeon:level:store
# A:artifact
# Z:number
# K:kind
# E:ego item
# R:race
# O:room type:room adjective:room noun
# X:action:feature
# W:experience:power:gold
# D:description

# Quests are defined differently from most other info files. A quest consists of
# a number of stages (events). The stages currently defined are:

# Stage 0: The pre-conditions that need to be fulfilled in order to get the quest
# assigned.

# Stage 1: The quest requirements. This usually defines a location that will
# contain monsters, objects, and features required for the quest. This includes
# the way the quest alters the world while the player is assigned it. 

# Stage 2: This stage is used to track the player actions that contribute towards
# completion or failure of the quest. Do not define this stage in this file.

# Stage 3: The requirements in order to get the quest reward. This usually defines
# a location that the player must travel to in order to get their reward.

# Stage 4: The rewards for completing the quest. This can include permanent alteration
# of the world after successfully completing a quest to lose artifacts, 

# Stage 5: The conditions that will cause the quest to fail. This usually includes
# leaving the quest level before finishing the quest actions.

# Stage 6: The consequences of having a quest fail. This might include losing an
# artifact or causing a unique to never disappear.

# A counter for each quest keeps track of the stage the player is at. To succeed at a
# quest, the player must complete the actions defined in stage 1 and avoid any actions
# in stage 5. The quest stage will then move to stage 3; when they have fufilled these
# actions, the quest moves to stage 4 and stops.

# For each stage, the quest flags define what events occur or are required.

# TRAVEL:	Travel to location defined by dungeon and level. 
# LEAVE:	Leave location defined by dungeon and level.
# STAY:		Stay at location defined by dungeon and level.
# PASS_QUEST:	Succeed quest defined by quest.
# FAIL_QUEST:	Fail quest defined by quest.
# FIND_ROOM:	Find room defined by room adjective and room noun.
# FLAG_ROOM:	Add flags to room.
# UNFLAG_ROOM:	Remove flags from room.
# ALTER_FEAT:	Alter a feature using action.
# DEFEND_FEAT:	Prevent a feature being altered using action.
# FIND_ITEM:	Find one or more objects defined by artifact, ego item and kind.
# GET_ITEM:	Get one or more objects defined by artifact, ego item and kind.
# DESTROY_ITEM: Destroy one or more one or more objects defined by artifact, ego item and kind.
# LOSE_ITEM:	Lose one or more objects defined by artifact, ego item and kind.
# TALK_STORE:	Talk to shop keepr defined by owner in store defined by store.
# BUY_STORE:	Buy one or more objects defined by artifact, ego item and kind from owner and store.
# SELL_STORE:	Sell one or more objects defined by artifact, ego item and kind to owner and store.
# GIVE_STORE:	Give one or more objects defined by artifact, ego item and kind to owner and store.
# STOCK_STORE:	Stock one or more objects defined by artifact, ego item and kind in store.
# GET_STORE:	Get one or more objects defined by artifact, ego item and kind from owner and store.
# DEFEND_STORE:	Defend store.
# TALK_RACE:	Talk to monster or unique defined by race.
# GIVE_RACE:	Give one or more objects defined by artifact, ego item and kind to monster defined by race.
# GET_RACE:	Get one or more objects defined by artifact, ego item and kind from monster defined by race.
# FIND_RACE:	Find monster or unique defined by race.
# KILL_RACE:	Kill monster or unique defined by race. If an object is defined, the monster will be drop it.
# ALLY_RACE:	Befriend monster or unique defined by race.
# HATE_RACE:	Offend monster or unique defined by race.
# FEAR_RACE:	Terrify monster or unique defined by race.
# HEAL_RACE:	Heal monster or unique defined by race.
# BANISH_RACE:	Teleport monster or unique defined by race.
# DEFEND_RACE:	Defend a monster or unique defined by race.


V:0.6.4


# Completing quest 0 finishes the game.

N:0:Your quest to kill Morgoth, Lord of Darkness
S:1
F:TRAVEL
T:0:100:0
F:KILL_RACE
R:547

N:1:Your quest to find Sauron
S:1
F:TRAVEL
T:0:99:0
F:KILL_RACE
R:546

# Farmer Maggot wants you to find Grip, Fang and Wolf. This is worth the same experience as killing them, and
# causes them to be banished. In return, you qualify for a quest where you can trade 3 mushrooms of mana for a
# potion of mana. You fail the quest and make Farmer Maggot your enemy and leave if you kill any of them.

N:2:Farmer Maggot's quest for his dogs (Grip)
S:0
F:TALK_RACE
R:4
S:1
F:FIND_RACE
R:46
S:3
F:TALK_RACE
R:4
S:4
F:BANISH_RACE
R:46
W:30:0:0
S:5
F:KILL_RACE
R:46
S:6
F:HATE_RACE | BANISH_RACE
R:4

N:3:Farmer Maggot's quest for his dogs (Fang)
S:0
F:TALK_RACE
R:4
F:PASS_QUEST
Q:2
S:1
F:FIND_RACE
R:47
S:3
F:TALK_RACE
R:4
S:4
F:BANISH_RACE
R:47
W:30:0:0
S:5
F:KILL_RACE
R:47
S:6
F:HATE_RACE | BANISH_RACE
R:4

N:4:Farmer Maggot's quest for his dogs (Wolf)
S:0
F:TALK_RACE
R:4
F:PASS_QUEST
Q:3
S:1
F:FIND_RACE
R:618
S:3
F:TALK_RACE
R:4
S:4
F:BANISH_RACE
R:618
W:30:0:0
S:5
F:KILL_RACE
R:618
S:6
F:HATE_RACE | BANISH_RACE
R:4

N:5:Farmer Maggot's quest for his mushrooms
S:0
F:TALK_RACE
R:4
F:PASS_QUEST
Q:4
S:1
F:FIND_ITEM
Z:3
K:28
S:3
F:TALK_RACE
R:4
S:4
F:GET_ITEM
K:266
W:100:0:0
