ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

disambiguation in adjacent location

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.

disambiguation in adjacent location

Postby Denk » Fri Apr 26, 2019 2:05 pm

I have a situation where the player character is hiding in one location. From this location he can see some bandits in another location and is able to cast a zapp-spell on them from his hiding place. To allow for this I have the following restrictions in my "zapp %character%" general task:
(THE PLAYER CHARACTER MUST BE VISIBLE TO REFERENCED CHARACTER) OR
(REFERENCED CHARACTER MUST BE AT LOCATION 'FOREST' AND
THE PLAYER CHARACTER MUST BE AT LOCATION 'BEHIND STONE' )

If I go to the forest I am able to zapp both bandits one by one with the command "zapp bandit". I am then given the question: "which bandit? A huge bandit or a strong bandit"
I can then answer "huge" or "strong" and the game will understand.

But if I stay behind the stone, and type "zapp bandit" I get the response:
"You can't see any bandit!"

So I am not getting the question "which bandit? A huge bandit or a strong bandit".
But if I specifically type "zapp huge bandit" or "zapp strong bandit" it works.

Can anyone help me to get the right behaviour when typing "zapp bandit" at location 'behind stone'?

I have made a small demo demonstrating the problem:
demo.taf
(15.6 KiB) Downloaded 21 times
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
Denk
 
Posts: 249
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 31

Re: disambiguation in adjacent location

Postby saabie » Sat Apr 27, 2019 4:24 am

This should work and looks like a bug in ADRIFT.
In fact the debugger output says "Multiple matches. Prompt for ambiguity" so it almost works and then goes wrong somehow, probably in the scope handling for visibility.

You may need to bypass this by creating a general task for "zapp bandit" that prints the question: "which bandit? A huge bandit or a strong bandit", and then general tasks for "huge {bandit}" and "strong {bandit}" that replace the normal disambiguation. (All with restrictions to only work behind the stone)
saabie
 
Posts: 972
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: disambiguation in adjacent location

Postby Denk » Sat Apr 27, 2019 8:36 am

Thanks Saabie for looking at it. I have made a bug-report here: http://www.adrift.co/bug/19203
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
Denk
 
Posts: 249
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 31


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 6 guests