Skill/item have different effects if in battle possible?

Hi and hello,
im using alot of the Yanfly plugins and im not sure how i can accomplish what i want
and wanted to ask if someone can help with that.
I want to have some Items and Skills have different effects while used in menu or in batlle.
Think of FF9's Potion as example. It heals 100 HP when used in menu and 150 while used in battle.
Can you just use this in the damage formula?
Code:
$gameParty.inBattle() ? 150 : 100
If you're going to be more specific more than just the damage/recovery number, then you gotta need to provide more information.
Can you just use this in the damage formula?
Code:
$gameParty.inBattle() ? 150 : 100
If you're going to be more specific more than just the damage/recovery number, then you gotta need to provide more information.

Oh thx alot Theo!
Maybe i thought too much in the wrong direction lol.
Thought i had to use custom formulas...

Original thread: https://forums.rpgmakerweb.com/threads/skill-item-have-different-effects-if-in-battle-possible.105848/