[RMXP] Can you change the effects of Defend in Battle?

Battles have four buttons: Attack, Skill, Defend and Item. Nothing too complicated.

What I wanted to do was to let every character gain SP when Defending, but I don't know how to do that.
I've tried looking into the Scripts but I found nothing, so I figured I'd ask here.

Is it possible to do this?
*edit* sorry, didn't realize this was in XP.
The answer here is simple: only by using a custom script.
Without that, it'd be impossible.
The answer here is simple: only by using a custom script.
Without that, it'd be impossible.
How do I do that?
The question now is when should they get the benefit?
At the moment they raise their guard? Or when their turns begins?
If it's the latter, then this script is right for your gaming needs!

The up-to-date version of my script can be found here.
It might take some time for a moderator to approve that thread...

To open the Script Editor:
Go press F11 while on the map editor.
Or click on the paper icon with a small pencil at the top of the main editor.

Then add a new script slot somewhere below Scene_Debug and paste this script there. Save it.
Finally, go playtest your game!

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-can-you-change-the-effects-of-defend-in-battle.166093/