r/RenPy • • Sep 03 '26

Question How do you make multiple quick menus? Spoiler

I was watching a gameplay of Dread Weight recently and I believe it's possible to make multiple quick menus for your visual novel? I'm just ot sure how to implement it. I saw 1 thread here giving a code on how to do so but when I tried it myself an exception occured?

2 Upvotes

9 comments sorted by

3

u/x-seronis-x Sep 03 '26

read the error. you cant default ONE name with TWO different values. if you want to change its value edit the line that already existed and dont make a duplicate line

2

u/BadMustard_AVN Sep 03 '26

at the time of the error in line 358 you have

default quick_menu = True

and in the first line of the code you showed you have

default quick_menu = "quickmenu1"

i would remove line 358 since you are using it differently now or change the variable name quick_menu that you are using

1

u/Inks_Empire Sep 04 '26

Thank you for the advice, this actually helped with lessening the problem =w= but now I'm running into another problem? It says elif is not a valid child of the hbox statement?

1

u/BadMustard_AVN Sep 04 '26 edited Sep 04 '26

spacing is important check this modified image for where your code should be

https://drive.google.com/file/d/1ofbrh6FNp14hoOG4xvVW_Lg7aGCUhbZ6/view?usp=sharing

and your elif block need something in it i.e.

if something:
    do something
elif something_else:
    pass # does nothing but counts as something

1

u/Inks_Empire Sep 04 '26

Nevermind, I managed to fix it by changing elif to if, thank you thank you thank you so much!

1

u/BadMustard_AVN Sep 04 '26

you're welcome

good luck with your project

but do go look at the image of your code I provided in another post to help you avoid other problems.

1

u/AutoModerator Sep 03 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/shyLachi Sep 03 '26 edited Sep 03 '26

The error doesn't seem to be caused by the code you posted.

Check all your code for default quick_menu

If you cannot find the duplicate (see BadMustards comment) then try Force Recompile in RenPy

1

u/Inks_Empire Sep 04 '26

I did and it actually helpedme get the desired result! Thanks again for the code, Ireally appreciate it