ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Task with same priority?

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.

Task with same priority?

Postby P/o Prune » Sun Mar 17, 2019 4:16 pm

Is it possible to have two tasks with the same priority?
Or, why isn't it possible to have two tasks with the same priority?

I have to tasks "Look at object" (no override of anything, just general tasks)
They are both set to priority 500. But when I save and then check them one is set to priority 499.
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 54Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4361
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 58

Re: Task with same priority?

Postby saabie » Mon Mar 18, 2019 12:30 am

The priority is the order in which ADRIFT goes through all of the tasks looking for a match with player input, so you must never have two general tasks with the same priority or it would get confused.
If you have two tasks that match "Look at object" then ADRIFT needs to know which one to check restrictions for first, otherwise there would be no control over how the game worked and it would be full of weird bugs.

Whenever you create a new task with the same priority as an existing task, ADRIFT will change the priority of as many tasks as necessary to make room in the list for the new one while ensuring no two have the same priority.
saabie
 
Posts: 959
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: Task with same priority?

Postby P/o Prune » Mon Mar 18, 2019 6:02 am

Thanks Saabie. That explains it.
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 54Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4361
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 58


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 6 guests