A small, annoying bug

Couldn't necessarily post the problem in the title because it's too big of a problem to word out.

For some reason, in my game, there's this recent problem with healing actors. When an ally is at low HP, for example, I use a healing ability that heals 25% HP. I press the selection button ONCE. I use the ability ONCE. But then, for some reason, the game thinks I mashed the selection key, and fully heals my party member, sucking up my MP as if I literally used the skill more than once, even though I pressed the spacebar once. And yes, the same happens with Z and Enter.

Same with items. The system is literally wasting my items when I want to use them once. Even more bizarre is that it plays the buzzer noise as if I'm trying to heal my party member at full HP. Same with Status healing. I use the ability or item once, it heals the state, but makes the buzzer noise as if I tried to use it twice.

This is getting really annoying. It's wasting my Items and MP. A friend of mine tried to help and we couldn't find out what the problem was, even after checking all of my scripts.

What could be the issue here?
Got any scripts in your game? If you start a brand new project and set up an item in the same way, with NO scripts, does the same thing happen?


If you put your project on a different computer, does the same thing happen?


How do you have it set to heal 25% HP - is that just in the damage formula, or do you have it call a common event to do some stuff as well?


Show us a screenshot of how it's set up, and if you have any scripts, give us links to the scripts.


I would almost say it sounds like your key is just getting stuck and you need to clean your keyboard, but if it's happening with several keys (not that it doesn't mean you need to clean your keyboard ...)


Do you have any game controllers or other non-standard input devices plugged in?
Got any scripts in your game? If you start a brand new project and set up an item in the same way, with NO scripts, does the same thing happen?

If you put your project on a different computer, does the same thing happen?

How do you have it set to heal 25% HP - is that just in the damage formula, or do you have it call a common event to do some stuff as well?

Show us a screenshot of how it's set up, and if you have any scripts, give us links to the scripts.

I would almost say it sounds like your key is just getting stuck and you need to clean your keyboard, but if it's happening with several keys (not that it doesn't mean you need to clean your keyboard ...)

Do you have any game controllers or other non-standard input devices plugged in?
Many scripts. This project in particular seems to be the only one with the problem.

Upon giving my friend the project to test it himself, he got the same problem.

I use the Effects box to heal and recover.

Not much to screenshot, unfortunately. Don't think that would work.

It's not my keyboard. As I said, my friend had the same problem and he's all the way in Florida.

Also, I don't own any game controllers.

I also tried searching up some things in my scripts. The only custom scripts that turned out to be suspicious were Yanfly's Ace Shop Options, Fomar's ATB Script, an Encounter Rate Modifier script, and Yanfly's Cast Animations script. All of them are particularly linked to Scene_ItemBase. Also it began happening after I installed Gamesfreak's Stop State Removal on Death script. Hope this info helps.

https://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-shop-options/

http://cobbtocs.co.uk/wp/?p=64

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/cast-animations/

http://www.pavilionboards.com/forum/showthread.php?t=29319

and my most recent script I implemented...

http://www.rpgmakervxace.net/topic/3325-stop-state-removal-on-death/

(I'm just listing the suspicious scripts, all the others are most likely in the clear as far as my problem searching goes.)
All you can do is disable your scripts one by one, test, and see if, at some point, it starts to work correctly. If/when it does, you know the most recent script you disabled is the culprit.


Unfortunately this is not something someone else can do for you - you could give your project to someone else, but they would have to do exactly the same thing.


To make it a bit easier, you could disable them in blocks - choose 5-10 scripts and disable them all. Test. If the problem still happens, it's not one of that group so you can enable them again and move onto the next. When you find a group that does contain the culprit, re-enable only half of the scripts and test again. Doing it this way, in blocks, will require a bit less time than doing them individually.
One question:

How did you check for that button that heals your actor?

Because that sounds as if you have a parallel process event checking for a button and then applying the effect, and NOT using the regular items for healing.

If that assumption is correct, your description is regular behavior due to how the conditional branch:button pressed and the parallel processes work.

In that case we need a screenshot of that parallel process event, because you'll need to add a switch for temporarily disabling the check when used once.
One question:

How did you check for that button that heals your actor?

Because that sounds as if you have a parallel process event checking for a button and then applying the effect, and NOT using the regular items for healing.

If that assumption is correct, your description is regular behavior due to how the conditional branch:button pressed and the parallel processes work.

In that case we need a screenshot of that parallel process event, because you'll need to add a switch for temporarily disabling the check when used once.
Well, I just press the button once and it somehow fully heals the actor and plays a buzzer noise as if I'm trying to heal him again. There's no parallel process things going on, either.

And, the buttons in particular are regular selection buttons: Space, Z, and Enter.
I assumed you were using the items from the item menu. But Andar is talking about pressing a particular button while on the map that causes you to use a healing item. You need to clarify that.
Then no, I don't use any external buttons that do that. And yes, these things only occur in the menu. Both Item and Skill menu to be exact.
Yeah, I think it's one of the scripts then.
Cast Animations sounds likely.

Or a comflict with Stop State Removal.

Press shift+A and control+Q (?) to comment out entire scripts while testing to find the problem one.
Cast Animations sounds likely.

Or a comflict with Stop State Removal.

Press shift+A and control+Q (?) to comment out entire scripts while testing to find the problem one.
Yup. By disabling both scripts, the problem was fixed. But the problem is, I really don't wanna get rid of either of those. Any ways to get them to not conflict?

EDIT: Actually, it's just the Cast Animation script that causes the problem...? I tried disabling the State Removal thing on its own but the problem still happened.

EDIT 2: I disabled Jet's State Icon Animation script and the problem stopped happening. Uh... Yeah, turns out when I disabled the Cast Animations and the State Removal I accidentally disabled Jet's script. And I guess I found the solution?

Yeah, Jet's State Icon Animation seems to be the only thing that causes the problem, most likely conflicting with something else. But, then again, I don't want to let that go, either.
Message Jet and give him the link to the other scripts and tell him of the conflict 🙂
Message Jet and give him the link to the other scripts and tell him of the conflict 🙂
A bit of the problem is that now I know that it's Jet's script, I kinda don't know what the real conflict is. It's possibly conflicting with the State Removal script, but I'd have to know for sure.
Well, just send him all three scripts. He can check it out.
Well, just send him all three scripts. He can check it out.
Well, with the help of a friend, it appears the whole problem is a bug in Jet's script alone. For some odd reason he decided to check healing items on the menu screen as well as skills when his script was specifically made for the battle scene. Well, since that's cleared up, I'll probably message him about that and have this topic closed. Thanks for the help!
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.

Original thread: https://forums.rpgmakerweb.com/threads/a-small-annoying-bug.39013/