Page 1 of 1

How to make all choices visible

Posted: Tue Feb 25, 2014 3:06 am
by oro121
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=)

Re: How to make all choices visible

Posted: Tue Feb 25, 2014 11:24 pm
by PyTom
There isn't a way to do this. You have to use a screen if you want this.

Re: How to make all choices visible

Posted: Tue Mar 04, 2014 9:52 am
by bg_nocturnal
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.