I've completely re-written the script as it was. Game variables are no longer used. Now it's all in script variables.
The pbFormTrader script has been written to display "Able" and "Not able" while in the Party screen, for quickly seeing who's eligible.
Added Form Trading From PC to the script as well.
Choose either pbFormTrader or pbFormTraderPC for party trading or PC trading, respectively.
I've added arguments into the method, and they're optional.
The argument order for both is the same. (nickName, trainerName, trainerGender)
If setting these arguments:
Nickname = Nickname of the Pokemon coming back to you.
Trainer name = Name of the Trainer trading you. (OT)
Trainer gender = Gender of the Trainer trading you.
If left blank, pbFormTrader, the default will be as follows.
Nickname = Will default to the Pokemon's name.
Trainer name = Will default to the NPC Event's name in-game.
Trainer gender = Will default to 0 (male).