can screen be disable temporary?
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.
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.
-
- Regular
- Posts: 57
- Joined: Tue Feb 05, 2013 8:19 pm
- Projects: April
- Contact:
can screen be disable temporary?
Hi
I want to disable some screen like save in game procession,not disable a key.How can I make it?
I want to disable some screen like save in game procession,not disable a key.How can I make it?
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: can screen be disable temporary?
Just a suggestion: it would be better if you first tell us why do you need to do it, then someone would be able to give you the best answer.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
-
- Veteran
- Posts: 356
- Joined: Mon Mar 11, 2013 11:03 pm
- Contact:
Re: can screen be disable temporary?
The codes below will do the following when $ allow_save = False:
screens.rpy:
- Make the save button inactive in the game menu
- Disable the save and quick save buttons in the quick menu
- Show the load screen when the user enters the game menu
- Set allow_save = True when toggle_save is called
Code: Select all
init:
$ allow_save = True
label toggle_save:
if allow_save:
$ _game_menu_screen = "load"
$ allow_save = False
else:
$ _game_menu_screen = "save"
$ allow_save = True
return
label start:
"The save screen will be disabled."
call toggle_save # Disable save
"The save screen is disabled."
"The save screen will be re-enabled."
call toggle_save # Re-enable save
"The save screen is reenabled."
return
Code: Select all
# Navigation (sixth screen)
screen navigation:
[...]
if allow_save:
textbutton _("Save Game") action ShowMenu("save")
else:
textbutton _("Save Game") action None
[...]
# Quick Menu (last screen)
screen quick_menu:
[...]
if allow_save:
textbutton _("Q.Save") action QuickSave()
else:
textbutton _("Q.Save") action None
textbutton _("Q.Load") action QuickLoad()
if allow_save:
textbutton _("Save") action ShowMenu('save')
else:
textbutton _("Save") action None
[...]
-
- Newbie
- Posts: 21
- Joined: Wed Apr 11, 2012 10:48 am
- Projects: Fire in the Night
- Location: Florence, Italy
- Contact:
Re: can screen be disable temporary?
Thanks pwisaguacate, that should help with a related issue involving imagebuttons!
-
- Regular
- Posts: 57
- Joined: Tue Feb 05, 2013 8:19 pm
- Projects: April
- Contact:
Re: can screen be disable temporary?
I need it for if game goes to a choise,ban the save funtion to prevent player use save to try choice again.That would make choice useless.
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: can screen be disable temporary?
That's a terrible reason to temporarily disable saves. All you accomplish is making players compulsively save all the time in case they run into a choice.edouardlicn wrote:I need it for if game goes to a choise,ban the save funtion to prevent player use save to try choice again.That would make choice useless.
I mean, there are games which don't have conventional saves at all (a recent example is FTL), but that isn't really appropriate for a visual novel.
- ShippoK
- Veteran
- Posts: 348
- Joined: Wed Mar 28, 2012 8:59 pm
- Projects: Eyes of Gold (In-Progress)
- Organization: (Red Moon)
- Location: Glorious Nippon (A.K.A the USA)
- Contact:
Re: can screen be disable temporary?
If you want to do something like that, why not try $ renpy.block_rollback() after someone makes a choice.
Then they can only load up from the last point to do the choice again without rolling back.
Just a suggestion...
Then they can only load up from the last point to do the choice again without rolling back.
Code: Select all
menu:
"Let him be":
$ renpy.block_rollback()
"Blahblah"
"Ask if you could walk with him.":
$ renpy.block_rollback()
"Blahblah"
Much Appreciated for those who took the Survey!
Eyes of Gold [BL (Suspense) (+18)] IN-PROGRESS
Alternate Online [(Friendship) (+10)] ON-HOLD
•DeviantART• •[Honest critique] - 'Honesty is its own reward.'•
Eyes of Gold [BL (Suspense) (+18)] IN-PROGRESS
Alternate Online [(Friendship) (+10)] ON-HOLD
•DeviantART• •[Honest critique] - 'Honesty is its own reward.'•
- nyaatrap
- Crawling Chaos
- Posts: 1824
- Joined: Mon Feb 13, 2012 5:37 am
- Location: Kimashi Tower, Japan
- Contact:
Re: can screen be disable temporary?
This is the best for that purpose. Don't disable save entirely.
http://www.renpy.org/doc/html/save_load ... g-rollback
http://www.renpy.org/doc/html/save_load ... g-rollback
- Donmai
- Eileen-Class Veteran
- Posts: 1960
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: can screen be disable temporary?
Couldn't agree more! That's what I'm using since I saw this thread: http://lemmasoft.renai.us/forums/viewto ... =8&t=19863nyaatrap wrote:This is the best for that purpose. Don't disable save entirely.
http://www.renpy.org/doc/html/save_load ... g-rollback
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
- neometalero
- Regular
- Posts: 198
- Joined: Sun Oct 23, 2016 3:51 am
- Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
- Deviantart: neometalero
- Contact:
Re: can screen be disable temporary?
I was having the same trouble and this worked. Maybe it can help you?edouardlicn wrote: ↑Thu May 09, 2013 5:08 am Hi
I want to disable some screen like save in game procession,not disable a key.How can I make it?
viewtopic.php?f=8&t=66591&p=560451#p560451
Who is online
Users browsing this forum: No registered users