William Couillard's FF Style Battle Log ADD ON: SKILL BASED LOG WINDOW COLOR CHANGING

Good Morning / Day / Afternoon / Evening everyone.

I have a request for a certain kind of script addon.

I am using William Couillard's FF Style Battle Log

https://www.rpgmakercentral.com/topic/8877-final-fantasy-styled-battle-log-v306-updated-09-04-15/



Is it possible to create a feature that VIA A notetag on the skill, the log window's color changes. For example some of my skills are "limit breaks" and it would be cool to have them highlighted in a different colour when displayed on the battle log.
Ruby:
module R2_FF_Log_Skill_Limit
  # set colour for skill (Red, Green, Blue, Opacity)
  Colour = Color.new(220, 20, 20, 255)
  # use <limit break> in skill note box
  Skill_Limit_Note = /<limit[-_ ]break>/i
end

class Window_BattleLog < Window_Selectable
  def draw_skill_name(item, x, y, enabled = true, width = 172)
    return unless item
    if item.note =~ R2_FF_Log_Skill_Limit::Skill_Limit_Note
      change_color(R2_FF_Log_Skill_Limit::Colour)
    else
      change_color(normal_color, enabled)
    end
    if item.icon_index == 0
      draw_text(x, 0, width, line_height, item.message1)
    else
      draw_icon(item.icon_index, x, 0, enabled)
      draw_text(x + 24, 0, width, line_height, item.message1)
    end
  end
end
Ruby:
module R2_FF_Log_Skill_Limit
  # set colour for skill (Red, Green, Blue, Opacity)
  Colour = Color.new(220, 20, 20, 255)
  # use <limit break> in skill note box
  Skill_Limit_Note = /<limit[-_ ]break>/i
end

class Window_BattleLog < Window_Selectable
  def draw_skill_name(item, x, y, enabled = true, width = 172)
    return unless item
    if item.note =~ R2_FF_Log_Skill_Limit::Skill_Limit_Note
      change_color(R2_FF_Log_Skill_Limit::Colour)
    else
      change_color(normal_color, enabled)
    end
    if item.icon_index == 0
      draw_text(x, 0, width, line_height, item.message1)
    else
      draw_icon(item.icon_index, x, 0, enabled)
      draw_text(x + 24, 0, width, line_height, item.message1)
    end
  end
end
This is amazing!... if it's not too much to ask... could it be applied to items as well?

one character has a limit breaks that uses the "mix" command to create a mix item...

of course if it's too much work please do not bother this is amazing as is!

Thank you very much!
Really the same line of code should work.
Just for the item name instead of skill
Ruby:
module R2_FF_Log_Item_Limit
  # set colour for item (Red, Green, Blue, Opacity)
  Colour = Color.new(220, 20, 20, 255)
  # use <limit break> in item note box
  Item_Limit_Note = /<limit[-_ ]break>/i
end

class Window_BattleLog < Window_Selectable
  def draw_items_name(item, x, y, enabled = true, width = 172)
    return unless item
    if item.note =~ R2_FF_Log_Item_Limit::Item_Limit_Note
      change_color(R2_FF_Log_Item_Limit::Colour)
    else
      change_color(normal_color, enabled)
    end
    if item.icon_index == 0
      draw_text(x, 0, width, line_height, item.name)
    else
      draw_icon(item.icon_index, x, 0, enabled)
      draw_text(x + 24, 0, width, line_height, item.name)
    end
  end
end

And if you want different colours for different skills then just add on more conditions.
If you need an example, let me know I'll change the first one and then you can just copy paste for more.
oh... it changes the colours of the text instead of the windows... 😀
it changes the colours of the text instead of the windows
If you want the windows to change color then the script will need to be modified as it removes the background set by the default battlelog.
Maybe it can be modified to use different windowskins. That's part of the code already anyways.

What way do you want?

Original thread: https://forums.rpgmakerweb.com/threads/william-couillards-ff-style-battle-log-add-on-skill-based-log-window-color-changing.112505/