Is it possible to make a personality test on Ren'Py ?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Jira
Newbie
Posts: 2
Joined: Tue Dec 10, 2019 10:32 am
Contact:

Is it possible to make a personality test on Ren'Py ?

#1 Post by Jira » Tue Dec 10, 2019 11:28 am

Hello, I started a Visual Novel project about 2 months ago and I'm finally starting to write the script on Ren'Py, but I'm facing a problem.

I would really like to introduce a personality test system in my Visual Novel like in the "Pokémon Mystery Dungeon" games.
(https://youtu.be/JtFVPmQR21g) <---- like that !
It would be to define a personality type at the MC as well as the character he will meet first, and many other things.

I really have no knowledge of Ren'Py or programming, I learned everything through dozens of tutorials and I only know how to do the minimum.
Thanks to anyone who can give me information or links to tutorials that I wouldn't have found.

Have a nice day

User avatar
Per K Grok
Miko-Class Veteran
Posts: 674
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1
Projects: Defenders of Adacan Part 2
itch: per-k-grok
Location: Sverige
Contact:

Re: Is it possible to make a personality test on Ren'Py ?

#2 Post by Per K Grok » Tue Dec 10, 2019 1:52 pm

Jira wrote:
Tue Dec 10, 2019 11:28 am
Hello, I started a Visual Novel project about 2 months ago and I'm finally starting to write the script on Ren'Py, but I'm facing a problem.

I would really like to introduce a personality test system in my Visual Novel like in the "Pokémon Mystery Dungeon" games.
(https://youtu.be/JtFVPmQR21g) <---- like that !
It would be to define a personality type at the MC as well as the character he will meet first, and many other things.

I really have no knowledge of Ren'Py or programming, I learned everything through dozens of tutorials and I only know how to do the minimum.
Thanks to anyone who can give me information or links to tutorials that I wouldn't have found.

Have a nice day

You could use choice menus to ask questions and provide alternatives for the player to use as answers. Depending on the answer you would add or subtract values from variables representing certain personality traits. Questions and answers could look like this.

Code: Select all

default gender=none
default courage=5
default smarts=5


######################

label quiz:
    menu:
        "Are you a boy or a girl?"

        "A boy.":
            $ gender="boy"
            jump boy

        "A girl.":
            $ gender="girl"
            jump girl

label boy:
    menu:
        "A punk is hassling a girl on the street. What will you do?"

         "Help without hesitation.":
            $ courage += 5
            $ smarts -= 1
            jump boy2 

         "Help, even if scared.":
            $ courage += 2
            $ smarts += 1
            jump boy2 

         "Call the police.":
            $ courage += 3
            $ smarts += 5
            jump boy2 

         "Do nothing out of fear.":
            $ courage -= 3
            $ smarts -= 2
            jump boy2 





When all questions has been answered you use the variables to assign the player to a certain personality using if, elif, else statement:

Code: Select all

label assessment_boy:
    if courage>10:
        "You are a very brave person."
    elif courage>5:
        "You have a normal level of bravery."
    elif courage>2:
        "You are not very brave."
    else:
        "You're a bit of a scaredy cat."

    if smarts>10:
        "You are very intelligent."
        
        ----


Just examples on how you could set it up. You could have completely different traits, different questions, and make different evaluations of the answers

Jira
Newbie
Posts: 2
Joined: Tue Dec 10, 2019 10:32 am
Contact:

Re: Is it possible to make a personality test on Ren'Py ?

#3 Post by Jira » Thu Dec 12, 2019 11:45 am

Wow, thank you so much for the example that will be very useful to me !

User avatar
CSV
Regular
Posts: 145
Joined: Sun Aug 31, 2014 6:58 pm
Tumblr: csvidaldraws
Deviantart: csvidal
itch: csvidal
Location: Portugal
Contact:

Re: Is it possible to make a personality test on Ren'Py ?

#4 Post by CSV » Thu Dec 12, 2019 3:43 pm

I have made personality quizzes in Ren'Py, and I have shared the coding I use before, you can find it on this post. (I don't know if posting it again would be considered spam, so sorry for the link.)
☆☆☆
(portfolio)
☆☆☆☆☆☆☆☆☆

Post Reply

Who is online

Users browsing this forum: Google [Bot]