Ex:
Code: Select all
label start:
e "Hi!"
e "How are you?"
e "Good to meet you."
menu:
"Who are you?":
jump choice1
"Hello.":
jump choice2
Thanks!
Code: Select all
label start:
e "Hi!"
e "How are you?"
e "Good to meet you."
menu:
"Who are you?":
jump choice1
"Hello.":
jump choice2
It's not that you need to create buttons for every single menu... but it might looks like
Code: Select all
screen onscreen_choices_scr(list_of_choices=None):
style_prefix "choice"
vbox:
align(0.5,0.2)
for (choice_text, label_to_jump_to, next_label_name) in list_of_choices:
button:
text choice_text
action [SetVariable("next_label", next_label_name),
Hide("onscreen_choices_scr"),
Jump(label_to_jump_to) ]
default next_label = None
# The game starts here.
label start:
"..."
# you need to pass the list of choices to the screen:
# (some text (the choice), name of label to jump to if choice is chosen,
# name of label to jump to after choice)
show screen onscreen_choices_scr([ ("Who are you?", "choice1", "end"),
("Hello.", "choice2", "another_label") ])
while True:
e "Hi!"
e "How are you?"
e "Good to meet you."
label another_label:
e "?.."
"... ..."
show screen onscreen_choices_scr([ ("#2 Who are you?", "choice1", "end"),
("#2 Hello.", "choice2", "end") ])
while True:
e "#2 Hi!"
e "#2 How are you?"
e "#2 Good to meet you."
label end:
"The end."
"?!"
return
label choice1:
"Who are you?.."
$ renpy.jump(next_label)
label choice2:
"Hello..."
$ renpy.jump(next_label)Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]