VNM Backlog and NVL Style

This rough tutorial just serves to help you "fix" the backlog and make an NVL style game.

Add Right Click -> Cancel to Backlog

Copy and Paste Template_MessageBacklog

Look for this line:
Code:
"frame": [0, 0, Graphics.width, Graphics.height]

Add this code below it:
Code:
"action": { "event": "onCancel", "name": "disposeControl", "params": 'backlog' }

Add Mousewheel to open backlog
Make a new Coffescript Plugin:
CoffeeScript:
class Component_GameSceneBehaviorQS extends vn.Component_GameSceneBehavior
    updateContent: ->
        super
 
        gs.GlobalEventManager.on "mouseWheel", =>
            if !GameManager.tempSettings.logOpened
                GameManager.tempSettings.logOpened = true
                @createControl(@object, {"descriptor": "ui.MessageBacklogBox"})
 
vn.Component_GameSceneBehavior = Component_GameSceneBehaviorQS

Dispose Control Edit
Go to Component_LayoutSceneBehavior, line 600 or mass search for dispose control. Add this:
Code:
GameManager.tempSettings.logOpened = false
1727375380336.png


CommandInterpreter Adjustment
Go to Component_CommandInterpreter, line 226 and adjust the line
Code:
if @messageSettings().backlog and (messageObject.settings.autoErase or messageObject.settings.paragraphSpacing > 0)
            GameManager.backlog.push({ character: messageObject.character, message: messageObject.textRenderer.replacePlaceholderTokens(messageObject.behavior.message), choices: [] })
to
Code:
if @messageSettings().backlog
             GameManager.backlog.push({ character: messageObject.character, message: messageObject.textRenderer.replacePlaceholderTokens(lcsm(messageObject.messages[messageObject.messages.length-1].text)), choices: [] })

Go to Component_CommandInterpreter, line 253 and comment out:
Code:
        if @messageSettings().backlog && messageObject.behavior.message?.length
            GameManager.backlog.push({ character: messageObject.character, message: messageObject.behavior.message, choices: [] })
It should look like this in the end:
1727378112426.png


General Backlog Manipulation
  • GameManager.backlog.clear will clear backlog as script call
  • To add messages to backlog, use script call:
    GameManager.backlog.push({character: <CHARACTER>, message: "Jo ritzers"})
    <CHARACTER> can be as simple as { name: "Ritzu" }
  • Makes a Text List of all messages for your custom backlog using event commands:
    GameManager.variableStore.lists[0] = GameManager.backlog.map((e) => e.message)
If combined with this:
1727375655181.png


You can make a proper NVL game with multiple show messages. Make sure to put the background backlog as visible to avoid bugs. As long as each messages are the same height, you should have no bugs.

Original thread: https://forums.rpgmakerweb.com/threads/vnm-backlog-and-nvl-style.172180/