Character Profiles in Menu?

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
urmajerk
Newbie
Posts: 2
Joined: Wed Oct 12, 2016 2:49 pm
Contact:

Character Profiles in Menu?

#1 Post by urmajerk »

I'm really new to Ren'py, making visual novels, and coding. But for the visual novel I'm making, I wanted to have a character page in the menu. Like where it says save, load, etc. I wanted to have a button for character profiles. Then you would be able to see each characters sprite and their info (such and likes and dislikes). I have absolutely no idea how to do this and would like some help on how to add something like that in.
If I wanted to make each characters profiles unlockables as well, I was wondering how that would work?

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Character Profiles in Menu?

#2 Post by Divona »

You will have to learn the screen language.
https://www.renpy.org/doc/html/screens.html
Completed:
Image

User avatar
Valhalla
Regular
Posts: 140
Joined: Mon Jun 13, 2016 10:01 am
Contact:

Re: Character Profiles in Menu?

#3 Post by Valhalla »

Divona wrote:You will have to learn the screen language.
https://www.renpy.org/doc/html/screens.html
Yeah, this.

I also recommend these tutorials:
viewtopic.php?f=8&t=9812
http://renpyhandbook.tumblr.com/my-tutorials
viewtopic.php?f=8&t=14237&hilit=tutorial

Profile screens can vary in complexity depending on how you want it to look, will it have categories etc.

If you're new to Ren'py it's probably best to save this for after you understand all the inner working of your standard menus (main menu, navigation, save/load etc). This is probably true of any menu outside the usual.
Image Image Image

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Character Profiles in Menu?

#4 Post by papiersam »

Those being said, it's important to understand how you're gonna code these characters. Classes or just plain variables work, but I recommend the former. If you're new to coding as well, I'd also recommend learning how to code classes. Something like:

Code: Select all

init -12 python:
    
    class NewChar:
        
        charCount = 0
        
        def __init__(self, name, sprite_im):
            #raise ValueError()
            NewChar.charCount += 1
            self.name = name
            self.sprite_im = sprite_im

 
label start:
    
    $zack = NewChar("Zack")

    "A new character names [zack.name] has been added!"
    

urmajerk
Newbie
Posts: 2
Joined: Wed Oct 12, 2016 2:49 pm
Contact:

Re: Character Profiles in Menu?

#5 Post by urmajerk »

Thank you everyone for the help! I'll look into your link and tutorial's and see how it goes!

Post Reply

Who is online

Users browsing this forum: No registered users