The way you get values out of AngelScript dictionaries by default is fairly annoying, mainly due to its usage of out values instead of returning them. Hence this include, which attempts to simplify things.
Get a boolean value out of a dictionary.
bool dgetn(dictionary@ the_dictionary, string key, bool def = false);
bool: the value for the particular key in the dictionary, or the default value if not found.
Get a numeric value out of a dictionary.
double dgetn(dictionary@ the_dictionary, string key, double def = 0.0);
double: the value for the particular key in the dictionary, or the default value if not found.
Get a string value out of a dictionary.
string dgets(dictionary@ the_dictionary, string key, string def = 0.0);
string: the value for the particular key in the dictionary, or the default value if not found.
Get a string array out of a dictionary.
string[] dgetsl(dictionary@ the_dictionary, string key, string[] def = []);
string[]: the value for the particular key in the dictionary, or the default value if not found.
The default value for this function is a completely empty (but initialized) string array.