Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The TriviaDB Extension allows you to fetch trivia questions and answers, validate user responses, and reset the quiz for a new round. It simplifies the process of creating trivia games in GDevelop by handling data fetching, answer shuffling, and checking whether the selected answer is correct. Perfect for quiz-based projects!
This extension, excluding additional requirements, was written entirely using GDevelop's primary events, no JavaScript needed.
1 Example
To enhance the user experience, the extension includes a feature that allows you to check if it’s working as expected by pressing Shift + I, which will display the results in the console. Additionally, the extension prevents 429 errors and unexpected behavior by using dynamic scene selection. This enables you to create multiple quizzes with random outputs. Although the extension currently supports a hardcoded selection of 5 parameters (1 question + 4 answers), TriviaDB can handle up to 50 parameters. However, the current setup is ideal for most quiz creators who don’t want to deal with custom quiz setups.
2 Example
How to use the extension
TriviaDB Extension – Setup Guide
Extension Requirements
Before using the extension, you must install the following dependencies. If these are missing, data fetching will fail, resulting in blank output text.
Required Extensions:
Make sure these extensions are installed before proceeding.
Setup Guide
Step 1: Create Necessary Objects
Step 2: Attach the Behavior
Step 3: Set Up the Event Logic
Event Flow Reference
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
TriviaProject.zip
Extension file
TriviaDB.zip