ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Putting an object into other objects (initial 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.

Putting an object into other objects (initial location)

Postby highways » Tue Apr 19, 2016 4:39 pm

There are bottles numbered 1 to 7 as separate objects... and classified as containers.
There is a liquid (object) which I want to be in the bottles as the 'initial location'.

I have made the 7 bottles into a group... but the liquid object does not allow the liquid to be put inside a group.

If I have made a silly mistake.... please put me right.

If there is another way of doing it... please advise.

Hopeful :)
Nemo Mortalium Omnibus Horis Sapit. (No man is at all times wise)
User avatar
highways
 
Posts: 210
Joined: Tue Jul 13, 2004 6:07 pm
Location: Staffordshire
Points: 10

Re: Putting an object into other objects (initial location)

Postby ElliotM » Tue Apr 19, 2016 5:07 pm

Dynamic objects can only be in one place at a time, so you'd have to try it with static objects.
ElliotM
 
Posts: 1227
Joined: Tue Apr 17, 2007 8:04 pm
Location: The Midwest in the USA
Points: 13

Re: Putting an object into other objects (initial location)

Postby highways » Wed Apr 20, 2016 8:39 am

ElliotM wrote:Dynamic objects can only be in one place at a time, so you'd have to try it with static objects.


Thanks ElliotM good of you to reply,

Tried it as static: in the initial location there is no "object" group to put the liquid in.
Tried using a task: again there is no "object" group.
Tried it as locations; 'desperation'

I can't for the life of me see "where/how" the object group can be used.

Thanks... gone back to the drawing board... :(
Nemo Mortalium Omnibus Horis Sapit. (No man is at all times wise)
User avatar
highways
 
Posts: 210
Joined: Tue Jul 13, 2004 6:07 pm
Location: Staffordshire
Points: 10

Re: Putting an object into other objects (initial location)

Postby Jjbee62 » Wed Apr 20, 2016 3:00 pm

What's your goal with the group of objects? To be able to access them all (get, take, drop, open, etc.) with one command? I'm trying to understand what you need to accomplish.

I'd suggest 2 versions of each bottle, filled and empty and 2 bottle groups. The actual liquid is a hidden object (or 8 hidden objects, the portion in each bottle to start and the full amount in the new container). When the filled bottle group is emptied, have a task move them to hidden, move the hidden empty bottle group to the location and move the hidden liquid to the new container location.

I'm doing something similar with dispenser objects. For example a box of tissues. There are at least 2 different tissues (or however many can be in circulation at one time). Only one is shown in the tissue container, the others are hidden. Then I just use tasks to move the hidden object(s) to the desired location/character.

1- Always stays in container
2- Hidden until get/take command, then transferred to player
3- Hidden until give command, then transferred to character and 2 is moved back to hidden.
4- And more just repeat actions for 3.

After a use command, the used object is moved back to hidden and a message stating the used tissue was disposed of is displayed.
Jjbee62
 
Posts: 64
Joined: Fri Apr 15, 2016 5:20 pm

Re: Putting an object into other objects (initial location)

Postby ElliotM » Wed Apr 20, 2016 5:28 pm

An alternative might be to 'model' the liquid as a state property for the containers with the states 'Empty' or 'Full'.
ElliotM
 
Posts: 1227
Joined: Tue Apr 17, 2007 8:04 pm
Location: The Midwest in the USA
Points: 13

Re: Putting an object into other objects (initial location)

Postby highways » Thu Apr 21, 2016 2:15 pm

ElliotM wrote:An alternative might be to 'model' the liquid as a state property for the containers with the states 'Empty' or 'Full'.


Thanks ElliotM... you are now going outside my understanding of everything this side pen and paper.

But thanks.
Nemo Mortalium Omnibus Horis Sapit. (No man is at all times wise)
User avatar
highways
 
Posts: 210
Joined: Tue Jul 13, 2004 6:07 pm
Location: Staffordshire
Points: 10

Re: Putting an object into other objects (initial location)

Postby highways » Thu Apr 21, 2016 2:27 pm

Jjbee62 wrote:What's your goal with the group of objects?


The goal was to put some liquid inside the bottles in one go... hence the "object" group... which doesn't seem to be of any use!

However I have done what I set out to do using the following:

created dynamic objects 'bottle 1' through to 'bottle 7' (drinkable)

created dynamic objects 'inside 1' through to 'inside 7' (initial loc - inside bottle 1 - 7)

created tasks 'drink from bottle 1' through to bottle 7' (different objectives)

It may not be to the standard of some of the 'whiz kids' - but it works. :)
Nemo Mortalium Omnibus Horis Sapit. (No man is at all times wise)
User avatar
highways
 
Posts: 210
Joined: Tue Jul 13, 2004 6:07 pm
Location: Staffordshire
Points: 10


Return to ADRIFT 5.0

Who is online

Users browsing this forum: Google [Bot] and 3 guests