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?
Retrieve actor data and store it in a PlayMaker variable
Re: Retrieve actor data and store it in a PlayMaker variable
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.)
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
Oh nice, this is awesome! I can even change the description based on story event with lua! Thanks for the tips!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.)
Re: Retrieve actor data and store it in a PlayMaker variable
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.
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.