View Single Post
  #2  
Old 10-22-2008, 06:25 PM
Rocker8956
Hill Giant
 
Join Date: Sep 2007
Posts: 117
Default

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))) {
		# If the player has no tasks enabled for this task set, enable the first one
		if(quest::enabledtaskcount(1) == 0) {
			quest::say("You have not done any of my tasks before!");
			quest::enabletask(quest::firsttaskinset(1));
		}
Another method would be to check if the task is disabled but I did not see a perl quest command to do that.
Honestly I find writing tasks to be easier than quests if I use KLS taskmaster program.
Reply With Quote