Page 2 of 2

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

Posted: Thu Aug 25, 2022 9:47 am
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.

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

Posted: Thu Aug 25, 2022 10:52 am
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.

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

Posted: Thu Aug 25, 2022 11:58 am
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.

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

Posted: Thu Aug 25, 2022 2:53 pm
by Tony Li
Glad to help!