Ralph fights his way through heros duty and climbs the big tall tower and breaks it open and jumps over cy bug eggs and gets his medal. However after Ralph gets his medal he steps on a cybug egg and retreats with the cy bug in a escape capsule which flies right into sugar rush.
King Candy Room
Ralph crashes in the candy swamp of sugar rush and is ejected from his seat and loses his medal in a tree. Ralph starts climbing the tree to be greeted by a kid named vanelope and She comments on ralphs big hands and he comments back saying how annoying she is, and then she sees the medal and gets it before ralph and uses it as a gold coin to enter the race.
Make a deal
Vanelope runs off to the starting line of the race and tosses her gold coin into the gold cup to enter the race. However King candy the ruler of sugar rush freaks out as vanelope is a glitch and she can't enter the race and so she runs off while ralph comes and destroys the whole starting area and is captured by king candy's guards.
Build a Kart
Ralph meets king candy and talks to him about his medal and vanelope. King candy tells ralph that he can not get his medal back.
Ralph finds vanelope being bulied by the other racers and he scares them off. Ralph and vanelope make a deal that if ralph can create a car for her then she would win the race and get his medal back for him.
Ralph breaks into the cart factory and helps vanelope create a car and then king candy arrives to capture them and they escape out of the factory.