BiowareDB.getVariable - multiple declarations

Function BiowareDB.getVariable

Get variable information using its index

BiowareDB.Variable getVariable (
  ulong index
) const;

Note

Be sure to check Variable.deleted value

Parameters

NameDescription
index Index of the variable in the table

Returns

the variable information

Function BiowareDB.getVariable

Search and return variable information

std.typecons.Nullable!(nwn.biowaredb.BiowareDB.Variable) getVariable (
  in const(PCID) pcid,
  in const(string) varName
) const;

Expected O(1).

Parameters

NameDescription
pcid player character identifier
Should be his account name concatenated with his character name
null for module variables
varName Campaign variable name

Returns

the variable information, or null if not found

Function BiowareDB.getVariable

Search and return variable information

std.typecons.Nullable!(nwn.biowaredb.BiowareDB.Variable) getVariable (
  in const(string) account,
  in const(string) character,
  in const(string) varName
) const;

Expected O(1).

Parameters

NameDescription
account Player account name
null for module variables
character Character name.
null for module variables
varName Campaign variable name

Returns

the variable information, or null if not found