Calling a custom battle log message via common event?

● ARCHIVED · READ-ONLY
Started by SwiftSign 3 posts View original ↗
  1. I've evented out a skill levelling system, but the normal message box is crazy intrusive in the middle of a fight. How might I place my message in the battle log.

    Or perhaps, emulate the battle log msg style at least ><.
  2. Inside an event command, use the script function and type:

    Code:
    var text = "Your text goes in there."
    SceneManager._scene._logWindow.addText(text)

    Be warned that this text will not automatically clear itself out.
    You can use the following code to clear the log.
    Code:
    SceneManager._scene._logWindow.clear();

    If called outside battle this will crash your game.

    Edit: you can use all normal text codes but have to use \\ instead of \.
    Ex: use \\C[1] to change the text color to blue.
  3. Astfgl66 said:
    Inside an event command, use the script function and type:

    Code:
    var text = "Your text goes in there."
    SceneManager._scene._logWindow.addText(text)

    Be warned that this text will not automatically clear itself out.
    You can use the following code to clear the log.
    Code:
    SceneManager._scene._logWindow.clear();

    If called outside battle this will crash your game.

    Edit: you can use all normal text codes but have to use \\ instead of \.
    Ex: use \\C[1] to change the text color to blue.

    Ah this is perfect! And thank you so much for the edit, after seeing your first response I was seeing what I could/couldn't do. This is exactly what I needed :).