To unlock Ridller you must complete the Hall of Justice quest line until you reach the Riddler's puzzle (should be quest 8) involving stepping on the color pads at the correct time/pattern. After completing the quest the Riddler gives you his character token.
The Riddler costs 250,000 studs. Purchase him and switch to him in the Bat Cave Trophy Room.