if (args.gmcp_method == "Char.Skills.Groups") { hasSkill = []; for (var i = 0; i < args.gmcp_args.length; i++) { send_GMCP("Char.Skills.Get {\"group\":\"" + args.gmcp_args[i].name + "\"}"); } } if (args.gmcp_method == "Char.Skills.List") { for (var j = 0; j < args.gmcp_args.list.length; j++) { hasSkill[args.gmcp_args.group] = args.gmcp_args.list } }To use this, like in an if statement:
if (hasSkill.influence.includes('Wheedling')) <do wheedling stuff>
Comments