I have a currency int variable.
Can I have it across multiple databases?
I have a SendMessage that can increase the currency amount. (DialogueLua.GetVariable) What if I want to run a conversation from an extra database tho?
Can I still add a condition if currency is above certain amount?
Will DialogueLua.GetVariable still work? What if each database has a variable with the same name? How does it know which one to pick?
Global variables?
Re: Global variables?
Hi,
Variables should be unique across databases. If two databases define the same variable name, only one variable will be created at runtime.
Variables should be unique across databases. If two databases define the same variable name, only one variable will be created at runtime.
Re: Global variables?
Should actors and conversation names also be unique across multiple databases?
Re: Global variables?
Yes. For more information about multiple databases, including how to keep IDs unique, please see:
Working With Multiple Databases
Working With Multiple Databases