Arsist

Veteran
Veteran
Joined
May 16, 2014
Messages
140
Reaction score
10
Primarily Uses
This is the normal command to have text be displayed in the log of Yanfly's Combat Log Display https://yanflychannel.wordpress.com/rmvxa/battle-scripts/combat-log-display/

combatlog(text)However, this call was not designed to be accessed outside of the script (or so I believe).

So I normally just make the call

SceneManager.scene.log_window.add_text(text)but that delays the battle as it shows up mid-battle and has a slight pause to it.

What I want to do is be able to have text that is only shown in the combat log so it may be reviewed on choosing actions.

For example, you could have it so that you "roll" a 20-sided die aka rand(20)+1 with stat influence to see if you hit an opponent, and mid-battle it only shows you if you rolled a 20 [an auto-success] or a 1 [an auto-fail], but in the log it displays the actual value of the roll regardless.

I tried 

class Game_Interpreter #-------------------------------------------------------------------------- # new method: combatlog #-------------------------------------------------------------------------- def combatlog(text) return if Window_BattleLog.combatlog_window.nil? return if text == "" Window_BattleLog.combatlog_window.add_line(text) endendbut it returned an undefined error.

Normally the script just aliases a bunch of processes and makes calls from there. But what I'm trying to do is have a universal script call that puts text in the combat log discretely from anywhere.
 
Last edited by a moderator:

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
569
Reaction score
154
First Language
Serbian
Primarily Uses
N/A
Yanfly's script you provided link for has nothing to do with log window.

You may be searching for :

Code:
SceneManager.scene.log_window.combatlog("sometext")
 

Latest Threads

Latest Profile Posts

It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png
Backgrounds are not my strong suit... :kaodes:
DazI8jt.jpg

Just realized I forgot doing the clouds... woops
Went to get some stuff for February 10, the birthday of my favorite ink monster...
I have a little one-person party for Bendy every year, complete with the life-size plushie I made. And yes, I bake a birthday cake!

Forum statistics

Threads
118,497
Messages
1,116,408
Members
155,491
Latest member
shepradatory
Top