IT WORKS!
Thank you for your help!
Getting inventory to persist between scenes
-
- Posts: 37
- Joined: Tue May 17, 2022 3:49 pm
Re: Getting inventory to persist between scenes
Glad to help!
Re: Getting inventory to persist between scenes
Nice. Any ideas how leave items between scenes? Will this same system work for that?
Re: Getting inventory to persist between scenes
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/
https://routerlogin.ltd/
https://pikashow.ltd/
Last edited by yaarthe7 on Fri Dec 23, 2022 2:30 am, edited 1 time in total.
Re: Getting inventory to persist between scenes
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.
Three steps: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?
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.