Page 1 of 1

How to set a condition to change the name of NPC after a certain line?

Posted: Tue Nov 23, 2021 5:53 am
by crusenho
Hi, this idea mostly applies and is seen in Visual Novel or RPG where a new NPC shows up and interacts with the Player but without a name but instead displayed a "Stranger" name or something else.

I want to change the NPC name from "Stranger" into a real name after the Player picks a response answer or certain line node.

For example, this NPC didn't introduce himself so we can't see his name and displayed "Stranger" name under his portrait image. And after a certain interaction, the NPC finally says his name and we finally know who he is, and the name under his portrait name will change to his name.

I hope my request is clear, can you help me please how to achieve this mechanic?

Re: How to set a condition to change the name of NPC after a certain line?

Posted: Tue Nov 23, 2021 8:21 am
by Tony Li
Hi,

Please see the "Discover Name Example" (direct download) on the Dialogue System Extras page. It demonstrates exactly how to do this.

Re: How to set a condition to change the name of NPC after a certain line?

Posted: Tue Nov 23, 2021 11:59 am
by crusenho
Tony Li wrote: Tue Nov 23, 2021 8:21 am Hi,

Please see the "Discover Name Example" (direct download) on the Dialogue System Extras page. It demonstrates exactly how to do this.
Thank you it works!

Re: How to set a condition to change the name of NPC after a certain line?

Posted: Tue Nov 23, 2021 1:01 pm
by Tony Li
Glad to help!