Goal: For this example each time a player says "debug" the database is triggered which it in turn triggers back to the class and updates every NPC that is joined to it.
So this is where I started which works.
PHP Code:
function onPlayerChats() {
if (player.chat == "debug") {
DATABASE.triggerdatabase(); // database has the public function
}
}
My Problem: Now I want the database to trigger back to the class in order to update it. I've tried sending it back a public function but without an identifier the database can't find the class. For whatever reason level NPCs and classes can't have identifiers, and you can't use the class name as an identifier. I've tried to use triggerAction. I've also tried to join the database to the class, but the database catches the update and applies it to itself and doesn't update the other classes.
So bottom line is I need help again. Can what I'm trying to do be accomplished?