Calling a custom battle log message via common event?

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
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 ><.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
733
Reaction score
596
First Language
French
Primarily Uses
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.
 
Last edited:

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
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 :).
 

Latest Threads

Latest Posts

Latest Profile Posts

new mechanic in battle where you can mentally erase enemies when you deplete all their MP instead HP. this gives you a special item of their "memory". it's pretty to do in battle so far.
Apparently MZ lets you preview move routes in the move route editor without having to start up test game. That could save a lot of time during development compared to MV, especially for a long game that uses a lot of event movement for cutscenes.
A repost of an old meme I had made, now with music

I have a really hard time keeping all these goodies secret til December... but I swear, it is worth the wait!

Forum statistics

Threads
115,859
Messages
1,093,529
Members
151,081
Latest member
MOLLARTA
Top