Page 1 of 1

Retrieve actor data and store it in a PlayMaker variable

Posted: Sun Jun 04, 2023 1:43 pm
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? :?:

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

Posted: Sun Jun 04, 2023 1:49 pm
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.)

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

Posted: Sun Jun 04, 2023 3:07 pm
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!

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

Posted: Sun Jun 04, 2023 6:49 pm
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.