ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Restricting contens of 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.

Restricting contens of container

Postby P/o Prune » Thu Feb 07, 2019 9:07 am

I'm in a kind of a tight spot here and hope one of you guys out there can help.

I have this object, a "leather wine bag"
The object can hole one item, namely the other object "wine" which is inside the bag. The problem is that when I have used the wine I'm able to put other objects into the bag which would appear weird I think.
How do I get around this?
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 54Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4360
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 58

Re: Restricting contens of container

Postby R2T1 » Thu Feb 07, 2019 10:03 am

What about a specific task that overrides the PUT INTO action with a restriction that it can only be the wine or else it defaults to the standard message. (Just thinking out loud and haven't tried it at all.
User avatar
R2T1
 
Posts: 113
Joined: Thu Dec 20, 2012 10:41 am
Location: Sydney, Australia
Points: 13

Re: Restricting contens of container

Postby P/o Prune » Thu Feb 07, 2019 2:31 pm

Not a bad idea.
I have thought about something in the lines of changing the property of the wine bag so when the wine is used it can't hold anything else… Or maybe the player would just automatically discard it.
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 54Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4360
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 58

Re: Restricting contens of container

Postby Lumin » Thu Feb 07, 2019 4:04 pm

Does the wine really have to be an object inside the bag and does the bag have to be set to hold objects? Nothing wrong with just having the description change from that of a full wine bag to empty once whichever command is used.
User avatar
Lumin
 
Posts: 1951
Joined: Fri Aug 06, 2004 5:48 pm
Points: 34

Re: Restricting contens of container

Postby P/o Prune » Thu Feb 07, 2019 5:01 pm

Lumin wrote:Does the wine really have to be an object inside the bag and does the bag have to be set to hold objects? Nothing wrong with just having the description change from that of a full wine bag to empty once whichever command is used.

I guess it doesn't… Hmmm maybe not a bad idea.
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 54Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4360
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 58

Re: Restricting contens of container

Postby R2T1 » Fri Feb 08, 2019 2:18 am

So that's 2 "not a bad ideas". I would go with Lumin's as it would be easier to implement.
User avatar
R2T1
 
Posts: 113
Joined: Thu Dec 20, 2012 10:41 am
Location: Sydney, Australia
Points: 13


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 7 guests

cron