Bringing back this old post for an update for V21.1.
drdoom76's script still works but some parts of the code needs to be adjusted to make it functional. Replace all instances of $Trainer with $player. And the line that says @sprites["background"].setBitmap("Graphics/Pictures/martScreen")...