Retrieve actor data and store it in a PlayMaker variable

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Esylin
Posts: 45
Joined: Thu Dec 16, 2021 1:21 am

Retrieve actor data and store it in a PlayMaker variable

Post by Esylin »

Hi, I am making a character profile system that displays character name, description and portrait using menu UI.

Since those info is already in my dialogue system database I am wondering if there is a way to retrieve these data and store it in a PlayMaker variable? So I don't have to look for a way to store the data somewhere else.

I found the "Get Actor name" playmaker action but not "Get actor description". I wonder if it is not possible to get actor description from the database at all? :?:
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: Retrieve actor data and store it in a PlayMaker variable

Post by Tony Li »

Hi,

Since you can add your own custom fields, the PlayMaker integration provides a general-purpose way to get the value of any field. Use the Get Lua Field action. (See Lua / Internal Data Actions.)
Esylin
Posts: 45
Joined: Thu Dec 16, 2021 1:21 am

Re: Retrieve actor data and store it in a PlayMaker variable

Post by Esylin »

Tony Li wrote: Sun Jun 04, 2023 1:49 pm Hi,

Since you can add your own custom fields, the PlayMaker integration provides a general-purpose way to get the value of any field. Use the Get Lua Field action. (See Lua / Internal Data Actions.)
Oh nice, this is awesome! :D :D I can even change the description based on story event with lua! :D Thanks for the tips!
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: Retrieve actor data and store it in a PlayMaker variable

Post by Tony Li »

Glad to help!

Another tip: You can use [var=variable] and [lua(code)] markup tags in Display Names and quest text (and dialogue text of course). Just in case you want variable content in your characters' names, for example.
Post Reply