Hi - Yes, but two notes:
1. The Dialogue System uses
Lua, not articy:expresso. Enter Lua code in the field, such as:
In Unity, you can add a script that has an
OnConversationLine method to the Dialogue Manager GameObject. The method can look up the field and run it through Lua:
Code: Select all
void OnConversationLine(Subtitle subtitle)
{
string script = Field.LookupValue(subtitle.dialogueEntry.fields, "MediumScriptValue");
if (!string.IsNullOrEmpty(script))
{
Lua.Run(script);
}
}
2. You may find it easier to simply put the Lua code in the output pins of articy nodes (e.g., dialogue fragment nodes). Articy will say that it's not valid articy:expresso, but the Dialogue System will happily run it through Lua.