ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

STUCK ON TASK

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

STUCK ON TASK

Postby reelyor » Fri Oct 12, 2018 8:05 pm

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?
"Live well, Love much, Laugh often"

Working on: "Deperate Isle" and "Niki - An Adult Graphic Adventure"

reelyor@msn.com
Roy
User avatar
reelyor
 
Posts: 489
Joined: Sun Dec 21, 2003 5:40 pm
Location: Massachusetts, USA
Points: 10

Re: STUCK ON TASK

Postby The0didactus » Fri Oct 12, 2018 9:32 pm

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.
The0didactus
 
Posts: 78
Joined: Sun Mar 30, 2014 8:20 pm
Points: 30

Re: STUCK ON TASK

Postby reelyor » Sat Oct 13, 2018 12:12 am

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
"Live well, Love much, Laugh often"

Working on: "Deperate Isle" and "Niki - An Adult Graphic Adventure"

reelyor@msn.com
Roy
User avatar
reelyor
 
Posts: 489
Joined: Sun Dec 21, 2003 5:40 pm
Location: Massachusetts, USA
Points: 10

Re: STUCK ON TASK

Postby saabie » Sat Oct 13, 2018 4:09 am

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.
saabie
 
Posts: 935
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: STUCK ON TASK

Postby reelyor » Sat Oct 13, 2018 11:35 am

Thanks, Saabie. I'll give it a try.
"Live well, Love much, Laugh often"

Working on: "Deperate Isle" and "Niki - An Adult Graphic Adventure"

reelyor@msn.com
Roy
User avatar
reelyor
 
Posts: 489
Joined: Sun Dec 21, 2003 5:40 pm
Location: Massachusetts, USA
Points: 10

Re: STUCK ON TASK

Postby reelyor » Sat Oct 13, 2018 12:52 pm

It worked fine. I tried adjusting priority but went up instead of down. Thanks again
"Live well, Love much, Laugh often"

Working on: "Deperate Isle" and "Niki - An Adult Graphic Adventure"

reelyor@msn.com
Roy
User avatar
reelyor
 
Posts: 489
Joined: Sun Dec 21, 2003 5:40 pm
Location: Massachusetts, USA
Points: 10


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 9 guests

cron