ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Static object inside a container?

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.

Static object inside a container?

Postby P/o Prune » Sat May 23, 2020 8:45 am

Is there a way to have a static object inside a dynamic object (a container)

My problem is that I have "some beer" (dynamic object) starting off inside a pitcher. However it is possible for the player to >Get beer. He will then be holding "some beer" which is rather messy.
Suggestions?
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: Static object inside a container?

Postby rovarsson » Sat May 23, 2020 9:12 am

I've seen this problem with flour, sand, oil,all kinds of liquids and dust-like substances. Very annoying.
You could always just override the TAKE/GET-command with a Specific Task with no actions attached.( >GET BEER "That would be rather messy"). This of course leaves the beer as Dynamic and this has consequences. I don't know what else you want the player to do with the beer.
If you really want to change the beer to Static, I suppose you could make it Part Of Object.
rovarsson
 
Posts: 88
Joined: Mon Dec 23, 2019 10:37 pm
Location: Belgium
Points: 15

Re: Static object inside a container?

Postby Lazzah » Sat May 23, 2020 6:28 pm

Personally, I would dispense with the BEER object and just use a variable to indicate whether the pitcher is empty or full of beer. I would create a general GET BEER task to cover the PC taking the beer out of the pitcher. See attached demo. I have also created a PUT OBJECT IN PITCHER task if the PC tries to put anything in the pitcher.

Pitcher Problem.taf
(15.21 KiB) Downloaded 9 times
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: 2362
Joined: Thu Mar 31, 2011 4:54 am
Location: Clacton-on-Sea, Essex
Points: 65


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 6 guests

cron