Hi I taked a naninovel custom variable from c# with this method:
public Naninovel.CustomVariableManager G_PunteggioMC = Engine.GetService<Naninovel.CustomVariableManager>();
void SetVariableValue()
{
G_PunteggioMC.SetVariableValue("G_PunteggioMC", Mathf.RoundToInt(scoreCount).ToString());
My problem it's that i'm tryng to confront it with other naninovel custom variable that are number, while this is a string and the SetVariableValue command accepts only a string for value.
How can i do this confrontation? There is a way in naninovel to do the typecast of the number to the string or also better of the string to the number?
Thanks for help.
Just parse the string to the required type and then cast it back to string when saving. All the custom variable values are stored as strings in Naninovel.