ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Stopping subtasks in event when task stops

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.

Stopping subtasks in event when task stops

Postby P/o Prune » Thu Mar 05, 2020 9:17 am

I'm sure there is a way to do this. I just haven't found it yet…

I have created an event so my player will meet a guard in the black tower unless he performs a certain task first.

The event starts when player moves from one location to another. Then 1 turn after this, a message is displayed, warning him of the guard approaching. After yet another turn another message is displayed, telling him that the guards are getting closer and finally after the third turn, he is caught by the guard.
Under Task Control I have put:
Start this event on completion of task: "Moving from tower to winding stairs"
Stop this event on completion of task: "Name of task that prevent the guards to appear"

My problem is that even if I do the task required to stop the task from running, I still get the messages from the subtasks. My player is not caught by the guards, but I want the subtask messages to not be displayed.

Any ideas?
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 97kb
User avatar
P/o Prune
Site Admin
 
Posts: 4608
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 93

Re: Stopping subtasks in event when task stops

Postby Denk » Thu Mar 05, 2020 1:25 pm

I just tested the behaviour of an event and it worked as it should. Maybe you are doing something wrong or there might be a bug in ADRIFT under special circumstances.

A few ideas:
* The event is restarted because you ticked "Repeat event on completion"
* The event is restarted because you move to the winding stairs from the tower again.

Can you reproduce the behaviour in a sample file?
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
Denk
 
Posts: 465
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 251


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 3 guests