Changing parameters

Hey all,
So in my project, at the beginning of battle you're allowed to select a single buff from several choices. Currently I only have a shields buff set up, so that's what I'll work with. Basically, the buff increases your max MP. MP in my project is actually SP, shield points, and damage is split between that and HP. So at the start of battle, I select that buff and fly into the fight.

The problem I'm having is I need to remove that buff at the end of battle. Now, with only one buff set up for now, that's not really a problem, but when I start adding in the other buffs, I need a way to check for what buff was used and revert the change. Conditional branch would be the best way I think, but the options available don't allow to check the stats. I feel like I should be able to store the buff that's chosen into a variable somehow and use that in the conditional branch but (n00b problem ahead) I'm not entirely sure how. Any help would be greatly appreciated.

Original thread: https://forums.rpgmakerweb.com/threads/changing-parameters.118977/