You should use Mr. Gela's Password script.
Create a new script above "Main" script in the script editor
Paste the following inside:
Then, in the event in which you want to give out the pokemon, you should create a Conditional Branch, with the following script as a condition:
Replace the...