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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
crusenho
Posts: 12
Joined: Sun Nov 21, 2021 3:56 am
Location: Indonesia
Contact:

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

Post 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?
Regards,
Crusenho Agus Hennihuno
Indie Developer
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
User avatar
crusenho
Posts: 12
Joined: Sun Nov 21, 2021 3:56 am
Location: Indonesia
Contact:

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

Post 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!
Regards,
Crusenho Agus Hennihuno
Indie Developer
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply