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
722
Reaction score
578
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 :).
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top