ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Object inside object problem

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.

Object inside object problem

Postby P/o Prune » Sat Feb 15, 2020 4:13 pm

Is it just me, or is it not possible to get rid of the default message "Inside the %object% is %object% ?
It may seem like just a little thing, but I find it a bit irritating.
In my game I have a clock. the clock has a small compartment and inside that compartment there is the clock mechanism.
The thing is that I have made a task >look inside compartment with a description of the mechanism-compartment and I get this response.
> look inside compartment
It's not very big and seems to be full of various rods and gears. All with are not moving. Inside the small compartment is the clock mechanism.


I have tried checking the exclude object from location description (No success)
I have tried making a blank space in the window "When the object is listed in location, display this: (No success)

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

Re: Object inside object problem

Postby David Whyld » Sat Feb 15, 2020 5:26 pm

Can you use a text override?

In the top bit: Inside the small compartment is the clock mechanism.

Leave the bottom bit blank.
David Whyld
 
Posts: 6983
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom
Points: 35

Re: Object inside object problem

Postby P/o Prune » Sat Feb 15, 2020 6:32 pm

David Whyld wrote:Can you use a text override?

In the top bit: Inside the small compartment is the clock mechanism.

Leave the bottom bit blank.

Maybe I could use a text override. But that shouldn't be necessary.
Maybe the check windows only works for locations and not for containers.

I've tried to leave the bottom bit blank. That didn't change anything.
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 97kb
User avatar
P/o Prune
Site Admin
 
Posts: 4594
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 93

Re: Object inside object problem

Postby saabie » Sun Feb 16, 2020 12:37 am

That message should only appear if the Look inside object task runs.
Is this a specific task set to override 'Look in{side} %object%'? (Not run-before or a general task)
Check the debugger output to see what tasks actually run.
saabie
 
Posts: 1024
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 50

Re: Object inside object problem

Postby Lazzah » Sun Feb 16, 2020 9:28 am

The way to get rid of this message is to delete the OBJECTS ON/IN tab on the EXAMINE OBJECTS general task.

I don't like these extra messages about objects being open or closed, in or on, or characters on/in the object being referenced. I delete all three tabs, leaving just the TOO DARK one. If I think that if extra information is needed for the player, I can add my own messages where appropriate.
The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust, The Lost Children, Run, Bronwynn, Run, The Call of the Shaman, The Lost Labyrinth of Lazaitch, Magnetic Moon, Starship Quest, Revenge of the Space Pirates
User avatar
Lazzah
Moderator
 
Posts: 2353
Joined: Thu Mar 31, 2011 4:54 am
Location: Clacton-on-Sea, Essex
Points: 65

Re: Object inside object problem

Postby P/o Prune » Sun Feb 16, 2020 11:26 am

That's what I have ended up doing. But thanks anyway :yeah:
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 97kb
User avatar
P/o Prune
Site Admin
 
Posts: 4594
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 93

Re: Object inside object problem

Postby Denk » Sun Feb 16, 2020 11:52 am

If you go with Lazzah's method, which removes this behaviour for all objects, not just the clock mechanism, you may also want to change it for the task "open objects" since it will also tell the player: "Inside the small compartment is the clock mechanism.". This is only the case if the compartment can be opened and closed.
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
Denk
 
Posts: 439
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 251

Re: Object inside object problem

Postby Lazzah » Sun Feb 16, 2020 12:24 pm

Denk wrote:If you go with Lazzah's method, which removes this behaviour for all objects, not just the clock mechanism, you may also want to change it for the task "open objects" since it will also tell the player: "Inside the small compartment is the clock mechanism.". This is only the case if the compartment can be opened and closed.

I forgot about that, thanks Denk!
The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust, The Lost Children, Run, Bronwynn, Run, The Call of the Shaman, The Lost Labyrinth of Lazaitch, Magnetic Moon, Starship Quest, Revenge of the Space Pirates
User avatar
Lazzah
Moderator
 
Posts: 2353
Joined: Thu Mar 31, 2011 4:54 am
Location: Clacton-on-Sea, Essex
Points: 65

Re: Object inside object problem

Postby rovarsson » Mon Feb 17, 2020 12:08 pm

And I have learned something I will certainly need further in developing my game!
Thank you all!
rovarsson
 
Posts: 78
Joined: Mon Dec 23, 2019 10:37 pm
Location: Belgium
Points: 15

Re: Object inside object problem

Postby Denk » Mon Feb 17, 2020 12:43 pm

rovarsson wrote:And I have learned something I will certainly need further in developing my game!
Thank you all!

I just want to add, that it is a matter of taste, whether you want to delete this behaviour from the Examine-task and the Open-task. If you do this, you may at some point need to create your own "LOOK IN{side} %object%"-task, so the player has a chance of knowing what is inside a container.

An alternative is to override "Examine object" and "Open object" only in those cases where it is a problem that the contents get listed.
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
Denk
 
Posts: 439
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 251

Re: Object inside object problem

Postby Denk » Sun May 17, 2020 4:47 pm

Just want to state more clearly, that removing the OBJECTS ON/IN tab on the EXAMINE OBJECTS general task has significant impact on your game. Then the game will never tell you if things are on supporters (e.g. on a table) or in a container (e.g. in an open box). You might like this behaviour but I just want to mention it here, since some might delete those tabs and not being aware of the impact on their game. This is why I in my above post propose just to override "examine object" and "open object" in those cases where it is a problem that the contents get listed.
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
Denk
 
Posts: 439
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 8 guests

cron