Only add NPC's name to their first sequential node?

Announcements, support questions, and discussion for the Dialogue System.
dantuom
Posts: 18
Joined: Fri May 06, 2022 10:06 am

Re: Only add NPC's name to their first sequential node?

Post by dantuom »

A bool is a much better solution than writing a whole second script, I wish I'd thought of that.

I've implemented this and it's certainly cleaner. However... the problem from the last screenshot in my previous post persists. If the player character speaks directly after the narrator the "You" is not displayed. Any other configuration works fine.

The obvious (and not totally destructive) workaround is to just rewrite my dialogue slightly so that another character always speaks between the narrator and the player. But it's a head-scratcher.
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Only add NPC's name to their first sequential node?

Post by Tony Li »

I just edited the script again to change where it checks prependName. Note: I also renamed the class to "PrependName". If you use it as-is, you'll want to rename the script file to PrependName.
dantuom
Posts: 18
Joined: Fri May 06, 2022 10:06 am

Re: Only add NPC's name to their first sequential node?

Post by dantuom »

That's done it!

I've tried just about every way I could think of to break this latest version and I think it simply works perfectly :lol:

Really appreciate your help Tony, especially for sticking with it till at the bugs were squashed.
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Only add NPC's name to their first sequential node?

Post by Tony Li »

Glad to help!
Post Reply