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.
-
JanstinBeebo
- Newbie
- Posts: 20
- Joined: Sun Mar 25, 2018 12:38 pm
-
Contact:
#1
Post
by JanstinBeebo » Wed Mar 28, 2018 8:11 am
Code for reference:
Code: Select all
define talkingdogs = True
define yourself = True
define weather = True
label tobytopics:
if weather == "False" and talkingdogs == "False" and yourself == "False":
"I'd really like to ask about Bailey..."
label tobytopicsb:
menu:
"Bailey..." if weather == "False" and talkingdogs == "False" and yourself == "False":
jump baileytalk
"How about this weather!" if weather:
$weather = False
jump weather
"Talking dogs?" if talkingdogs:
$talkingdogs = False
jump talkingdogs
"Tell me about yourself!" if yourself:
$yourself = False
jump tobytalk
label weather:
##Lots of dialogue
jump tobytopics
label talkingdogs:
##Lots of dialogue
jump tobytopics
label tobytalk:
##Lots of dialogue
jump tobytopics
label baileytalk:
##Lots of dialogue
##Game moves on
Once the three topics have all been chosen, the game gets stuck in an endless loop of displaying the dialogue in the weather label over and over again. The only thing I can think of is that there is something wrong with my code that is supposed to have the game display the "Bailey..." menu option once the other three have been chosen. It makes sense that it would just keep skipping the menu because it has nothing to display, moving on to the weather label, jumping back to the menu, and so on. So I guess my question is, what do I need to change in my code for the game to recognize once the three variables have been chosen?
Code: Select all
menu:
"Bailey..." if weather == "False" and talkingdogs == "False" and yourself == "False":
jump baileytalk
Code: Select all
if weather == "False" and talkingdogs == "False" and yourself == "False":
"I'd really like to ask about Bailey..."
These do not work?
Last edited by
JanstinBeebo on Wed Mar 28, 2018 1:13 pm, edited 1 time in total.
-
gas
- Miko-Class Veteran
- Posts: 838
- Joined: Mon Jan 26, 2009 7:21 pm
-
Contact:
#2
Post
by gas » Wed Mar 28, 2018 9:29 am
False, non "false"
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
10 ? "RENPY"
20 GOTO 10
RUN
-
JanstinBeebo
- Newbie
- Posts: 20
- Joined: Sun Mar 25, 2018 12:38 pm
-
Contact:
#3
Post
by JanstinBeebo » Wed Mar 28, 2018 12:24 pm
Sorry, I don't understand what you mean by that. Do I need to take out the quotations?
[EDIT]
Ah I see, thank you!
Users browsing this forum: Google [Bot], Ocelot