Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice
  2. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

RPG systems; inventory, usable items, dialogue

Discussion in 'Works In Progress - Archive' started by returnString, Apr 3, 2012.

  1. returnString


    Jul 10, 2010
    Hola :)

    Been working on some subsystems today, seeing as I love the technical work so much.

    The first main system is the inventory, it's fairly self-explanatory. Any object with a PickableEntity component can be stored in the inventory. At the moment, only the player has an inventory, but this'll be expanded in the future to support shops, lootable containers, etc.

    The second (and better!) system is the dialogue system. It supports standard lines of dialogue, branching based on external factors, player decisions, and unspoken actions.

    Here's what a dialogue might look like, stored as a resource:

    Next up is a visual node editor for this. Also in this build is a basic implementation of a usable entity; if you go the pillar in the middle, you'll see you can interact with it (it's implemented with the following code:

    You can test the current build (including the bizarre sample dialogue above) right now: