I’m making a game with trivia elements so I’d be editing multiple variables for things such as the questions and answers. I already have many of the levels put into excel sheets for when I was using Unreal like this one: TutorialDataTableOld - Google Sheets
Unreal allowed devs to upload data tables like this but I have been recently wanting to switch to GDevelop although I understand that GDevelop doesn’t support importing excel sheets which is why I have been trying to use JSON resources instead.
The action you showed would work but it would be extremely tedious trying to make all the questions and levels and in the future I would also like to allow users to make their own trivia levels which is why I would like to just have a JSON resource for each trivia level and just be able to read off that for the variables during gameplay.
Here’s an example of the variables I want to change:
{
“name”: “Tutorial”,
“type”: “array”,
“children”: [
{
“type”: “structure”,
“children”: [
{
“folded”: true,
“name”: “Answers”,
“type”: “array”,
“children”: [
{
“type”: “string”,
“value”: “”
},
{
“type”: “string”,
“value”: “”
},
{
“type”: “string”,
“value”: “”
},
{
“type”: “string”,
“value”: “”
}
]
},
{
“name”: “CorrectAnswer”,
“type”: “number”,
“value”: 0
},
{
“name”: “Question”,
“type”: “string”,
“value”: “”
}
]
}
]
}
And be able to change it to this:
{
“name”: “Tutorial”,
“type”: “array”,
“children”: [
{
“type”: “structure”,
“children”: [
{
“folded”: true,
“name”: “Answers”,
“type”: “array”,
“children”: [
{
“type”: “string”,
“value”: “Calf”
},
{
“type”: “string”,
“value”: “Cub”
},
{
“type”: “string”,
“value”: “Puppy”
},
{
“type”: “string”,
“value”: “Kitten”
}
]
},
{
“name”: “CorrectAnswer”,
“type”: “number”,
“value”: 3
},
{
“name”: “Question”,
“type”: “string”,
“value”: “What do you call a baby dog?”
}
]
}
]
}