ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

How do you make an inventory?

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.

How do you make an inventory?

Postby UltraSSGod » Mon Jul 15, 2013 8:06 pm

For a certain character, the player, an inventory is needed in my game.

Also, if possible, can you add a number to the score once the player gets an object and puts it in his or her inventory?

Answer them in that order, please. It would help if you put them in different paragraphs.
UltraSSGod
 
Posts: 19
Joined: Mon Jul 15, 2013 5:53 pm

Re: How do you make an inventory?

Postby David Whyld » Mon Jul 15, 2013 8:10 pm

You don't need to make an inventory. The program handles it for you.
##################################

In progress: Shadows of the Mind 87k and counting. ETA: sometime in 2018.
David Whyld
 
Posts: 6726
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom
Points: 25

Re: How do you make an inventory?

Postby Lazzah » Mon Jul 15, 2013 8:58 pm

This forum is for discussions about playing games. If you have questions such as yours about ADRIFT 5 programming, please post them in the ADRIFT 5 forum.

However, if you want to give the player points when they get an object you would need to create a specific task for each object that the player can pick up and include in the actions "Set variable Score to %Score% + 2" (or whatever score you are going to award the player).

HTH
OUT NOW: Run, Bronwynn, Run!
Current W.I.P.: Magnetic Moon
Also available: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust - The Fist of Fire and The Lost Children
User avatar
Lazzah
Moderator
 
Posts: 2107
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17

Re: How do you make an inventory?

Postby vladmirangel » Mon Jul 15, 2013 10:03 pm

I know i'm off topic but, has anybody ever done before the ability to switch between 3 different game characters with each one in their respective locations holding their respective items? if not, i'll put some time into it and develop a working one which would mean that all those 3 characters have separate inventories for the player character to use.
Art Gallery of Time: 42kb
Psychologically over thinking stuff is entertaining in its own right. -the way of the troll-
User avatar
vladmirangel
 
Posts: 37
Joined: Sat Jun 29, 2013 8:14 am
Location: Philippines

Re: How do you make an inventory?

Postby ralphmerridew » Tue Jul 16, 2013 4:40 am

vladimirangel: I think that's built into ADRIFT 5. (It's certainly long been standard fare with Inform7 and TADS.)

(edit: clarify that I was responding to vladimirangel)
Last edited by ralphmerridew on Tue Jul 16, 2013 5:33 am, edited 1 time in total.
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
ralphmerridew
 
Posts: 2533
Joined: Fri Dec 13, 2002 11:56 pm
Location: Missouri
Points: 10

Re: How do you make an inventory?

Postby Lazzah » Tue Jul 16, 2013 4:55 am

ralphmerridew wrote:I think that's built into ADRIFT 5. (It's certainly long been standard fare with Inform7 and TADS.)

That's what David said! :)
OUT NOW: Run, Bronwynn, Run!
Current W.I.P.: Magnetic Moon
Also available: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust - The Fist of Fire and The Lost Children
User avatar
Lazzah
Moderator
 
Posts: 2107
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17

Re: How do you make an inventory?

Postby vladmirangel » Tue Jul 16, 2013 9:55 am

ralphmerridew wrote:vladimirangel: I think that's built into ADRIFT 5. (It's certainly long been standard fare with Inform7 and TADS.)

(edit: clarify that I was responding to vladimirangel)


shocking :shock:
so how could i control other characters?
For all i know, the only character we should be able to control is [The player character] found at the start of the game with the blue icon

Edit: ok so i removed the text here, i'll keep my mouth shut until i read some tutorials.
Edit 2: holy ****, it seems ralph is right. http://wiki.adrift.co/The_Player_Character . I should have looked at the tutorials first before posting. :x
Art Gallery of Time: 42kb
Psychologically over thinking stuff is entertaining in its own right. -the way of the troll-
User avatar
vladmirangel
 
Posts: 37
Joined: Sat Jun 29, 2013 8:14 am
Location: Philippines

Re: How do you make an inventory?

Postby Lazzah » Tue Jul 16, 2013 12:07 pm

