Getting inventory to persist between scenes

Announcements, support questions, and discussion for the Dialogue System.
Peter Drake
Posts: 37
Joined: Tue May 17, 2022 3:49 pm

Re: Getting inventory to persist between scenes

Post by Peter Drake »

IT WORKS!

Thank you for your help!
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Getting inventory to persist between scenes

Post by Tony Li »

Glad to help!
Aldurroth
Posts: 43
Joined: Wed Jul 20, 2022 8:44 pm

Re: Getting inventory to persist between scenes

Post by Aldurroth »

Nice. Any ideas how leave items between scenes? Will this same system work for that?
yaarthe7
Posts: 1
Joined: Wed Jul 20, 2022 9:00 pm

Re: Getting inventory to persist between scenes

Post by yaarthe7 »

You guys have all been such a huge help but I got another question that has me stumped. How do I create an inventory system or something similar to help me maintain elements between scenes? For example, I want to go into a shop, which is a separate scene in a dream, but flowers, leave the shop, then give the flowers to an npc. How can I tell the game that once I’ve obtained an item in one scene, that I want to remain in the altered state of “owning that item” in another scene?
https://routerlogin.ltd/
https://pikashow.ltd/
Last edited by yaarthe7 on Fri Dec 23, 2022 2:30 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Getting inventory to persist between scenes

Post by Tony Li »

Aldurroth wrote: Wed Jul 20, 2022 8:57 pmAny ideas how leave items between scenes? Will this same system work for that?
Is this the same question as your other thread? If so, let's continue there. If you have questions about setting up spawned objects, let me know.
yaarthe7 wrote: Wed Jul 20, 2022 9:01 pmYou guys have all been such a huge help but I got another question that has me stumped. How do I create an inventory system or something similar to help me maintain elements between scenes? For example, I want to go into a shop, which is a separate scene in a dream, but flowers, leave the shop, then give the flowers to an npc. How can I tell the game that once I’ve obtained an item in one scene, that I want to remain in the altered state of “owning that item” in another scene?
Three steps:

1. Use an inventory system, preferably one that already has Dialogue System integration.

2. Import the Dialogue System integration.

3. Change scenes using the Dialogue System's save system. (Save System manual, How to change scenes)

I have two recommendations for inventory systems:

More Mountains' Inventory Engine is simpler to learn and set up, but it doesn't have vendors (shops). I believe there's a user-contributed vendor addon for Inventory Engine that you could try.

Opsive's Ultimate Inventory System has everything -- an inventory system and UI that works with all input devices (keyboard, mouse, gamepads, touch, etc.) and has vendors, crafting, storage containers, and more. But it also has a longer learning curve.
Post Reply