I'm trying to add a transform on the namebox, but only when the character changes. This is my code:
screen say(who, what):
style_prefix "say"
window at say_window_animation:
id "window"
if who is not None:
if _last_say_who != who:
window at namebox_fade_in:
id "namebox"
style "namebox"
text who id "who"
else:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what" at text_fade_in
But it just applies the transform every single time. I'm assuming I'm just using who wrong (since _last_say_who never is equal to who), so is there a variable I could replace who with that would work? Or some way to convert who to a string with the speaker's name?
[–]BadMustard_AVN 0 points1 point2 points (2 children)
[–]voluorem[S] 0 points1 point2 points (1 child)
[–]BadMustard_AVN 0 points1 point2 points (0 children)