Don't Show Damage if Damage = 0

Discussion in 'RGSS3 Script Requests' started by Vis_Mage, Jan 2, 2019.

Thread Status:
Not open for further replies.
  1. Vis_Mage

    Vis_Mage Novice Magician Veteran

    Messages:
    403
    Likes Received:
    142
    Location:
    Ridge Island
    First Language:
    English
    Primarily Uses:
    RMVXA
    Hey! :kaohi:

    In my project, I have some fairly complicated non-damaging status moves, that make use of the damage formula. The only thing is, since I am using the damage formula, I still get the "ENEMY took no damage" message in the battle log.

    Could someone create a script that prevents the "ENEMY took no damage" message from appearing?

    Thank you! :kaothx:
     
    #1
  2. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    4,511
    Likes Received:
    5,120
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    Will this do?
    Code:
    class Window_BattleLog
      alias no_hp_damage display_hp_damage
      def display_hp_damage(target, item)
        return if target.result.hp_damage == 0
        no_hp_damage(target, item)
      end
    end
    
     
    #2
    kirbwarrior, Solis and Vis_Mage like this.
  3. Vis_Mage

    Vis_Mage Novice Magician Veteran

    Messages:
    403
    Likes Received:
    142
    Location:
    Ridge Island
    First Language:
    English
    Primarily Uses:
    RMVXA
    Awesome, works like a charm! Thank you! :kaoluv:
     
    #3
  4. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,749
    Likes Received:
    4,181
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #4
Thread Status:
Not open for further replies.

Share This Page