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.
-
oro121
- Newbie
- Posts: 10
- Joined: Wed Aug 21, 2013 1:33 am
- Location: Russia
-
Contact:
#1
Post
by oro121 » Tue Feb 25, 2014 3:06 am
Hello everyone. I do not speak English well, but I'll try to ask.
I created simple menu and one choice checks a variable.
Code: Select all
"Насытиться, полностью обескровив их тела." if blood_points == 10:
Everything works great, but I'm wondering how to make inaccessible option visible, but not clickable... And change color of this choice somehow...
I hope you will understand me guys=)
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Tue Feb 25, 2014 11:24 pm
There isn't a way to do this. You have to use a screen if you want this.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
bg_nocturnal
- Regular
- Posts: 25
- Joined: Thu Feb 13, 2014 9:45 am
-
Contact:
#3
Post
by bg_nocturnal » Tue Mar 04, 2014 9:52 am
Here's a proposed solution:
Use the code from
here.
Then create your menu like this:
Code: Select all
menu:
"Насытиться, полностью обескровив их тела." if blood_points == 10:
# do stuff
"Насытиться, полностью обескровив их тела. (disabled)" if blood_points != 10:
pass
That first choice will be usable, but will be shown only when blood_points reaches 10, and the second one will be unclickable and will be shown in all other cases.
Users browsing this forum: Google [Bot], _ticlock_