ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Override task ... How does it work?

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.

Override task ... How does it work?

Postby P/o Prune » Wed Aug 22, 2018 9:51 am

I'm a little mystified here :?

In my game it should be possible to smell some dirty clothes (no, don't even ask! 8) )
So I have created a task smell clothes wanting it to override the general task "Smell object"
The thing is that whenever I run the task I get the General task response.
What am I doing wrong?

General task "Smell object"
Task Priority 50041
Auto-fill Priority 10 (whatever that is)
Aggregate output where possible (checked)
Display completion message before executing actions
Task is repeatable (checked)

My Specific task:
Task should override "smell object"
"smell "some smelly clothes"
Task priority 50039
Auto-fill Priority 10
Aggregate output where possible (checked)
Display completion message before executing actions
Task is repeatable (checked)
D-Day V.5 in progress 86Kb (Slowly drifting)
Anno 1700 Submitted to the 2018 IFComp.
User avatar
P/o Prune
Site Admin
 
Posts: 4213
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 43

Re: Override task ... How does it work?

Postby Lazzah » Wed Aug 22, 2018 10:31 am

P/o Prune wrote:I'm a little mystified here :?

In my game it should be possible to smell some dirty clothes (no, don't even ask! 8) )
So I have created a task smell clothes wanting it to override the general task "Smell object"
The thing is that whenever I run the task I get the General task response.
What am I doing wrong?

General task "Smell object"
Task Priority 50041
Auto-fill Priority 10 (whatever that is)
Aggregate output where possible (checked)
Display completion message before executing actions
Task is repeatable (checked)

My Specific task:
Task should override "smell object"
"smell "some smelly clothes"
Task priority 50039
Auto-fill Priority 10
Aggregate output where possible (checked)
Display completion message before executing actions
Task is repeatable (checked)

Whenever I create a new Specific Task, I always first of all change it to a general task, open the advanced tab and change the task priority by deleting a couple of the numbers, e.g. 50039 to 539. I also tick the "Prevent this task from being inherited" box. I then change it back to a specific task. This invariably makes the task work.

Maybe it would help if you opened the debugger and then type SMELL CLOTHES and see what is happening when you type the command.
OUT NOW: Run, Bronwynn, Run!
Current W.I.P.: Magnetic Moon
Also available: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust - The Fist of Fire and The Lost Children
User avatar
Lazzah
Moderator
 
Posts: 2131
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17

Re: Override task ... How does it work?

Postby P/o Prune » Thu Aug 23, 2018 12:47 pm

Thanks, Lazzah. That did the trick... It works like a charm... :D
D-Day V.5 in progress 86Kb (Slowly drifting)
Anno 1700 Submitted to the 2018 IFComp.
User avatar
P/o Prune
Site Admin
 
Posts: 4213
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 43


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 7 guests