Task nonrepeatable
Sorry if this is in the wikki or posted somewhere. I looked and did not see anything but I could have missed it.
Is there a way to make a task nonrepeatable? Also, is there a way to make a NPC say something when a task is completed? |
Task shouldn't be available if it's done...
There's a couple ways to make npc respond after task was complete. The most obvious is to just have the npc handle the reward like any other quest turnin and have them quest::say in that then complete the step via perl. A player event for task stage completion was just added too. Mostly I found having to dole out rewards when all I wanted was a simple additional effect to be a tad cumbersome. I'd rather have the system do the rewards for me if practical. ex: Code:
#player.pl |
You can look at my tasks on PEQ. I knew that it would be a problem to have the NPC say something at the end of the task, so rather than having the task system update the task, have the NPC update the task. Then he can also say something before the final step is updated.
http://www.projecteq.net/phpBB2/viewtopic.php?t=5697 |
To make a task non-repeatable, you could have the NPC check the completed tasks table for that specific ID and not issue the task if it is present.
|
I did consider adding a 'nonrepeatable' field, as well as allowable class/race fields to the task table, but didn't as I figured it was already complicated enough to create tasks, and this could be handled by Perl if needed. If the consensus is that any of these fields should be added, I would be happy to add them.
|
I think as long as fields have defaults that work in 99% of all tasks and you only need to change them if you are doing something special, then making it more complex isn't really too bad.
|
If you are up to putting a nonrepeatable field in I would be very grateful.
Currently I think the only way to keep a task from being repeated is to put it in a taskset then do something like this in the quest. Code:
if(!quest::istaskcompleted(quest::lasttaskinset(1))) { Honestly I find writing tasks to be easier than quests if I use KLS taskmaster program. |
There should definitely be a repeatable (default:false) field in there if you ask me. Most tasks aren't repeatable anyway. Asking people to keep track of that via quests kinda takes away from the ease via automation the system already has(same reasoning I added task_stage_complete event; tracking them via quests was too clumsy).
|
From what I can tell, most tasks are repeatable... Especially when it came to doing the crystals. All the lower level tasks I have found are repeatable also.
|
Either way, I agree a nice easy column to determine if it's repeatable or not would be awesome.
|
All times are GMT -4. The time now is 05:15 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.