- Mar 11, 2022
- 19
- 10
Some months ago I started a Godot Mock-up project that runs a simple dungeon crawler based off of
The inventory system that I wrote for it is way too complex and requires too much maintenance when other part of the code are worked upon; I'll sum it up briefly:
- All races in the game have 1 to n "Default bodies", these determine the standard starting body for that specific race and can be different for various genders.
- All bodies contain 1 to n "Components", these represent individual components of the body, such as limbs and organs.
- Components are flagged with a "has_equip_slot" flag that is true for limbs that can somehow have something equipped on them (e.g. hands can have gloves) and are false for organs and limbs that cannot equip items (e.g. a livers and wings both can't wear clothing).
- All of the mentioned objects have an arrayof tags associated to them, these are used by the game to identify some propreties about them.
The pros of this system are:
- Allows the player to define every component of a species body down to its limbs and organs.
- Allows the player to define different bodies based on the different genders of a spieces.
The cons are:
- Code is complex and requires extensive tailoring around other pieces of code (e.g. events).
- Requires a dynamic UI in order to have a comfortable equipment menu.
- Might be too complex for users to understand / use comfortably.
- Is overkill for the scale of the project
Since I'm set on canning this system entirely I though that it was best if I asked someone with more experience for a system that I could substitute it with.
The features that I would like to achieve are these :
- Good flexibility around the character race, as it's the main reason that i'm not using a traditional RPG system, that usually have hard-coded slots.
- Decent level of detail, in order to expand what TiTs already offers, to allow the player to have more variables to customize their character with.
- Simple structure as to lower the code maintenance down to a minimum
I know that a system with all of those 3 is probably impossible to achieve, but if you guys know of any particular model that can check some of the boxes that would be a great help.
You must be registered to see the links
. It's part of a bigger project that aims to create a procedurally generated word filled with user-generated content.The inventory system that I wrote for it is way too complex and requires too much maintenance when other part of the code are worked upon; I'll sum it up briefly:
- All races in the game have 1 to n "Default bodies", these determine the standard starting body for that specific race and can be different for various genders.
- All bodies contain 1 to n "Components", these represent individual components of the body, such as limbs and organs.
- Components are flagged with a "has_equip_slot" flag that is true for limbs that can somehow have something equipped on them (e.g. hands can have gloves) and are false for organs and limbs that cannot equip items (e.g. a livers and wings both can't wear clothing).
- All of the mentioned objects have an arrayof tags associated to them, these are used by the game to identify some propreties about them.
The pros of this system are:
- Allows the player to define every component of a species body down to its limbs and organs.
- Allows the player to define different bodies based on the different genders of a spieces.
The cons are:
- Code is complex and requires extensive tailoring around other pieces of code (e.g. events).
- Requires a dynamic UI in order to have a comfortable equipment menu.
- Might be too complex for users to understand / use comfortably.
- Is overkill for the scale of the project
Since I'm set on canning this system entirely I though that it was best if I asked someone with more experience for a system that I could substitute it with.
The features that I would like to achieve are these :
- Good flexibility around the character race, as it's the main reason that i'm not using a traditional RPG system, that usually have hard-coded slots.
- Decent level of detail, in order to expand what TiTs already offers, to allow the player to have more variables to customize their character with.
- Simple structure as to lower the code maintenance down to a minimum
I know that a system with all of those 3 is probably impossible to achieve, but if you guys know of any particular model that can check some of the boxes that would be a great help.