Hello!
I was wondering what was the best way to increment a variable by C# script? And how do I reference the variable in that script?
say the variable is Fish.NumberCaught
Incrementing a Variable by script
Re: Incrementing a Variable by script
Hi,
Use the DialogueLua class. Example:
Use the DialogueLua class. Example:
Code: Select all
DialogueLua.SetVariable("Fish.NumberCaught", DialogueLua.GetVariable("Fish.NumberCaught") + 1);