I made some API scripts uses sendChat() function. They works fine when it displayed on chat log in campaign window. But in chat archive, avatar and name doesn't show irregulary, so it looks like one person's chat. (in-game chat log / chat archive / HTML code) The code isn't special, so it doesn't seem like there's a problem here. At first, if there is a problem with the code, the same problem should be present in the chatlog. let chat_id;
if (!sc_setting.show_player_name) {
let character = findObjs({type:'character',name:msg.who});
if (character.length > 0) {
chat_id = "character|" + character[0].get('_id');
}
}
chat_id = chat_id ? chat_id : "player|"+msg.playerid;
sendChat(chat_id,"<span style='" + style + "'>"+msg.content.substring(2, msg.content.length)+"</span>",null,{noarchive:false}); This doesn't seem to be the intended behavior. Please check this.