What does moving the Guard state/skill from the #2 position in the database mess up, if anything?

I have a plugin that removes Attack and Guard Skills from the attack menu since I have a different plan for handling offense and defense with my projects.

However, I've been informed awhile ago somewhere on this forum that assigning the Guard state as anything other than the second state messes something up.

What exactly gets messed up when this happens? And does something similar happen with assigning the Guard skill to a different position in the skill database?
Yes, those two skills must be in those slots. And death must be in slot 1 of states as well.

These are hardcoded in the scripts and affect player and enemy behaviour.

You cannot just move them to different slots, as the slot # is what's hardcoded.
to be more precise, there are three hardcoded effects, all of them mentioned in the notes of new projects.

The attack button and guard button in the default engine trigger skills #1 and #2. If you use a plugin to remove those buttons, you no longer need to keep those two skills fixed - unless you have other plugins also involving the default attack and guard, or if you ever plan to reactivate those buttons.

The guard state is not hardcoded to state#2, it is simply assigned to skill #2 as a regular state. However that is something you always have to check when changing a state: changing a state will change it for every skill that has that state as an effect.
So you should check all your skills as to what states they use before changing any state.

That leaves the last hardcoded effect: state #1
State #1 is automatically assigned to any battler reaching zero HP - if you call that death or knockout or whatever is up to you, but messing with this will cause even more problems than messing with skill#1 because too many effects are involving state#1 (for example game over if all actors have state #1 and so on.

EDIT: misread several things
actually I didn't edit my post at all.

I never said anything about a guard state. I referred to death/knockout being state #1.
then I probably misread something, sorry
Probably when scrolling up and down I must have mixed up the OP post (which did ask about the state) with yours somewhere.

I'll edit my comment out

sorry again
It might've been me that said that, although if I did, I meant that there may be potentially be unforeseen consequences with any other plugins you may use if those plugins expect attack and guard to be skills 1 and 2 respectively. (I don't know which plugins you use, so that possibility exists even if very small)

That said, it's probably okay for you to remove them if you're removing the attack and guard commands completely, but is it necessary to do so? My game has about 275 skills so far, and even though players don't use basic Attack at all, it's still in the #1 skill slot. Maybe I'll have enemies use it or something.
In my game, I wanted to make it so different classes gained different amounts of TP for their attack command (based on their class) and also have different follow up attacks depending on situations as well.

So reading this thread had me going "noooooooo!" as I'm not using any plug-ins or scripts for this project, BUT!

Turns out in Weapons or Armours in the Database, you can "Change the Skill used for Attack" when a particular Weapon or Armour is equipped.

So all I needed to do was make sure only Class X can equip Weapon Types X and that those Weapon Types all assign Class X's Attack skill as the custom Attack skill instead of skill #1 and it works!

Just figured I'd share this mini-work around for any future readers of this thread.
Necro-post notice: @Switch_User

This is an MV Support thread. The "Change Skill used for Attack" feature is only in MZ.

Original thread: https://forums.rpgmakerweb.com/threads/what-does-moving-the-guard-state-skill-from-the-2-position-in-the-database-mess-up-if-anything.117779/