vladmirangel wrote:Edit: ok so i removed the text here, i'll keep my mouth shut until i read some tutorials.
Edit 2: holy ****, it seems ralph is right. http://wiki.adrift.co/The_Player_Character . I should have looked at the tutorials first before posting. :x

Yes, Precisely. You should spend the next couple of years learning how to use ADRIFT before posting any more replies to messages asking for help. I know you are trying to be helpful, but you are only a beginner at using ADRIFT and your "answers" are just confusing people.
OUT NOW: Run, Bronwynn, Run!
Current W.I.P.: Magnetic Moon
Also available: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust - The Fist of Fire and The Lost Children
User avatar
Lazzah
Moderator
 
Posts: 2107
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17

Re: How do you make an inventory?

Postby vladmirangel » Tue Jul 16, 2013 12:50 pm

Lazzah wrote:Yes, Precisely. You should spend the next couple of years learning how to use ADRIFT before posting any more replies to messages asking for help.

:( yeah sorry bout that.
BTW, the way you said that, what struck me the most was "spend the next COUPLE of years learning how to use Adrift" that line if i were to literally take it's meaning, would mean that
[Reveal] Spoiler:
new guys won't be motivated to complete their games until they learn using adrift after 1 year.

If i were to say it bluntly
Art Gallery of Time: 42kb
Psychologically over thinking stuff is entertaining in its own right. -the way of the troll-
User avatar
vladmirangel
 
Posts: 37
Joined: Sat Jun 29, 2013 8:14 am
Location: Philippines

Re: How do you make an inventory?

Postby David Whyld » Tue Jul 16, 2013 1:10 pm

A couple of years is probably a little much, but a good few months at the minimum.
##################################

In progress: Shadows of the Mind 87k and counting. ETA: sometime in 2018.
David Whyld
 
Posts: 6726
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom
Points: 25

Re: How do you make an inventory?

Postby P/o Prune » Tue Jul 16, 2013 6:10 pm

And Vladimirangel, be careful not to make the same mistake 99% of newcomers do;
Trying to make a humongous game as their first adventure. I don't know of anyone who has pulled it off. It usually ends in a disaster.
D-Day V.5 in progress 86Kb (On backburner)
Anno 1700 First beta test in progress.
User avatar
P/o Prune
Site Admin
 
Posts: 4148
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 23

Re: How do you make an inventory?

Postby David Whyld » Tue Jul 16, 2013 6:25 pm

I can think of The PK Girl, but that's the only one. Most first games are either bad (guilty as charged) or smallish in size.
##################################

In progress: Shadows of the Mind 87k and counting. ETA: sometime in 2018.
David Whyld
 
Posts: 6726
Joined: Sat Dec 18, 2004 5:15 pm
Location: United Kingdom
Points: 25

Re: How do you make an inventory?

Postby Lazzah » Tue Jul 16, 2013 6:40 pm

vladmirangel wrote:
Lazzah wrote:Yes, Precisely. You should spend the next couple of years learning how to use ADRIFT before posting any more replies to messages asking for help.

:( yeah sorry bout that.
BTW, the way you said that, what struck me the most was "spend the next COUPLE of years learning how to use Adrift" that line if i were to literally take it's meaning, would mean that
[Reveal] Spoiler:
new guys won't be motivated to complete their games until they learn using adrift after 1 year.

If i were to say it bluntly

I was being sarcastic, it's the hot weather, makes me VERY irritable! ]:)
OUT NOW: Run, Bronwynn, Run!
Current W.I.P.: Magnetic Moon
Also available: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust - The Fist of Fire and The Lost Children
User avatar
Lazzah
Moderator
 
Posts: 2107
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17

Re: How do you make an inventory?

Postby rotter » Fri Jul 19, 2013 8:27 pm

Lazzah wrote:I was being sarcastic, it's the hot weather, makes me VERY irritable! ]:)


Actually it makes me very happy! Ahh, no that is the two bottles of white, take-away and all this vodka. :?
Currently working on "The Blank Wall" in ADRIFT 5 and "Again and Again" in Inform 7.
Delron, the home of Otter Interactive Fiction.
User avatar
rotter
 
Posts: 1352
Joined: Sat May 08, 2004 12:12 am
Location: UK
Points: 10


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 7 guests