Page 1 of 1

STUCK ON TASK

PostPosted: Fri Oct 12, 2018 8:05 pm
by reelyor
Starting back with ADRIFT after a long time away.
I'm stuck.
I in a room called Title. I ask if directions are desired (Y/N)
I have a task called "Y at Title" that fires off just fine and off we go.
I also have a task called "N at Title" that is supposed to go directly to the game with out displaying directions, using "No" and "N"
No matter what I try, as soon as I hit "N" it tells me I can't go in that direction. Over, and over and …. you get the idea.
What am I going wrong?
I just want to be able to skip directions and go to the first room, but it continously thinks I want to go North (direction).
I even tried creating a task called "go north" with the same key words, but I get the default system phrase instead of firing of.
HELP> PLEASE?

Re: STUCK ON TASK

PostPosted: Fri Oct 12, 2018 9:32 pm
by The0didactus
reelyor wrote:Starting back with ADRIFT after a long time away.
I'm stuck.
I in a room called Title. I ask if directions are desired (Y/N)
I have a task called "Y at Title" that fires off just fine and off we go.
I also have a task called "N at Title" that is supposed to go directly to the game with out displaying directions, using "No" and "N"
No matter what I try, as soon as I hit "N" it tells me I can't go in that direction. Over, and over and …. you get the idea.
What am I going wrong?
I just want to be able to skip directions and go to the first room, but it continously thinks I want to go North (direction).
I even tried creating a task called "go north" with the same key words, but I get the default system phrase instead of firing of.
HELP> PLEASE?


Hi there are lots of ways to do this.
This one isn't the most efficient but it's a good habit to get into because it vastly expands what you can do with prompts. I do this in literally all my games.


1) Create a variable called "prompt" "encounter" or something similar.
2) the variable has a value of zero by default. Make it a value of 1
3) Find the player movement command
4) add a requirement to this command. "prompt" must be equal to 0
5) when a player picks Y or N and we end the prompt, also make the game change the value of "prompt" to 0.

now you can't move until you respond to the prompt.

Re: STUCK ON TASK

PostPosted: Sat Oct 13, 2018 12:12 am
by reelyor
I understand this, but the default system NORTH is the problem. I need to find a way to make the default command not fire before the task gets a chance. I have tried using a user-created North command, but it doesn't work. So unless I can tie the "prompt" variable to the system default command, I don't think it will work.
Thanks

Re: STUCK ON TASK

PostPosted: Sat Oct 13, 2018 4:09 am
by saabie
Your task may have a lower priority than the "Player Movement" task.
On the advanced tab of the task is a number after the words "Task Priority:". This needs to be a smaller number than the priority of the player movement task (which will be around 50025).
You can set the priority of your NO task to 1 to ensure it runs before any other task.

Re: STUCK ON TASK

PostPosted: Sat Oct 13, 2018 11:35 am
by reelyor
Thanks, Saabie. I'll give it a try.

Re: STUCK ON TASK

PostPosted: Sat Oct 13, 2018 12:52 pm
by reelyor
It worked fine. I tried adjusting priority but went up instead of down. Thanks again