I’m trying to get some light dialogue in my game, but Yarn is giving me… trouble.
I’d like a conversation between two characters, with an avatar change to represent who’s currently talking. Within a single node it looks like this:
<< avatar Azami >>
Hey.
<< avatar Hostess >>
Oh hey, Azami. Playing with the old claw machine?
<< avatar Azami >>
I guess, but there isn’t much in it.
<< avatar Hostess >>
That’s because I haven’t been able to upgrade it. But you could buy some upgrades with those tokens.
<< avatar Azami >>
Guess I have nothing better to do.
I have a single Avatar object in the text box with each of their avatars as different animations; when the <> command is called, it should change the animation. I’m having two problems with this.
The first is that is won’t change the animation from Hostess to Azami (Azami is the first animation, Hostess is the second, if that makes any difference). If the first avatar is Azami, it does her for a line and then Hostess, and then won’t change back to Azami. If I start with Hostess, it simply never changes the avatar. You can see a flicker like it tries and then immediately switches back.
The second issue is that for some reason it won’t display more of the final line than a single character, right now that being “G”. If I change the dialogue, then it displays whatever that first character is and nothing more. If I remove the <> command, still the same problem. It does this on the last line in the conversation, regardless of how many lines there are.
I’ve tried this with all the dialogue in a single node or each line in a different node and each of them linked, and I get both problems either way. I heard Yarn was finicky but, like, what is this?
UPDATE: It’s still acting insane, but I can get it to properly change the avatars if I place the avatar command at the end of a dialogue line before a return. However, this results in the lines automatically jumping to the next once they finish, so the player can’t read it.
<< avatar Hostess >>
Oh hey, Azami. Playing with the old claw machine? << avatar Azami >>
[[Answer:FirstCoin1|FirstCoin1]]
I feel like I’m going crazy.


