How to show what a character is saying on the history screen

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
yhsxsx
Newbie
Posts: 2
Joined: Fri Feb 18, 2022 10:43 pm
Contact:

How to show what a character is saying on the history screen

#1 Post by yhsxsx »

How to show what when a character is saying on the history screen,instead of show what after a character said next text.

I hope that when a text showing on the screen, I can directly see it by opening the history screen.

Code: Select all

vbox:
                    spacing 100
                    for h in _history_list:
                        if h.who:

                            label h.who:
                                style "history_name"
                                substitute False
                                   
                                if "color" in h.who_args:
                                    text_color h.who_args["color"]
                        $ what =  renpy.filter_text_tags(h.what, allow=gui.history_allow_tags)
                        text what

Post Reply

Who is online

Users browsing this forum: MisterPinetree, Ocelot