I found a script, which can solve my problems. https://www.gdunlimited.net/forums/topic/8413-party-changing-system/
It makes possible changing party members to use in battle only from actual party members.
Only modification i need is to make possible saving actual party squad and returning to it after battle by script.
It is important for compatibility with box system made by events and with catepillar script (party member who have human character should by after battle everytime at first place in party, to prevent situation when human is going in catepillar after pokemon).
I will be grateful for help.
It makes possible changing party members to use in battle only from actual party members.
Only modification i need is to make possible saving actual party squad and returning to it after battle by script.
It is important for compatibility with box system made by events and with catepillar script (party member who have human character should by after battle everytime at first place in party, to prevent situation when human is going in catepillar after pokemon).
I will be grateful for help.