I want use Dialogue Entry Field value in Lua

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
luidinkim
Posts: 1
Joined: Wed Aug 22, 2018 2:24 am

I want use Dialogue Entry Field value in Lua

Post by luidinkim »

Hello. I am using this asset and I have a question.
My game has a conversation event, which can vary greatly depending on the character's abilities and other conditions.
However, since there is a condition that only one of the events that are True is checked after the conditions of the various dialogue events are checked, I want to make the condition to be checked in Lua by Conversation.
But I do not have a table but I want to save the information of the event in Dialogue Entry field during Conversation.
But I do not know how to access things like field or id in Dialogue Entry in Lua.

To summarize, I do not know how to access things like field or id in Dialogue Entry in Lua.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: I want use Dialogue Entry Field value in Lua

Post by Tony Li »

Hello,

To conserve memory, dialogue entry fields are not in Lua. The only exception is the SimStatus field.

You can save information in variables or actor fields. Variables and actor fields are in Lua, and they're saved in saved games. Or you can register your own C# code with Lua and use it in the Conditions and Script fields.

I don't know if this is relevant, but you can also set priority levels on links.
Post Reply