How to change warning message?

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
Tsuna
Newbie
Posts: 9
Joined: Thu Jul 24, 2014 12:39 pm
Contact:

How to change warning message?

#1 Post by Tsuna »

Image

How do you change the warning message here?

Please help, thank you.

User avatar
0rfeo
Newbie
Posts: 4
Joined: Thu May 08, 2014 12:07 pm
Tumblr: Erenllegayseva
Contact:

Re: How to change warning message?

#2 Post by 0rfeo »

I'm not sure about want you want but check this: http://lemmasoft.renai.us/forums/viewto ... 51&t=20720

OokamiKasumi's tutorials are easy to understand, I hope they'll help you. :roll:

User avatar
ketskari
Veteran
Posts: 296
Joined: Tue Dec 21, 2010 6:22 pm
Completed: Asher, Sunrise, Tell a Demon
Projects: Asher Remake, TEoA
Organization: Sun Labyrinth
Tumblr: sunlabyrinth
Deviantart: sunlabyrinth
itch: sunlabyrinth
Contact:

Re: How to change warning message?

#3 Post by ketskari »

You go to screens.rpy and in the yesno_prompt screen add a line of code for each message you want to change:

Code: Select all

        if (message == layout.MAIN_MENU):
            label _("Are you sure you want to return to the main menu? This will lose unsaved progress."):
        elif (message == layout.QUIT):
            label _("Are you sure you want to quit? We'll miss you.")
You can also replace this message with an image, if you want to have fancy text or a background image, like in the link Orfeo mentioned.

And you do this for each of the messages you want to change:

layout.ARE_YOU_SURE
layout.DELETE_SAVE
layout.OVERWRITE_SAVE
layout.LOADING
layout.QUIT
layout.MAIN_MENU

Here's the link in the documentation with the original messages.

Tsuna
Newbie
Posts: 9
Joined: Thu Jul 24, 2014 12:39 pm
Contact:

Re: How to change warning message?

#4 Post by Tsuna »

Wow, thank you so much :D

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Ocelot