A downloadable template for Windows, macOS, and Linux

Download NowName your own price

An easy-to-use template to make a four-choice trivia game in the Ren'Py engine. 

This template will save you the trouble of having to define a bunch of labels to make your trivia quiz! It's set up so that all you have to do to add questions is:

1. In questions.rpy, define a new Question object at the bottom of the script as follows:

Use this format:

define q<number> = Question(question = "<question>", 
                        a1 = "<first answer choice>", 
                        a2 = "<second answer choice>",  
                        a3 = "<third answer choice>",  
                        a4 = "<fourth answer choice>",  
                        correct = "<correct answer choice>")

At any place where you'd like to insert a line break, use \n.

A "question" should look something like this: 

# Defining q5, the fifth question 
define q5 = Question(question = "In Greek mythology, who was known for having \nwinged sandals?",
                          a1 = "Hermes",
                          a2 = "Apollo",
                          a3 = "Iris",
                          a4 = "Artemis",
                          correct = "Hermes")


2. In question_list.rpy, append the new Question object to question_list:

Add a line in this format to the bottom of the script:

question_list.append(q<number>)

For example, a game with 4 questions will look something like this:

label make_question_list:
      python:
          """         
         This is a list that stores the Question objects that the main script runs.
         Add objects created in questions.rpy to the list.
         For example, to add question q1 to the list, add the line
         question_list.append(q1)
         """
         question_list = []
         question_list.append(q1)
         question_list.append(q2)
         question_list.append(q3)
         question_list.append(q4)  # keep adding append lines!

3. Run the game to make sure everything works. 

4. Repeat until your trivia itch is satisfied!

Of course, feel free to edit the text, the GUI, and so on. Make it your own!


FEATURES:

  • Four-choice format
  • Sliding questions that flip into their answers
  • UI sound effects (source)

Free for personal and commercial use. If used, please give attribution to "dmochas" in the project's credits (or description, if needed). 

Download

Download NowName your own price

Click download now to get access to the following files:

dmochas_trivia_template-1.0-mac.zip 14 MB
dmochas_trivia_template-1.0-linux.tar.bz2 21 MB
dmochas_trivia_template-1.0-pc.zip 52 MB

Comments

Log in with itch.io to leave a comment.

why does it detect virus? is this false positive?
https://www.virustotal.com/gui/file/5751f9b4b39ff17ebe72bcce1e28bf093e8bf46555a0...