How to properly use DialogueLua.GetStatus() within C# scripts?
Posted: Mon Jul 05, 2021 2:57 pm
Hi,
For one of my projects, I'm trying to make an object activate/deactivate depending on the value of a status. In the dialogue database using GetStatus(Actor[], Actor[]) ~= "Met" and SetStatus(Actor[],Actor[]), "Met" works perfectly fine, yet translating this into a C# script appears very tricky. I notice that there are functions that can be accessed like DialogueLua.GetStatus() and DialogueLua.SetStatus(), but the parameters require LuaTables and I have been unable to find a way to convert Actor tables to LuaTables.
At the end of the day I simply want to be able to check Statuses through C#, so any help or pointers are greatly appreciated!
For one of my projects, I'm trying to make an object activate/deactivate depending on the value of a status. In the dialogue database using GetStatus(Actor[], Actor[]) ~= "Met" and SetStatus(Actor[],Actor[]), "Met" works perfectly fine, yet translating this into a C# script appears very tricky. I notice that there are functions that can be accessed like DialogueLua.GetStatus() and DialogueLua.SetStatus(), but the parameters require LuaTables and I have been unable to find a way to convert Actor tables to LuaTables.
At the end of the day I simply want to be able to check Statuses through C#, so any help or pointers are greatly appreciated!