Here, if you are needing it.
Code: Select all
# You can place the script of your game in this file.
init python:
max_love=150
current_love_sakura=5
current_love_arisu=50
current_love_hana=5
current_love_daisuke=5
current_love_naoki=5
current_love_satoshi=5
show_arisu=False
show_sakura=False
show_hana=False
show_daisuke=False
show_naoki=False
show_satoshi=False
def stats_overlay():
if show_sakura:
ui.frame()
ui.vbox()
ui.text("Sakura")
ui.bar(max_love,current_love_sakura, xmaximum=150)
ui.close()
if show_arisu:
ui.frame()
ui.vbox()
ui.text("Arisu")
ui.bar(max_love,current_love_arisu, xmaximum=150)
ui.close()
if show_hana:
ui.frame()
ui.vbox()
ui.text("Hana")
ui.bar(max_love,current_love_hana, xmaximum=150)
ui.close()
if show_daisuke:
ui.frame()
ui.vbox()
ui.text("Daisuke")
ui.bar(max_love,current_love_daisuke, xmaximum=150)
ui.close()
if show_naoki:
ui.frame()
ui.vbox()
ui.text("Naoki")
ui.bar(max_love,current_love_naoki, xmaximum=150)
ui.close()
if show_satoshi:
ui.frame()
ui.vbox()
ui.text("Satoshi")
ui.bar(max_love,current_love_satoshi, xmaximum=150)
ui.close()
config.overlay_functions.append(stats_overlay)
init:
# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
# Declare characters used by this game.
$ e = Character('Eileen', color="#c8ffc8")
# The game starts here.
label start:
$ show_hana=True
"Game start"
$ current_love_hana+=50
e "You've created a new game."
$ show_hana=False
e "You've created a new Ren'Py game."
$ show_arisu=True
"Game start"
$ current_love_arisu-=50
e "Once you add a story, pictures, and music, you can release it to the world!"
$ show_arisu=False
There are two things.
1 - I don't know how to customise the relationship bar, I can easily enough design it how I like but then how do I get it to replace the theme roundrect bar???
and
2 - How can I get the relationship bar to go up without needing text after each
&$ show_arisu=True
because if I remove the text after each of these statements the bar dissappears.$ current_love_arisu-=50
Any help would be much appreciated.