Hi and thanks for the response, I created some variable but I can't change the variable Type, it always stay Text type, I tried that :
Code: Select all
Variable var = new Variable();
var.fields = new List<Field>();
var.fields.Add(new Field("Type", FieldType.Number.ToString(), FieldType.Number)); // I tried this because I can only change tha variable name by changing field, otherwise I get a null exception, though I could get similar results but no luck
var.Type = FieldType.Number;
After that, my type is still text
Maybe its a version problem ? I'm in version 1.6.9.

EDIT :
I found the solution by looking at the source code, I have to set the value BEFORE setting its type
I just have now to create database, this shouldn't be a problem with your link !

EDIT 2 :
I managed to dynamically create and load a database and a first conversation but I get an error, though everything seems to work fine :
Dialogue System: Lua code 'Dialog = Conversation[0].Dialog' threw exception 'Lookup of field 'Dialog' in the table element failed because the table element itself isn't in the table.'
