Text vs State Animation Layering Issue in Cogwheel's CTB Battle System Script

Hello guys, I am using a battle system for RMXP called CTB by Cogwheel.

I love this script, but I've run into the issue of attack animations and most especially state animations covering text, or being a layer above the text. In the default RMXP, this is not the case, as the text is over all animations, as it should be.

I've tried toggling with the script but I can't figure out how to make the text above the state animation.

Images of issue + script included. If someone could help figure it out, I would appreciate it!!!
It seems that what's causing your issue is the actual target of the animation. It's not the childish battler but the status window itself. :S

I'm correcting my previous statement here. It does follow the battler's current position, but the window's z coordinate is too low and it's not the default Window_BattleStatus one...
I like to have fun when I'm playtesting. Anyway, how do I change the z coordinate in the script then?
Bump. Anyone experienced with scripting who knows how to figure this out?
😅 Who ever said I ain't experienced? Just take a look at all of my scripts available here. 😛
I don't recall where I placed the file where I was testing it so if you could upload a demo...
BUT if you keep underestimating my abilities, I won't do it for free. 😛
Actually, I know how to fix it. Yet, I won't post the solution for 2 reasons.
1. You underestimated my abilities as a scripter.
2. I ask you to do me a favor and you ignored me for whatever reason you might have had. AND you were online in the last 24 hours or so. Thus you got no excuse.
Actually, I know how to fix it. Yet, I won't post the solution for 2 reasons.
1. You underestimated my abilities as a scripter.
2. I ask you to do me a favor and you ignored me for whatever reason you might have had. AND you were online in the last 24 hours or so. Thus you got no excuse.
Dude, calm down. I didn't mean to say anything that was directed towards you. I bumped the post since you left the post for a couple of weeks, and asked if anyone else was experienced with scripting. Didn't mean for it to come across that way at all.

Second, I have work during the day. I wasn't able to find time to get the demo. Yet I still saw your message by going on the site so I appeared active. Wasnt intentionally ignoring you. Again, work. Didnt mean to be neglectful or rude. I can provide the demo now
Here is the demo. Didn't mean for a misunderstanding
=_= Yeah, very nice Darkness battler for Aluxes...

You only need this fix and it will run as intended.

Ruby:
class RPG::Sprite
  def animation(animation, hit)
    return if animation == nil
    num = @_animation.size
    @_animation.push([animation, hit, animation.frame_max, []])
    bitmap = RPG::Cache.animation(animation.animation_name,
                                  animation.animation_hue)
    if @@_reference_count.include?(bitmap)
      @@_reference_count[bitmap] += 1
    else
      @@_reference_count[bitmap] = 1
    end
    if @_animation[num][0] != 3 or not @@_animations.include?(animation)
      for i in 0..15
        sprite = ::Sprite.new(self.viewport)
        sprite.z -= 300
        sprite.bitmap = bitmap
        sprite.visible = false
        @_animation[num][3].push(sprite)
      end
      unless @@_animations.include?(animation)
        @@_animations.push(animation)
      end
    end
    update_animation(@_animation[num])
  end
end
=_= Yeah, very nice Darkness battler for Aluxes...

You only need this fix and it will run as intended.

Ruby:
class RPG::Sprite
  def animation(animation, hit)
    return if animation == nil
    num = @_animation.size
    @_animation.push([animation, hit, animation.frame_max, []])
    bitmap = RPG::Cache.animation(animation.animation_name,
                                  animation.animation_hue)
    if @@_reference_count.include?(bitmap)
      @@_reference_count[bitmap] += 1
    else
      @@_reference_count[bitmap] = 1
    end
    if @_animation[num][0] != 3 or not @@_animations.include?(animation)
      for i in 0..15
        sprite = ::Sprite.new(self.viewport)
        sprite.z -= 300
        sprite.bitmap = bitmap
        sprite.visible = false
        @_animation[num][3].push(sprite)
      end
      unless @@_animations.include?(animation)
        @@_animations.push(animation)
      end
    end
    update_animation(@_animation[num])
  end
end
This worked for attack animations, so I appreciate that, but State animations still cover the text, and I need them behind the text too, which is why Aluxes has that 1 frame Darkness animation State.
I'm past my bedtime so I'll take care of that later on.
Moved to: RGSSx Script Support
Final Animation Bug Fix!
(Not affiliated in any way or form with the Final Fantasy series 😛 )

Ruby:
class RPG::Sprite
  def make_anime_sprites(anime_bitmap)
    ary = []
    for i in 0..15
      sprite = ::Sprite.new(self.viewport)
      sprite.z -= 300
      sprite.bitmap = anime_bitmap
      sprite.visible = false
      ary << sprite
    end
    ary
  end

  def animation(animation, hit)
    return if animation == nil
    num = @_animation.size
    @_animation.push([animation, hit, animation.frame_max, []])
    anime_bitmap = RPG::Cache.animation(animation.animation_name,
                                  animation.animation_hue)
    if @@_reference_count.include?(anime_bitmap)
      @@_reference_count[anime_bitmap] += 1
    else
      @@_reference_count[anime_bitmap] = 1
    end
    if @_animation[num][0] != 3 or not @@_animations.include?(animation)
      @_animation[num][3] += make_anime_sprites(anime_bitmap)
      unless @@_animations.include?(animation)
        @@_animations.push(animation)
      end
    end
    update_animation(@_animation[num])
  end

  def loop_animation(animation)
    return if animation == @_loop_animation
    dispose_loop_animation
    @_loop_animation = animation
    return if @_loop_animation == nil
    @_loop_animation_index = 0
    animation_name = @_loop_animation.animation_name
    animation_hue = @_loop_animation.animation_hue
    anime_bitmap = RPG::Cache.animation(animation_name, animation_hue)
    if @@_reference_count.include?(anime_bitmap)
      @@_reference_count[anime_bitmap] += 1
    else
      @@_reference_count[anime_bitmap] = 1
    end
    @_loop_animation_sprites = make_anime_sprites(anime_bitmap)
    update_loop_animation
  end
end
It works just as I want it now, so I have to thank you for that.

On a side note though- We're all people trying to make games in this community and learn, and have our own lives, so I didn't appreciate the animosity and condescending tone. The "childish" comment about my battler was very unnecessary, and me simply bumping the post was more than tame in comparison. You had also made a pun about Final Fantasy, is that not childish as well? Maybe not, we just all like to have fun when creating.

Lead with kindness instead.
Sarcasm or making fun comments every so often is a nice part of life on this earth as well. 😛
It's good to hear that it works as intended and there's nothing left to fix there.

By the way, it's not "irrational anger" when you disrespect or ignore somebody and that person reacts. And nope, I was not overreacting for I didn't insult you nor threatened to attack you or anything the like. 😛
Irrational anger is different from sarcasm and fun comments. Regardless, yes it works.

It was definitely irrational anger; you left the topic for a couple of weeks which in of itself was ignoring. So I asked for others who were experienced in scripting since it gave the impression that you were unsure. Then you immediately became irate and defensive and began projecting. I had explained that I work so I was busy. Not sure if you work. It's better to be kind.

Original thread: https://forums.rpgmakerweb.com/threads/text-vs-state-animation-layering-issue-in-cogwheels-ctb-battle-system-script.158121/