Hi, I'm still doing my multiplayer game, and I seek your advices for how to optimally use json files to retrieve characters skills (or maybe some other things, since I'm new to this I welcome every help). I'm not a total newbie, but there's still a lot of things I don't know since I'm not a full time developper.
I'll have (for now) 2 characters which have their own individual skills, animations, sounds, passives etc...
Each character will have 6 skills, and 4-9 more when under certain conditions, but also 1 to 3 passive skills.
I started by making a sheet data on google sheet that I'll export as a .json file.
I'll have 4 types of skills : SingleTarget ranged and Melee, and AOE Ranged and Melee
I suppose it's not possible to make passive into a .json files as it'll modify variable inside the player script itself. (But if it's possible, I'd like to hear how to do it !!)
If I understood correctly every things I read from a lot of sources, the sheet data should look like that :
https://prnt.sc/1u371zh
First of all, I'd like to know if it'll be good enough.
Second, I'd like to know if anyone knew how to use the name of the node for when it's instanced on func _ready():, retrieve the data on a dictionnary / a .json file ?
Like, Player spawn, how do I use "Player" in, for exemple :
Singleton.variable[self.name]["subvalue to retrieve"]
Since self.name doesn't work, I don't know how to do it.
I'd like to use that for when the player choose a character on a lobby, I store the name of the character after they hit a Confirm button on a variable on a Singleton, so that when "Player1" is instanced, it'll take the texture, animation, skill data sheet and everyhing else from the dictionnary "Player1". Then it'll do the same with "Player2"
Thanks in advance to everyone who'll want to help me, even if it isn't that simple (at least in my eyes)