I tried to make a menu but it says indentation mismatch here is the code (I'm a complete noob to python and to Ren'Py sorry if this was dumb or anything)
menu:
"Okay we will make a club.":
jump choice1_yes
"No a club is a pain in the ass to make.":
jump choice1_no
label choice1_yes:
$menu_flag = True
m "Thanks I always dreamed of owning a club!"
(this one is the one that the game gives me error at) jump choice1_done
label choice1_no:
$ menu_flag = False
quit()
jump choice1_done
label choice1_done:
script.rpy indentation mismatch
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.
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.
Re: script.rpy indentation mismatch
Identation means you need to write the script by inserting a number of spaces (4 is the generally accepted best practice) after certain statements that end in colons (:), like labels and menus (Probably not a good explanation, you may want to google 'python identation' to find out more about it). And all lines below should be at the same amount of spaces if they belong to that statement.
So the code should look like this:
So the code should look like this:
Code: Select all
menu:
"Okay we will make a club.":
jump choice1_yes
"No a club is a pain in the ass to make.":
jump choice1_no
label choice1_yes:
$menu_flag = True
m "Thanks I always dreamed of owning a club!"
jump choice1_done
Who is online
Users browsing this forum: No registered users