[RMXP] Actors Attack Actors in Battle (Glitch)?

Hello everyone!

Over the past few days, I have been receiving some glitches with RPG Maker XP. For instance, ("Enter" Button and "Cancel" Keyboard buttons not working in game). This is the most recent one.

This is a different game, where I experimented to find the glitch and I succeeded in doing so. Here we have our main actor, Ryu, going to battle a foe from a nearby village.

XP Error IMG 1.png

The battle begins! Once he enters battle, firstly, our actor, Ryu, has the option to Fight or Escape.

XP Error IMG 2.png

Once he chooses to best the foe in battle, he has the option of basic attacking, using magical skills, or using an item.

XP Error IMG 3.png

He chooses to take the foe head on and attack! However, what is this? Ryu can attack himself?

XP Error IMG 4.png

Even Takashi (his party member) as well?

XP Error IMG 5.png

As it turns out, all the party members have gained the access to attack their own teammates and the monster as well.

Once Ryu attacks himself and gains a meager amount of damage, a sound plays where he supposedly 'falls' in battle as if he were knocked out and then subsequently, the game freezes, halting the adventure.

XP Error IMG 6.png

I just experienced this glitch today, and I don't know where it came from. How did this happen and how can I avert this? If this cannot be averted, I guess this will be another project that is moved to development for RPG Maker VX Ace.

*My best guess that could have caused these mass of glitches was when I used a script for XP because I required help with something weeks ago, but the script appeared to be incompatible with XP as it caused glitches in almost my projects from then on, and I had not once ever received glitches nor bugs before that day. Then again, I could be mistaken because XP is quite outdated but do incompatible scripts corrupt files?

Thanks in advance,

- Tornado Summoner
Scripts can't do anything if they're already removed from the project. So for one, try to check if you really did remove the scripts.
Start a brand new game, with all the default scripts and no others, and see if you can reproduce it.


My guess is a script has messed it up.


Well, a script CAN affect it after you've removed it, if you're doing a test battle or have chosen to play test the game but said no when asked if you wanted to save. Always save after modifying scripts. But do try it in a brand new project where no scripts have ever been modified/added. Only then can you make the "glitch with the engine" accusation 😉
Thanks for your suggestions! I redid a brand new project and tested it with battlers, twice. The glitch was not reproduced! Thanks for all your help!
 

Scripts can actually take damage to your project after you remove them? I didn't know that.

Also, do scripts' negative effects expand to surrounding projects? I ask this because the script issue began in a short horror XP game I made, and the script I used for that was the only script I ever used in the game. The bugs with that were the "Enter" and "Backspace" not working. However, today, I went to a short fantasy project (no scripts at all) for XP I was working on, and the same glitch happened with the keyboard buttons. Not only that, the actor vs actor glitch occurred for the first time ever.

Should I quarantine the affected files and eradicate them before they expand to the new projects, or am I just overreacting?
No, scripts can still have an effect on your project if you remove them from your script list and don't save again before playing. You need to read more carefully 😉


And no - a projects scripts affect that project and nothing else. Unlike resources, where you can mess up the RTP and affect every project, the script list is not a part of the RTP.


Bottom line ... don't mess with the RTP stuff. If you want to change things, export them into your project and change those, not the RTP. You don't have to do this with scripts, as they are already unique to your project. You are worrying far too much about this.


The keyboard glitch could be your keyboard 😉
@Engr.Adiktuzmiko: I checked and the scripts they were confirmed to be removed from the games. Starting a new game helped, though.

@Shaz: Thank you for explaining this for me. Over-thinking and over-analyzing situations is my curse of a specialty... as well as reading quickly. I shall be extra careful when using scripts in RPG Maker XP and knowing compatibilities as well. I'll be sure to heed your advice in the future! Thank you for your patience and time! 😀

- Tornado Summoner

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-actors-attack-actors-in-battle-glitch.36256/