Page 1 of 1

:( yup me again, how to display a stats screen?

Posted: Sat Jun 07, 2014 1:43 am
by Jamiyu
I'm an ultra noob, now I have my stats and they do work. I just don't know how to make a screen so the player can check on their stats with their romance interest and, the skills the player has build up so far.

Also I would like to hind the romantic interest stats until the player has met all of them.

I've found, cookbooks but I really don't understand how to apply it to the game, or even if it's were I should be looking. This was what I found ---> http://www.renpy.org/doc/html/screens.html / http://www.renpy.org/wiki/renpy/doc/coo ... ion_Screen

I don't know how to make it work. :?

Any help will be greatly appreciated.

Re: :( yup me again, how to display a stats screen?

Posted: Sat Jun 07, 2014 5:17 am
by LRH
For making screens, you need http://www.renpy.org/doc/html/screens.html

On hiding the stats until you find everyone, you'll need to set a variable for meeting each character. This should go at the start of your game.

Code: Select all

$ metchar1 = False
$ metchar2 = False
Then, when you meet the character, you set the variable to True.

Code: Select all

$ metchar1 = True
On your screen, you can use an if statement to determine whether the relevant stats are shown.

Code: Select all

if metchar1 == True:
    text "Stat: [variable]"
    text "Stat: [anothervariable]"
if metchar2 == True:
    text "Stat: [variable2]"
    text "Stat: [anothervariable2]"
The variables above are the stats you want to show information on. You'd have to define those too, like for char1 and char2.