Looking for a script to force display battle animation for party/self buffs

There are a few attacks in my game that party members can use to buff themselves or other party members and RPG Maker VX Ace does not show those animations. Sure the sound effects play, as well as screen flashes, but in some cases, I would like certain animations to display anyway, especially ones that are key to the story. Such as my Ho-Oh full recovery spell.

Could I please get someone to whip up a script that allows animations to display even if the enemies are not the target?

Ideally, this would require the animation to be set to "screen" in order to work, since otherwise it would need a target, and then in the notebox for the skill, you would have something like <Display ANM> to display the animation. For those who are unfamiliar with college terms, the script could be setup to require, <Display Animation> instead.

Could I get someone to whip this up real quick? I would appreciate it. Pretty please and thank you.
This might not be exactly what you've asked for but here it is.
Please read the embedded comments first.

Spoiler: The Script
Ruby:
# * DBS Flashy Damage ACE * #
#   Scripter : Kyonides Arkanthes
#   2024-10-15

# This scriptlet shows any animation's flash effect on screen whenever an actor
# is being hit by an enemy's skill or item.

# * Warning * #
# 2 Methods have been overwritten:
# - Sprite_Battler#setup_new_animation
# - Scene_Battle#use_item

module KPartyDmg
  extend self
  attr_accessor :item
end

module RPG
  class Animation
    def set_screen_pos
      @position = 3
      @timings.each {|timing| timing.flash_scope = 2 }
      self
    end
  end
end

class Sprite_Battler
  @@anime = {}
  def setup_new_animation
    if @battler.animation_id > 0
      anime = find_animation
      mirror = @battler.animation_mirror
      start_animation(anime, mirror)
      @battler.animation_id = 0
    end
  end

  def setup_anime(anime)
    @@anime[anime.id] ||= anime.dup.set_screen_pos
  end

  def find_animation
    anime_id = @battler.animation_id
    anime = $data_animations[anime_id]
    return anime if @battler.enemy?
    setup_anime(anime)
  end
end

class Scene_Battle
  def use_item
    item = @subject.current_action.item
    KPartyDmg.item = item
    @log_window.display_use_item(@subject, item)
    @subject.use_item(item)
    refresh_status
    targets = @subject.current_action.make_targets.compact
    show_animation(targets, item.animation_id)
    targets.each {|target| item.repeats.times { invoke_item(target, item) } }
  end
end
You had a different one earlier according to the email I received. I do not want the animation to display for every attack that hits party members. Just certain ones.

I tried the one with the skill notetags but I could not get it to work. I might be setting up the notetags wrong or not understanding what it is supposed to do.

Also, so that we are clear. I want the graphic to show during certain party hits too, not just the flash.


Could you look into that? Thanks
The thing is that there's no actual target that's effectively related to the party. Thus, the DBS ignores that missing portion and only shows the flash on screen. I think I won't update my script. It's a take it or leave it deal.
I probably won't use it then, but thanks anyway. Maybe your script will benefit someone else.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-script-to-force-display-battle-animation-for-party-self-buffs.172322/