Hello everyone, so, I am trying to make a complete rewrite as fast as possible of my game as you know it;
Now, before, I used a class system for all character data, but it all got out of hand quickly because of my terrible naming conventions/programming practices previously.
As you know, if you pile good stuff on garbage, you basically ruin the good stuff,
now, I had a brilliant idea to just use a Database script that stores a bunch of dictionaries; so far i wrote this file;
extends Node
@export var region_code = “JP”
@export var cartridge_header = “Project”
@export var Party := {
“HERO”: {
“Name”: “Default”,
“HP”: 15,
“MP”: 20,
“MAX_HP”: 15,
“MAX_MP”: 5,
“Luck”: 15,
“Strength”: 20,
“Inventory”: []
,
“NesuPowers”: []
,
“Sex”: 0,
“SkinTone”: 0,
“HairShade”: 0,
“HairStyle”: 0
},
“ALLY1”: {
“Name”: “Default”,
“HP”: 15,
“MP”: 20,
“MAX_HP”: 15,
“MAX_MP”: 5,
“Luck”: 15,
“Strength”: 20,
“Inventory”: []
,
“NesuPowers”: []
,
“Sex”: 1,
“SkinTone”: 0,
“HairShade”: 1,
“HairStyle”: 0
},
“ALLY2”: {
“Name”: “Default”,
“HP”: 15,
“MP”: 20,
“MAX_HP”: 15,
“MAX_MP”: 5,
“Luck”: 15,
“Strength”: 20,
“Inventory”: []
,
“NesuPowers”: []
,
“Sex”: 0,
“SkinTone”: 0,
“HairShade”: 2,
“HairStyle”: 0
},
“ALLY3”:{
“Name”: “Default”,
“HP”: 15,
“MP”: 20,
“MAX_HP”: 15,
“MAX_MP”: 5,
“Luck”: 15,
“Strength”: 20,
“Inventory”: []
,
“NesuPowers”: []
,
“Sex”: 1,
“SkinTone”: 0,
“HairShade”: 3,
“HairStyle”: 0
}
}
(shoot, i accidentally made the max variables less than the actual values . . . human error hahhh)
however, i am not sure (even with the docs/google) how to access a dictionary inside a dictionary—let alone arrays inside these matrixes. (at this point i wanna say its a matrix)
Even if i can do this though—is it practical? Should i or anyone else even do it this way?
-thank you in advance, i hope this topic can help others besides me as well ![]()
