screens.rpy
Code:
screen choice(items):
window:
style "window"
xalign 0.5
yalign 0.5
background None
vbox:
style "vbox"
xalign 0.5
spacing 2
for caption, action, chosen in items:
## add an hbox so the image and button show up side-by-side.
hbox:
# disabled
if " (disabled)" in caption:
$ caption = caption.replace(" (disabled)", "")
if action:
button:
action None
style "choice_button"
text caption style "choice_button_text"
else:
text caption style "choice_button_text"
# normal
else:
if action:
button:
action action
style "choice_button"
text caption style "choice_button_text"
else:
text caption style "choice_button_text"
Then a choice menu should look like this:
script.rpy (Or whereever in your game)
Code:
menu nameOfMenu:
"This is the grayed out first choice (disabled)" if whatEverStatIsToLow < 10:
"This is the same first choice but not grayed out" if whatEverStatIsHighEnough >= 10:
jump labelName
"This is the second choice grayed out (disabled)" if not whatEverOtherStatIsFalse:
"This is the second choice not grayed out" if whatEverOtherStatIsTrue:
jump labelName
Or in your case:
Code:
menu LustMenu:
"Oh god I want her right now! (disabled)" if lust <= 40:
"Oh god I want her right now!" if lust > 40:
jump take_Her
"Nah, not interested! (disabled)" if lust > 40:
"Nah, not interested!" if lust <= 40:
jump not_interested
Meaning: Everytime you add " (disabled)" (Don't forget the space between the text and the (disabled) ) it get's grayed out....
p.S.: Hope that helps, edited a choice screen that adds "images" left and right of the choice for that. So you wouldn't really need the hbox but it doesn't hurt either way