skill doing different stuff inside and out of battle

so, on my feral druid class i have a skill wild instincts that outside battle, reveals hidden stuff.

id like it to do stuff inside battle too. like maybe a scan ability that also increases increases crits against that enemy or something
(it uses half her mp, but mp gradually restores)

i know ill need a script for the latter, but how do i do the former?

actually, i could have the former apply a state that gets removed outside battle
If you can do Common Events, you could do a Conditional Branch and in the Script option, you could write SceneManager.scene_is?(Scene_Battle) with an Else statement.

For the Outside use of the skill, it depends on you, though a Switch would be useful to turn on hidden events. For me, I might do a have a second Common Event on Parallel Process (Switch 1st) that will turn on Switch 2nd if your druid has a state or turn the switch off if your druid doesn't have the state. So therefore, just turn on Switch 1st, have your skill cast that state on you, and you can see bear stuff.

Original thread: https://forums.rpgmakerweb.com/threads/skill-doing-different-stuff-inside-and-out-of-battle.74588/