Battle Log Canceller

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by MeowFace, Jan 14, 2016.

  1. MeowFace

    MeowFace Meow Veteran

    Messages:
    1,034
    Likes Received:
    178
    Location:
    La La Land
    First Language:
    Meowish
    Made for a request here.
     
    This script cancel the result log display of certain skill/item in the battle message log.
    eg.
    Monster Name suffered 100 damage.
    Monster Name evaded your attack.
     
    This is useful for those who want to make skills and formula doing stuffs outside of normal attack and don't want those message to appear.
     
    Features:
    Hide result messages from certain item/skill in the battle log.
     
    Note: Skill/Item use message is still being displayed, so you can still set it to show who is using the skill/item. Only the effect/result of the skills/items are hidden.
     
    How to use:
    [1] Paste this script below Material and above Main
    [2] Add the skill/item ids you wish to remove result message in the SETTINGS AREA of the script
     
    Compatibility:
    This script is using alias method, it should be compatible with most custom scripts.
     
    Terms of Use:
    Free for both commercial and non-commercial
     
    Script:

    Code:
    #==============================================================================# ■ Meow Face Battle Log Canceller#------------------------------------------------------------------------------# Remove result log message from skill/item#==============================================================================# How to Use:# [1] Paste this below Material and above Main#==============================================================================module MeowBLC #DO NOT REMOVE!!#==============================================================================# Settings Area#==============================================================================  SKILL = [129, 130] #Enter Skill IDs to remove log message in battle  ITEM = [1, 3, 5] #Enter Item IDs to remove log message in battle#==============================================================================# End of Settings Area# Edit anything past this line at your own risk!#==============================================================================endclass Window_BattleLog < Window_Selectable  alias meow_battle_log_hijack display_action_results  def display_action_results(target, item)    return if item.is_a?(RPG::Skill) && MeowBLC::SKILL.include?(item.id)    return if item.is_a?(RPG::Item) && MeowBLC::ITEML.include?(item.id)    meow_battle_log_hijack(target, item)  endend
     
    Last edited by a moderator: Jan 14, 2016
    #1
  2. tale

    tale Volunteer Veteran

    Messages:
    426
    Likes Received:
    697
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    Fixed script format, credit Meow Face.
    Code:
    #==============================================================================
    # ■ Meow Face Battle Log Canceller
    #------------------------------------------------------------------------------
    # Remove result log message from skill/item
    #==============================================================================
    # How to Use:
    # [1] Paste this below Material and above Main
    #==============================================================================
    module MeowBLC
    #DO NOT REMOVE!!
    #==============================================================================
    # Settings Area
    #==============================================================================
    SKILL = [129, 130]
    #Enter Skill IDs to remove log message in battle
    ITEM = [1, 3, 5]
    #Enter Item IDs to remove log message in battle
    #==============================================================================
    # End of Settings Area
    # Edit anything past this line at your own risk!
    #==============================================================================
    end
    class Window_BattleLog < Window_Selectable
      alias meow_battle_log_hijack display_action_results
      def display_action_results(target, item)  
        return if item.is_a?(RPG::Skill) && MeowBLC::SKILL.include?(item.id)  
        return if item.is_a?(RPG::Item) && MeowBLC::ITEM.include?(item.id)  
        meow_battle_log_hijack(target, item)
      end
      end
     
    #2
    Ebanyle and Kes like this.

Share This Page