"Guard" command really is useless...

Maybe this was posted a million time... oh well it was, I used the search tool but... no one has ever resolved that if not with "disabling the GUARD command" and goodbye.

I'd like a GUARD command that keeps the user on guard (so with temporary augmented defense) forever until his/her next turn. Even if an enemy attacks him/her (unless it kills, in that case the guard would be obviously disabled). I cannot believe that there is no implementation of that in RMMV or a js Plugin that resolves that.

I couldn't find any however... can anybody help me?

EDIT: Two things I forgot to mention
  1. The "useless" from the title regards how I want it to work
  2. I'm using Yanfly's CTB Battle plugin
Yanfly's weapon unleash plugin has a feature that lets you replace the guard of a character to be a custom skill you created. Anything you can create, you can assign as a guard command. You can even create different guards depending on the actor's HP level.

So a heal ability at below 50% for example. You can make the ability you're describing and give it to your characters.

Really makes guard a lot better.
Simply have the guard skill (skill #2) apply a state that increases defense (or whatever you want) to the skill user.
Then set all data like you want it, for example have the state last one turn and give the skill a high speed if you want the effects to apply to the entire current turn.

Absolutely no need for a script or Plugin for that.
Right. All you got to do is make Skill #2 whatever you want guard to be. For example I edited it to give a small HP Regen, a boost to counterattack, and I also tweaked the formula so the amount of damage you block goes up as your DEF goes up (that last part requires a script or a plug-in, but the first two do not).

By default, Guard will make the damage you take equal to normal damage / (guard rate + 1) if I recall right. So a guard rate of 100% cuts the damage in half, a guard rate of 200% cuts it to a third, and so on. So you can also tweak the guard rate to make it block more damage if you feel 50% damage isn't good enough.
In my case, I made Guard (Skill 2) recover 5 MP every time it is used, along with the defensive boost.
It's not useless. I use the Guard skill to make characters earn TP. It's a win-win: guarding and earning TP. 🙂
As well as a small percentage HP recovery, I also give a small counter-attack possibility to guarding, so I don't view it as useless. Both done without using any script/plugin.
This skill is as versatile as you want to make it.
You all guys... I apologize for not having specified, but the GUARD command is useless for the effect that I want to make, as I wrote on the first post. I quote:

"I'd like a GUARD command that keeps the user on guard (so with temporary augmented defense) forever until his/her next turn. Even if an enemy attacks him/her (unless it kills, in that case the guard would be obviously disabled)."

I see some of you maybe haven't read it or understood it, I apologize for that maybe it wasn't so clear.
Anyways I'm gonna try the Weapon Unleash plugin by Yan and see if something changes. Anything else that I see here works as I want, I'm sorry. I'll let you know asap. And thanks for your answers ^^
Doesn't the guard command do that by default?: keep any characters in guard mode till the next turn? I am sure it does that, but I will test it in a bit.

Edit: Yes, the characters stay in guard mode till the next turn, even when hit consecutively by all enemies.
"I'd like a GUARD command that keeps the user on guard (so with temporary augmented defense) forever until his/her next turn. Even if an enemy attacks him/her (unless it kills, in that case the guard would be obviously disable
But that is exactly what I described how to do in my post above.
The high speed of the skill assures that the state is applied at the beginning of the turn, with duration = 1 turn it will last exactly to the end of the current turn.
And then add whatever effects you want the state to have, increased defense or reduced physical damage or whatever
Ok then I apologize again, I omitted another important particular: I am using Yanfly's CTB that maybe alters a bit how turns work.. maybe that's why the default Guard doesn't work as intended! What do you think?
Ok then I apologize again, I omitted another important particular: I am using Yanfly's CTB that maybe alters a bit how turns work.. maybe that's why the default Guard doesn't work as intended! What do you think?
Oh, so you are using the CTB plugin? I have not used that plugin so far, so I wouldn't know how it works. But I hope someone else helps you out.
That is a HUGE detail, as CTB alters how turns for states work. You have to set that in the settings via the tick settings, and a TON of math to get it to work right. And as I understand it, there is no way to make it so that a state lasts until your turn every time, as turns are not defined the same way in CTB.

In fact, it was due to issues like this that Yanfly discontinued the CTB script. You might never be able to get it to work as you want, and may have to either remove the CTB script, or live with it being a little different.
That is a HUGE detail, as CTB alters how turns for states work. You have to set that in the settings via the tick settings, and a TON of math to get it to work right. And as I understand it, there is no way to make it so that a state lasts until your turn every time, as turns are not defined the same way in CTB.

In fact, it was due to issues like this that Yanfly discontinued the CTB script. You might never be able to get it to work as you want, and may have to either remove the CTB script, or live with it being a little different.

I missed this fact (discontinuing the CTB ... well I'll try to switch to a similar battle system, maybe Yanfly has something like CTB hopefully. I'll try that, then I'll return to tell if it worked fine, thanks ^^
The only battle system Yanfly has is STB now that is supported. The others (ATB and CTB )were discontinued about version 1.2 of MV or so. I thought I heard Victor Saint was making a CTB system though, but you'll need to switch a lot of your battle plug-ins to Victor Saint's versions for it to work well.
I have been trying to resolve the ctb and guard issue. What I ended up doing is simply making guard state have no auto removal timing with remove on damage, and with yanfly's action sequences i have basic attacks and each skills start off with "remove state 2: user." It is a little tedious to insert that into every skill but it behaves closer to how it should now.

I'd like to find a way to cause item usage to remove it but I haven't figured that out yet. Setting it to remove on damage at least gives it a high chance to be removed before too long.
If you're using Yanfly Skill Core, you can use this notetag in the items:
<After Eval>
if(user.isStateAffected(x)){
user.removeState(x);
}
</After Eval>

Where x is your gaurd state.
In my case, I made Guard (Skill 2) recover 5 MP every time it is used, along with the defensive boost.
I like that.

I was thinking of doing something like a limit break gauge increase or such, or dependant effects on the character.
If you're using Yanfly Skill Core, you can use this notetag in the items:
<After Eval>
if(user.isStateAffected(x)){
user.removeState(x);
}
</After Eval>

Where x is your gaurd state.

This is exactly what you need to do for every skill, item, state etc and you can get the ATB (etc) systems to work. The tick work is a lot of math but once you figure out the perfect formula, she starts to play a little nicer with you. I have run into other issues with ATB systems and the like because of RPG Maker's Battlelog and such being a major pain to work around. It's just not worth it, hence why the mighty Yanfly himself discontinued it. But, IMHO it works like a charm if you mess with it a bit.... I did have to sacrifice the ready/psychical animation slot of my custom svs to be idle because it would call the ready animation after every skill ended, other than that It has worked perfectly to what I'm going for.
Necro-post notice: Raven Burns

Original thread: https://forums.rpgmakerweb.com/threads/guard-command-really-is-useless.87878/