[SCRIPT] Pathfinder Character Sheet Generator v3 Is it that one? the lead post provides: "To assign a specific class to a character, use !skill charname chartype, !skill Llharian bard," But you can also look through the code: on("ready", function() {
on("add:character" , function(char) {
bigmike.processAttribs(char);
bigmike.processSkills(char, 'all');
bigmike.processAttack (char);
});
on("chat:message", function(msg) {
var chatCmd = bigmike.parseCommand(msg);
if (typeof chatCmd === 'undefined') {
return;
}
sendChat('System', 'Setting class ' + chatCmd.charType + ' for ' + chatCmd.charName);
var characters = findObjs({
_type: "character",
archived: false,
name: chatCmd.charName
}, {caseInsensitive: true});
_.each(characters, function(character) {
log("Name: " + character.get("name"));
log("Bio: " + character.get("bio"));
log("GM-Notes: " + character.get("gmnotes"));
log("Archived: " + character.get("archived"));
log("In player journals: " + character.get("inplayerjournals"));
log("Controlled By: " + character.get("controlledby"));
bigmike.processSkills(character, chatCmd.charType);
});
});
}); You looking for the "on" stuff.... on("ready" .... When things load up do this stuff on("add:character".... When a character is added do this stuff. on("chat:message" .... When chat is sent do this stuff.