Quote:
Originally Posted by Kagehi
Are globals automatically added to the DB when something sets them, or do they have to be defined *before*, loaded during start up, then get updated automatically some how?
|
The simple answer is yes. When you set a global variable with the quest::setglobal() command, it is added into the database. Then, when the script runs, it is available with either
$global_var_name or
$qglobals{global_var_name}.