Full Version : Optional Quest objectives.
xmlspawner >>Q&A >>Optional Quest objectives.
<< Prev | Next >>
bubzy1000- 02-07-2006
ok heres another request from me, i hope im not annoying you.
i would like to make a quest.
example
"magical pie"
a baker xmlquestnpc will make you a magic pie if you bring him the ingredients.
however the pie can be magical in different ways, perhaps to modify stats temporarily or skills.
say there was "mushroom"(+10 Str Bonus) as an ingredient
also "chicken" (+10 Int Bonus)
the player can collect mushrooms and return to npc and the npc will make a pie called "mushroom pie" with a +10 str bonus
the player also can collect chicken and the npc wil make "chicken pie" with a +10 Int Bonus.
but if the player collects "mushroom" and "chicken" the npc would make a "Chicken & Mushroom pie" giving a +10 str and +10 int bonus.
is this possible or is it a bit complicated?
btw i cannot code, just using xmledit at the moment.
ArteGordon- 02-07-2006
this can be done.
What you would do would be to create a quest that had multiple objectives such as COLLECT,chicken and COLLECT,mushroom
Then your npc could check to see which individual objectives were completed and give out the reward accordingly.
The quest does not have to be officially 'completed' in order for an npc to act on it.
In your Condition field, you would just test for something like
GETONCARRIED,yourquestname,questholder,completed1=true
or
GETONCARRIED,yourquestname,questholder,completed2=true
or
GETONCARRIED,yourquestname,questholder,completed1=true & GETONCARRIED,yourquestname,questholder,completed2=false
or
GETONCARRIED,yourquestname,questholder,completed1=true & GETONCARRIED,yourquestname,questholder,completed2=true
which would test for completion of the different objectives. Each entry could have a different Condition test and then give out different rewards.