Hello, I could use some assistance in understanding how to utilize API functions within scripts on the Nexus client.
An example of this would be the API functions made available in the Character db
You can use these commands in your scripts
cdb_exists(name) return if a character exists in the DB, you should call this before calling other API functions!
cdb_getByName(name) get character info and add to the DB, does not return anything
cdb_get_rank(name) return ranking for the character
cdb_get_city(name) return a players city
cdb_get_class(name) return a players class
cdb_get_level(name) return a players level
cdb_get_pk(name) return a players kill count
cdb_get_house(name) return a players house
However, it is not clear how I'm meant to actually utilize these or other such functions in a script.
In the Nexus documentation with regard to calling functions it states that, "Functions can be called from scripts by using run_function(name, args, package)" but in what way would I correctly use these in combination with this run_function command?
If anyone may be able to offer some help with this, I would greatly appreciate it.