// Check if the chat trigger specified in the specified id's 'trigger:' key
// matches the text the player has said
String triggerText = TagManager.tag(denizenPlayer, npc, entry.getValue());
Matcher matcher = triggerPattern.matcher(triggerText);
while (matcher.find ()) {
if (!script.checkSpecificTriggerScriptRequirementsFor(ChatTrigger.class,
denizenPlayer, npc, entry.getKey())) continue;
String keyword = TagManager.tag(denizenPlayer, npc, matcher.group().replace("/", ""));
String[] split = keyword.split("\\\\\\+REPLACE:", 2);
String replace = null;
if (split.length == 2) {