[Solved] I need to use a special expression after selected for textbutton, but I have no idea how to write it.

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.
Post Reply
Message
Author
henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

[Solved] I need to use a special expression after selected for textbutton, but I have no idea how to write it.

#1 Post by henvu50 »

I'm checking if a bool variable is true, but if it is true, I don't want it to evaluate or someOtherVar == 500 Is this possible?

Code: Select all

   textbutton "Button":
       # if someVar is true, then stop right after it, and do not evaluate someOtherVar == 500 .. is this possible?
       selected someVar == True or someOtherVar == 500 
Last edited by henvu50 on Tue Jun 22, 2021 3:40 am, edited 1 time in total.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: I need to use a special expression after selected for textbutton, but I have no idea how to write it.

#2 Post by Ocelot »

Bu this is how it is already works...
https://eng.libretexts.org/Courses/Delt ... xpressions
< < insert Rick Cook quote here > >

Post Reply

Who is online

Users browsing this forum: No registered users