Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
This seems very trivial, but I can't find the script call for the battle log. And before you link me to the google doc spreadsheet, it states:
Code:
"# Script Call Battle Logs!
# ----------------------------------------------
# First add this scriptlet:
class Scene_Battle < Scene_Base
  attr_accessor:log_window
end

# To load your own battle logs
SceneManager.scene.log_window.add_text(""Insert custom text here"")
# It doesn't clear out and just stays there until something else replaces it.
SceneManager.scene.log_window.wait
# If you want it to clear make sure to use this.
SceneManager.scene.log_window.wait_and_clear 

# You can also do something like this!
x  = ""Hi.""
x += "" Hello.""
x += "" This is getting long eh?""
x += "" Surely so long. wahahahahahaha""
SceneManager.scene.log_window.add_text(x)

# or:
y = SceneManager.scene.log_window
y.add_text(text)"

Which would not work.
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
Ah, it was in another sub-forum. I had searched for "battle log" and "log" before posting, but didn't come across that.
Thank you very much :)
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
I'm getting an undefined message when I try (within Yanfly's action sequences):
Code:
eval: SceneManager._scene._logWindow.addText(target._actorName + " was scorched due to contact!")

I'm ultimately trying to get to the point where the action sequence can display that the actor/enemy was inflicted with a status through a unique method. @Astfgl66 or anyone else browsing.
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
734
Reaction score
597
First Language
French
Primarily Uses
@Rink27 I don't know where you've read about the _actorName property, but it doesn't exist.
Battlers have a name method however, which you can call: "battler.name()".

So for your example the proper script call is
Code:
eval: SceneManager._scene._logWindow.addText(target.name() + " was scorched due to contact!")
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
@Astfgl66 ohh. I had tried target.name before. Thanks very much!
 

Latest Threads

Latest Profile Posts

unintentionally made a track that sounds straight out of Yume Nikki
Revisiting one of my older projects in a long time to work some more on the mechanics. I've been working on- and off-again for about a year now on recreating the Force and Mystic systems from Wild ARMs. And I think I've finally made some good breakthroughs on that!

Still, it is not perfect and I may post my thoughts at a later time to see if there are any other suggestions or alternatives I've missed.
actor name string, why you gotta be case sensitive like that?
Doing RPG Maker News for 26th October 2021

My entire world, full of monsters and treasures, will likely be done by the end of the year. After that it's all NPCs and side quests... then done. I'm never making an open world game again xD

Forum statistics

Threads
116,105
Messages
1,095,827
Members
151,495
Latest member
Ukeo
Top