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.
I don't have an example in hand, but a working example can be found in my rock paper scissors cookbook guide. I will be updating it soon(ish) to use the _return value.
Imperf3kt wrote: ↑Mon Oct 01, 2018 11:13 pm
Use renpy.input
I don't have an example in hand, but a working example can be found in my rock paper scissors cookbook guide. I will be updating it soon(ish) to use the _return value.
Ah that solved the progression thanks! I'm wondering if there is a way to allow a text to show up if the password mismatches...
Right now i'm using screens and label to achieve it.
label delete_achievements:
$ clearachieve = renpy.input('Input Password', length=9) or None
if clearachieve == 'imperf3kt':
$ achievement.clear_all()
e "All your achievement are belong to me!"
else:
e "Access denied!"
return
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
label delete_achievements:
$ clearachieve = renpy.input('Input Password', length=9) or None
if clearachieve == 'imperf3kt':
$ achievement.clear_all()
e "All your achievement are belong to me!"
else:
e "Access denied!"
return
You idea would work using labels! I managed to figured it out using Screen Language. This way if I wanted to customize certain things I can. Might be a bit longer but it's easier for the long run when I just call my screen passwordenter. Thanks for the idea!
You could also simply use action [Notify("Access Denied!"), Jump("enterpassword")]. But with that, you'd need a few more lines of code to customize the text.