Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
The PK Girl
Ghost Town
Emily
Top Hat
Give Me your Lunch Money 2010
The Fortress of Fear
the virtual human
H.P. Lovecraft’s Innsmouth: A Fanmade Simulated Environment
Trick of Treat
Die Feuerfaust
 
Latest Forum Posts
The THUNDERDOME
Updating old games
DO WHAT YOU'RE TOLD AND STAY ENTERTAINED
Twilight Inventory
New conversion: The Royal Puzzle
Text Adventure Remake
Character Info Input with Loop
What does our developer look like?
ADRIFT v4 versus ADRIFT v5 (Larry & David only! :) )
IFComp 2017 Games Announced
 
Latest Reviews
Tingalan
Trick of Treat
The Last Expedition
The Tartarus Project
The Lost Children
The Fortress of Fear
The Warlord, The Princess & The Bulldog
Die Feuerfaust
The Spectre of Castle Coris
The Dragon Diamond

Make a donation

Get it from CNET Download.com!
Cursor  Multiple Instances of Same Object

Issue Type: Status: Priority: Date Submitted: Votes:
Enhancement Open High Tue 9th Aug 2011 16 votes Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.19 Mon 10th Aug 2015 Log In
 
ReiSnatcherTue 9th Aug 2011 09:19
I’d like it to be possible to have multiple instances of the same item.

For instance, if I want every refrigerator to contain orange juice, I don’t want to have to create 20 identical orange juice objects.

You’d be able to leave them where ever, or carry multiple at the same time. If you Drink Orange Juice, one of the 5 you are holding would be deleted, and you’d now have 4.

 
saabieSat 10th Dec 2011 07:23
This is especially important for any sort of battle system where you want to keep track of how many arrows, throwing stars, darts and bullets each character has, and also allow them to be stored in containers or locations.
It would need some sort of "stacked" object that contains a count of the number of objects in the stack, plus an ability to split it into two objects at different locations, or combine the count from two stacked objects of the same type into a single object.

An alternative would be to give every location, character and container/surface object an "arrows" integer property and then arrange for the look, inventory and examine commands to print out "15 arrows" at the same time as the other objects at that location are printed.
It would probably need a special property type other than integer so Adrift knows that it needs to add it to the list of child objects.
 
TrollmasterSun 1st Mar 2015 13:14
This would be very helpful in many situations: half a dozen fresh towels at the beach; chairs, tables, sofas etc. that can be used in several rooms without creating a chair specific to that room. The reasons the others have given as well.
 
KennedyMon 10th Aug 2015 04:15
How do the MUDs do it? Maybe you can borrow some of their code?
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster