I've got a question about Ren'Py (duh) and I hope someone out there in this big world has an answer.
Q: Is it possible to use If-Else statements in menu blocks?
I've tried looking through the forums and the tutorials available, but I can't seem to find what I'm looking for. The only example I can find is when you need to check whether to enable a menu item choice or not. The example was something like this:
Code: Select all
$ menu_was_used =  menu this_is_a_menu: set menu_was_used_before "An option": "After this, a new option will be available" jump this_is_a_menu "This wasn't here before" if menu_was_used_before: "Blah blah blah" jump next_part label next_part:
Let's say I have an option called "Kill the smelly rat"
The first time you select this option, it will print out:
"You kicked the rat between the legs, ending its mortal life."
The second and subsequent times you select this option, it will print out:
"It's dead enough as it is."
If I use set, the "Kill the smelly rat" option will disappear after selecting it for the first time. I want the option to stay, but print a different message instead.