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
156
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 Posts

Latest Profile Posts

My brother makes some inane complaint about one of my stories in the comment section. My mom: if your bro doesn't understand it make it simpler. That prolly means others have questions too.☺️Me: Sorry. I can't do that. I don't speak stupid.
If you are ever looking for your cat among a room full of identical looking cats just find the one that is doing it's best to ignore you.
Isn't "tableau" such a fun word to say? Even better is that our resident artists know what it means without google and probably get to say it regularly.
ScreenShot_3_27_2023_4_30_39.png
one of the benefits of doing almost all the assets myself is being able to add my friend's OC from his comic book into my game as an NPC.
Quick survey: How much of importance is the game UI for your experience, as a player and game designer?

Forum statistics

Threads
129,893
Messages
1,206,015
Members
171,069
Latest member
Ranger19
Top