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
Posts: 2
Joined: Wed Dec 03, 2008 1:08 pm
Projects: Ultimate Naruto Dating Sim Game
Location: England


#1 Post by Hyouri » Wed Dec 03, 2008 7:04 pm

(Are you all sick of me yet?)

Here is what I would like to happen:

There is a clickable button somewhere at all times which takes me to the stat screen.

The layout of the stat screen has lots of stats, each out of 100 for an individual person.


Itachi 10/100
Sakura 35/100
Sasuke 52/100

And so on and so forth. I would like this screen to be accessable at all times, if possible, and to update whenever someone picks and option which changes the stat.


Code: Select all

    "Hi, Sasuke! You look stupid.":
        su "... I hate you, Naruto. Go die."
        $ su_points -= 30
    "Hi, Sasuke! Does your hair always look so soft and shiny? Is it natural?":
        su "Everything about me is natural, Naruto."
        $ su_points += 20

and then one could go to the stat screen (like when one right clicks) and it shows the updated stat depending on what you clicked. I have the DSE, I read into the stats.rpy file but not a single word made sense to me. I admit I can be slow when it concerns this stuff, and I really need some help here. Thanks in advance.
Insanity creeps while sanity sleeps.

User avatar
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...

Re: Stats...?!

#2 Post by JQuartz » Thu Dec 25, 2008 8:20 pm

You can use overlay to constantly display the stats. Example...

Code: Select all

    $ Itachipoints= "10/100" 
    $ Sakurapoints= "35/100"
    $ Sasukepoints= "52/100"

    python hide:
        def date_overlay():
                ui.text("Itachi %(Itachipoints)s" % globals(),
                         xpos=1.0, xanchor="right",
                         ypos=0.0, yanchor="top")

"This is needed otherwise the game won't run."
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

Post Reply

Who is online

Users browsing this forum: isobellesophia