I need a script tweaked

Hello,

This request is for a commercial project.

Do to an incompatibility among the scripts I'm using, I replaced Yanfly's Enemy HP Bars with VTS-Enemy Hp Bars. It works great, except that I really like the gradual movement of the bars in Yanfly's script. I'm hoping someone will be able to modify the VTS one to have this effect, rather than the health bar just jumping to the new level.

The terms of the script allows for edits, and I'm hoping that this edit should be a simple one.

Thanks for your time!
bump
bump
bump
I think it is much easier for the supporters to find the incompatibility for the YEA-Enemy HP Bars you are encountering,

rather than download both scripts and change them.

If you like YEA-Enemy HP Bars more, would it be a problem if you switch to it and tell us the error?
Hi there,

The original setup was clashing quite badly. There were incompatibilities across three scripts. So I had that request closed and decided to try this with the VTS script.

Please see the original issue at this thread:

http://forums.rpgmakerweb.com/index.php?/topic/42759-rgsserror-occured/

Thanks.
Try switching to YEA-Enemy HP Bars and add this code below :

Code:
class Enemy_HP_Gauge_Viewport < Viewport  #--------------------------------------------------------------------------  # dispose  #--------------------------------------------------------------------------  def dispose    return if @sprite.disposed?    @sprite.bitmap.dispose unless @sprite.bitmap.nil?    @sprite.dispose    super  endend
Yay! That fixed it!

What was the problem here?

As this fix is for a commercial project, do you require me to credit you or anything?
Actually, I'm not sure, but I think the RAFAEL's script was automatically disposing sprites, or something like that.

Of course you don't need to credit me!

But it would be great to mark this as the best answer, so any moderator will notice this topic should be closed.
I think Rafael mentioned that the script was his first one, so I guess it makes sense that the script had an error somewhere. Those by Yanfly are always seemingly flawless.

Not entirely sure how to mark a best answer, but I will send a close request; cheers!
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.


at OP's request

Original thread: https://forums.rpgmakerweb.com/threads/i-need-a-script-tweaked.42953/