Add outscript newline

This commit is contained in:
kwaroran
2024-09-23 21:09:03 +09:00
parent b06d6236d4
commit 54f019743c

View File

@@ -93,6 +93,9 @@ export async function processScriptFull(char:character|groupChat|simpleCharacter
if(outScript.startsWith('@@move_top') || outScript.startsWith('@@move_bottom') || pscript.actions.includes('move_top') || pscript.actions.includes('move_bottom')){ if(outScript.startsWith('@@move_top') || outScript.startsWith('@@move_bottom') || pscript.actions.includes('move_top') || pscript.actions.includes('move_bottom')){
flag = flag.replace('g', '') //temperary fix flag = flag.replace('g', '') //temperary fix
} }
if(outScript.endsWith('>') && !pscript.actions.includes('no_end_nl')){
outScript += '\n'
}
//remove unsupported flag //remove unsupported flag
flag = flag.replace(/[^dgimsuvy]/g, '') flag = flag.replace(/[^dgimsuvy]/g, '')