Jump to content
Sign in to follow this  
mtuckner

Task Creation and Completion Bug HELP

Recommended Posts

Okay, my mission starts out with a single task. During the mission you are assigned new tasks as you complete the ones before hand. I am doing this in the on Act. area within triggers.

Problem is that in the middle of the tasks when one should be marked completed and another created, it overwrites the first task with the second and checks it done (even though it shouldn't until that task is done) and it creates a second copy of it without any of the sub information in the task list that isn't complete. If you proceed you can complete the second task as planned and it checks it off. It ends up looking like this:

Task 1 Complete

Task 2 Complete

Task 4 Complete

Task 4 Complete

Task 5 Complete

Here are the two tasks, the first task Verify is overwritten by a completed version of Ridge, and then ridge is also assigned (making two of them) that can be completed as normal. What gives?

//TASK VERIFY

tskKill setTaskState "SUCCEEDED";

tskVerify = player createSimpleTask ["Go over and check your kills."];

tskVerify setSimpleTaskDescription ["I need to go over to make sure those animals are fully dead, and plan a way to get these back to town.", "Go over and check your kills.", "Go and verify the animals are dead."];

tskVerify setSimpleTaskDestination (getMarkerPos "Kills"); player setCurrentTask tskVerify;

hint "New Task: Go over and check your kills.";

// TASK RIDGE

tskVerify setTaskState "SUCCEEDED";

tskRidge = player createSimpleTask ["Follow the ridge towards camp."];

tskVerify setSimpleTaskDescription ["I need to get back to camp to get my field dressing gear. The easiest way back is along this ridgeline.", "Follow the ridge towards camp.", "Follow the ridge."];

tskRidge setSimpleTaskDestination (getMarkerPos "ridge"); player setCurrentTask tskRidge;

hint "New Task: Follow the ridge towards camp.";

---------- Post added at 10:53 PM ---------- Previous post was at 10:51 PM ----------

Ha! I see my error once I post it. I've been staring at this for an hour and my eye just passed over it...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×