Enchant00 wrote: ↑Thu Nov 15, 2018 5:09 am
Use
call screen choice instead of show screen.
yes call works but I don't want the screen to disappear...also, I don't know how to explain my situation without putting everything here, so this might be a bit lengthy...
Simplifying a bit, I've made a function for dialogue as well as choice menu. It looks like this:
Code: Select all
default Choices=False
init python:
yadj = ui.adjustment()
def msg(msg, choice1=False, choice2=False,choice3=False):
store.m_msg.append((msg,choice1,choice2,choice3))
store.yadj.value = store.yadj.range+300
renpy.restart_interaction()
renpy.pause()
screen Part1:
frame background Bak:
frame background None :
viewport:
yadjustment yadj
vbox spacing 15:
for message in m_msg:
$msg, choice1, choice2, choice3 = message
if choice1:
frame background Frame("gui/button/choice_background.png"):
xysize(720,275)
align (0.1, 0.1)
vbox:
yalign 0.5
textbutton "%s"%(choice1) style "choicez" action NullAction(), SetScreenVariable("Choices", "Choice1_1")
textbutton "%s"%(choice2) style "choicez" action NullAction(), SetScreenVariable("Choices", "Choice1_2")
showif Choices == "Choice1_1":
screen shot:
vbox:
text "You found health"
showif Choices == "Choice1_2":
screen lol:
vbox:
text "you found wealth"
if Choices != False:
screen cont:
textbutton "Continue" action If(Choices=="Choice1_1", true=Call("CuteRoute"), false=Call("ninjaRoute"))
else:
hbox spacing 15:
button xalign xgn xmaximum 580 xpadding 20 ypadding 10 background Frame("box.png", 25, 25):
text "%s"%(msg)
This is still kinda in the works, but if I were to emulate the above north-south example I'd write:
Code: Select all
msg("You stand at two crossroads")
msg("",choice1= "Go North", choice2 ="Go South")
And this leads to the problem I described in my first post.
Really sorry for troubling you guys
Thanks!