Having a party member leave + feeding party members out of combat

Hi all,
Querying about this if anyone knows how to do this. I have a fox in my game that you can get after it stealing 3 mangoes out of your inventory. I would like to be able to feed mangoes to the fox to make it stronger, or even just to keep it in the party. Would there be a way to do this, and how would I have the fox leave if it's not getting fed?

Thanks in advance!
Use a common event with a variable and a loop counting down the variable as a timer. when timer hits... Idk.. 10 minutes remaining, show message "the fox needs to feed" common event that simply resets the timer variable. Create mango item that call "reset timer" common event on use.

at the end of loop have conditional if timer variable reaches 0 = remove party member fox.

Original thread: https://forums.rpgmakerweb.com/threads/having-a-party-member-leave-feeding-party-members-out-of-combat.166196/