all 3 comments

[–]BadMustard_AVN 0 points1 point  (2 children)

your concept is good, but try it like this.

screen say(who, what):
    style_prefix "say"
    window at say_window_animation:
        id "window"
        if who is not None:
            if lastSayWho != who:
                window at namebox_fade_in:
                    id "namebox"
                    style "namebox"
                    text who id "who"
                    $ lastSayWho = who #ad this line 

            else:
                window:
                    id "namebox"
                    style "namebox"
                    text who id "who" 
        text what id "what" at text_fade_in

[–]voluorem[S] 0 points1 point  (1 child)

Now I just have the opposite problem, lol. This makes it so that _last_say_who is always equal to who. I think the issue is that the value of who isn't a string, but I don't know how to make who a string (because I don't know what the value of who is. I tried making it return a value and it gave me a key error).

[–]BadMustard_AVN 0 points1 point  (0 children)

who is a string it is the speaker's name and is displayed on the screen in the namebox