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.
-
Via_01
- Newbie
- Posts: 4
- Joined: Thu Jul 12, 2012 6:47 pm
-
Contact:
#1
Post
by Via_01 » Mon Jun 20, 2016 11:30 pm
So, there's something I'd like to implement in my visual novels, but I'm not exactly sure how to do it.
Let's say we have a menu pop in, with two choices:
I want to "lock" choice A, so that only choice B is selectable. By this I mean that I want choice A to be there, but that nothing happens when you press it: no sound effect, no light over the menu, etc. I've managed to go around the issue using the jump command, but I was wondering if there was a more direct way to do it. It'd be great if you could offer any help.
-
78909087
- Veteran
- Posts: 277
- Joined: Sat Aug 16, 2014 2:33 pm
- Completed: Dungeons and Don't Do It, Wake Up
- Projects: Lethe
- IRC Nick: Pacermist
-
Contact:
#2
Post
by 78909087 » Tue Jun 21, 2016 12:58 am
I believe to do this exactly as you say, you'll have to create a customised choice menu.
You can find the default code in the screen script.
You should look into applying screen language and see what you can create.
I am not friends with the sun.
-
trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
-
Contact:
#3
Post
by trooper6 » Tue Jun 21, 2016 1:31 am
I'm on my phone right now so I can't do the searches personally, but this question has been asked before. I'd do a search for something like "menu" and "insensitive" and "button."
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe:
http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
-
Contact:
#4
Post
by namastaii » Tue Jun 21, 2016 1:37 am
There's surely a better way to do it and I can't seem to find it either but I think using variables and if statements is an around way to do it as well. but its not really the same as having a visible grayed out button.
-
namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
-
Contact:
#5
Post
by namastaii » Tue Jun 21, 2016 1:47 am
-
trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
-
Contact:
#6
Post
by trooper6 » Tue Jun 21, 2016 1:54 am
That wasn't the thread I was thinking of...because that doesn't actually do what the OP wants. Here check out these threads:
viewtopic.php?f=8&t=25453&p=313338&hili ... ce#p313338
viewtopic.php?f=8&t=25278#p310660
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe:
http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
-
Contact:
#7
Post
by namastaii » Tue Jun 21, 2016 2:12 am
I think I actually commented that same url at the end of the thread I just shared lol
Users browsing this forum: Google [Bot]