PDA

View Full Version : Quest failure command


songie
12-20-2009, 11:02 AM
Hi, i just recently got working on a server but my quests won't be the kind of that you just complete and go on happely knowing you finished it the right way.

Ive been looking for it but as there is a quest::assigntask is there a command that deletes the task ? in effect making it fail ?

Because idd like to get some quests in there that mean something when you fail them ...and once failed would prevent you from taking it ever again.

Derision
12-20-2009, 12:38 PM
There is a quest::failtask(taskid) command. This will display the red task failed message and remove the task from the player's active tasks.

Although there is an 'Is Repeatable' column in the task table, this only prevents the player being offered the task again if they previously completed it.

To do what you want, i.e. not offer the player the task if they previously failed it, then you are probably going to have to use Quest Globals (QGlobals) to set a flag if they fail the task which you can check before you offer it them again.

I can't offer you any advice on QGlobals as I've never actually used them, but you could try searching the forums or the wiki for some examples on their use, or just post back if you can't figure it out and no doubt one of the quest gurus can offer some advice.

songie
12-20-2009, 03:13 PM
thanks, that was what i needed.

I dont think i will need the globals because if they fail the task it will give them a new task and i will most likely be having the npc's check on what part of the quests they are on. if they are on one of the failed quest follow ups they wont be able to retake it.

sortof gonna do a complicated multipart questline good/evil that is intertwined and the possibility to lean one way or the other trough your actions.