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.
-
WaluigiBestGirl
- Newbie
- Posts: 4
- Joined: Mon Oct 29, 2018 3:35 pm
- Projects: Walouise
-
Contact:
#1
Post
by WaluigiBestGirl » Mon Oct 29, 2018 3:45 pm
So, I'm trying to make a game and the "if command isn't working properly. here's the code
menu:
p "Where should I go?"
"Hallway." if guestroom:
p "Im in the hallway"
"To bed"
jump dinner
When ever I try to play my game it comes with a error message, how can I fix this?
extra info
version 7.1.1.929
script editor Editra 0.6.99
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#2
Post
by Imperf3kt » Mon Oct 29, 2018 4:51 pm
WaluigiBestGirl wrote: ↑Mon Oct 29, 2018 3:45 pm
When ever I try to play my game it comes with a error message, how can I fix this?
And the error is...?
Im going to go out on a limb here and hazard a guess that "guestroom" is not defined.
Add
somewhere before label start.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
WaluigiBestGirl
- Newbie
- Posts: 4
- Joined: Mon Oct 29, 2018 3:35 pm
- Projects: Walouise
-
Contact:
#3
Post
by WaluigiBestGirl » Mon Oct 29, 2018 6:52 pm
Actually it was because I had 2 :s (even though it doesn't show it)
Users browsing this forum: Bing [Bot]