Is there a way to alter the properties of "Defend"?

I'm trying to find out if there is a way to add or change the properties of the "defend" command. For instance changing how much damage it mitigates or adding some type of healing effect to it.
There is a way, though it can be troublesome.

For each character, you need a battle event. This event will have the "Hero X uses the Defend battle command". And that's it. After that, you can manually raise that character's HP, and you can try giving it an altered state too, and make that state double its defense (give it recovery after 0 turns 100%, although I think this part will not work properly...).
Ok, So I need to set a battle event. Thanks I'll try that.
I don't suppose there's a way to set a common event for this rather than setting it for every single troop is there? Also is there a way to set it to increase health by a % rather than a set number?
Azrik, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

If you want to add something, simply edit your post.
Sorry bout that. I'll keep that in mind.
Even if its a common event, it would not work. The most important part is the trigger, which is "when X character used Defend command". That's why this can get very troublesome. Although you just need to do all character's events, then copy-paste them to Every Single Enemy formation. Tedious, but it's plain old copy paste, no need to change anything.

As for the percentual recovery, you can calculate it by using variable operations (set variable to hero's max HP, multiply it by your desired percentage, then divide it by 100). Then use that result as value for recovery.
Thanks
You can always check on 'Mighty Guard' in the character database tab. It will divide damage by 3 instead of 2 if I recall correctly. But otherwise, you will need to use events to create additional defend features such as healing HP or MP, or anything else. Just make sure you turn on Mighty Guard for all the characters you want to have it.
I tried adding a state to heal the player for 5% of their health and for the effect to expire after 1 turn. However the effect never seems to expire. How can I fix this?
I wouldn't use a state for that. It's rather clunky as you've experienced. Instead of doing that, try this.

In the battle event, when a character defends, run a variable operation of this equation: Max HP * Percentage / 100 = Result

So if Max HP is 124, multiplying that by 5 and then dividing it by 100 will get you 6.2, rounded down to 6. That's 5% of 124. 

In RPG Maker 2003, you would simply take a variable and store the defending character's Max HP. Then you'd multiply that same variable by 5, and then you'd divide it by 100. And then with the result, you run the Change HP command and increase the character's HP by the value of the variable. There you go. That's your five percent without messing with states.

Hope that helps.
EDIT: Nevermind, sorry!
RPG Maker 2003 does not handle guard with a skill.
RPG Maker 2003 does not handle guard with a skill.
Sorry, saw this at the top of the "Help" section and forgot that the Ace subforum is no longer at the top of the list!  Thanks for the catch.
Ok, nvm I figured out how to get it to work with a state. I just had to set the chance of recovery to 100%. Thanks for the replies though.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-alter-the-properties-of-defend.41457/