ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Changing command for "Drop Objects" seems to disable action

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.

Changing command for "Drop Objects" seems to disable action

Postby Denk » Sun Feb 23, 2020 5:25 pm

I changed the command field of the Standard Library task "Drop Objects" from:
adrift Code: Select all
[drop/put down] %objects%
put %objects% down

to:
adrift Code: Select all
[læg/lægge/smid/smide] %objects% {ned}
(Danish translation)

As a consequence, the player must type SMID BASKET instead of DROP BASKET in order to drop the basket.

Both with and without the above mentioned change, I get the following output:
Ok, you put down the basket.

But when I take Inventory or Look, it turns out, that the basket is still held by the player when testing the Danish version. It is as if the Action in the task is not carried out.

Both with the english set of commands and with the danish set of commands, the Debugger output is practically identical:

ENGLISH VERSION:
[00.01] Attempting to execute task Drop objects DANISH...
[00.01] Checking single reference task [drop/put down] a basket
[00.01] Referenced Objects must exist: Passed
[00.01] Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
[00.01] Referenced Objects must not be inside Any Object: Passed
[00.01] Referenced Objects must not be on Any Object: Passed
[00.01] Referenced Objects must be held by the Player character: Passed
[00.01] Passed Restrictions
[00.01] First Reference: a basket(no output)
[00.01] Ok, %CharacterName% put[//s] down %objects%.Name.
[00.03] Executing Actions...
[00.04] Task passes and has output. Will not execute lower priority tasks

DANISH VERSION:
[00.01] Attempting to execute task Drop objects DANISH...
[00.01] Checking single reference task [læg/lægge/smid/smide] a basket{ ned}
[00.01] Referenced Objects must exist: Passed
[00.01] Property 'Object type' for Referenced Objects must be 'Dynamic': Passed
[00.01] Referenced Objects must not be inside Any Object: Passed
[00.01] Referenced Objects must not be on Any Object: Passed
[00.01] Referenced Objects must be held by the Player character: Passed
[00.01] Passed Restrictions
[00.01] First Reference: a basket(no output)
[00.01] Ok, %CharacterName% put[//s] down %objects%.Name.
[00.03] Executing Actions...
[00.04] Task passes and has output. Will not execute lower priority tasks

In both cases the Debugger claims that the actions are executed. Can anyone explain why the objects are not dropped in the Danish case?

I attach the demo-file:
Attachments
SaabieLibTest2.taf
(23.07 KiB) Downloaded 32 times
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
Denk
 
Posts: 401
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 226

Re: Changing command for "Drop Objects" seems to disable act

Postby saabie » Mon Feb 24, 2020 6:25 am

The problem seems to only occur if you have both an %objects% reference and an optional word like {ned} after it.
If I remove {ned} it works.
If I keep {ned} but change %objects% to %object% (and edit all the restrictions and actions) then it works.
This looks to be a bug in ADRIFT that nobody has found before because nobody did a command like "drop %objects% {ned}"

To fix it, split the command into two lines:
[læg/lægge/smid/smide] %objects%
[læg/lægge/smid/smide] %objects% ned
saabie
 
Posts: 1023
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 50

Re: Changing command for "Drop Objects" seems to disable act

Postby Denk » Mon Feb 24, 2020 8:27 am

Thanks Saabie! :bravo:

I have made a bug report here: http://www.adrift.co/bug/19217

Everyone, please upvote it.
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
Denk
 
Posts: 401
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 226


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 2 guests