"State Applied" message not showing.

I found another thread with a related problem, but it didn't have the exact answer I was looking for, so I'm posting this topic.

I'm making a boss that has a special skill called "Miracle" which has a 80% chance of inflicting the boss with one of four random beneficial effects (Anticipate (Increased evasion), Magic Reflect, HP Regeneration, and Haste (speed increase)) as well as a 20% chance of inflicting a negative status condition called Slip (essentially a fatal, faster variant of poison.) on the party. I'm using a common event for the skill's behavior. The skill appears to work as intended, however, the "State applied" message never shows, so the player does not ever know which beneficial state was applied until it either wears off or its effects are triggered. (Which is quite annoying.)

Is there a way to make it so that the "State applied" message shows up when using the common event?

Here's a screenshot of my event if it helps (NOTE: The boss has a companion during the battle which does not benefit from the effects of Miracle, so that's why "entire troop" is not selected for the beneficial effects.):

Capture.PNG
you could force the battle log.

put this script below your other scripts

class Scene_Battle < Scene_Base  attr_reader :log_windowend
then when you add states, add this script call too

Code:
Script: SceneManager.scene.battle_log.add_text(YOUR_TEXT_HERE)
you could force the battle log.

put this script below your other scripts

class Scene_Battle < Scene_Base  attr_reader :log_windowendthen when you add states, add this script call too

Script: SceneManager.scene.battle_log.add_text(YOUR_TEXT_HERE)
I tried this. I got the following error when Miracle was used:

Desktop 2-4-2015 7-11-53 AM-350.png
The "Script: " is automatically included by the editor when you select the script command. You do not need to type it into the box.
I got rid of the "Script: ", now I'm getting a completely different error:

Desktop 2-4-2015 3-31-01 PM-950.png
oh sorry, change battle_log to log_window... XD
oh sorry, change battle_log to log_window... XD
It works perfectly now! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/state-applied-message-not-showing.36604/