Sapphire ACtion System only turn into enemy if a certain condition is fullfilled?

Hello everyone,
I know it's a pretty old script and a very specific question, but I could really use some help!
So I use the Sapphire Action System and want to implement a tree chopping system, but to chop a tree, the player has to have an axe equipped.
The problem is, I can't seem to figure out how to achieve that if there is no axe equipped, the tree is not considered an object, but as soon as the player has an axe equipped it can be hit.
I managed to do it with conditional branch, but then i always have to make the player interact with the tree first until he can start hitting it, which isn't quite optimal...
If anyone knows a possible solution, I would be very happy!

I've moved this thread to RGSSx Script Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/sapphire-action-system-only-turn-into-enemy-if-a-certain-condition-is-fullfilled.120036/