[SOLVED]Is there any way to get an Actor ID from an NPC who's speaking?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
muramasa
Posts: 20
Joined: Tue Feb 11, 2020 7:29 am

[SOLVED]Is there any way to get an Actor ID from an NPC who's speaking?

Post by muramasa »

Hi Tony, help... I have a problem!

Is there any way to get an Actor ID from an NPC who's speaking?
I've crawled through the article and it seems like it has to be code, but my background is in art and I can't write code at all...

I used Playmaker and your powerful Dialogue system to develop my game, and for some reason, I had to separate the Dialogue Actor from the animated Actor. For this reason, I can't use the AnimatorPlay(,,) command in Sequence.

So I devised another way for my character to speak with both animation and voice, and with your powerful Dialogue system, I can do it by writing a line of command in the Script block each time.

However... I need a way to get the ACTOR ID of the NPC who is speaking...

Attached is my design flow so you can see why I need an ACTOR ID and how I'm going to use it.
Question.jpg
Question.jpg (165.66 KiB) Viewed 556 times


Please help me.
Last edited by muramasa on Tue Sep 15, 2020 5:01 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: [HELP]Is there any way to get an Actor ID from an NPC who's speaking?

Post by Tony Li »

Hi,

I just updated the PlayMaker Support package on the Extras page. The Get Current Conversation Info action can now store the current speaker's and listener's name and actor ID.
User avatar
muramasa
Posts: 20
Joined: Tue Feb 11, 2020 7:29 am

Re: [HELP]Is there any way to get an Actor ID from an NPC who's speaking?

Post by muramasa »

OMG! you are the best!! thank you!!!
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: [HELP]Is there any way to get an Actor ID from an NPC who's speaking?

Post by Tony Li »

Glad to help!
Post Reply