Piggy influenced Ralph to become a good leader. Ralph's job was to keep rules amongst the children, to keep the children calm as in to not get scared because of there great imagination of monsters, creatures, etcetera and to have everybody working together because that's the only way to survive. Piggy influenced Ralph that the only way to survive on the island is to work together, help each other out. They also had priorities that would help them getting rescued sooner, as in setting up a fire on top of the hill, so that near by ships would see the smoke coming for the island. Many things were required to stay alive on the island but with everybody wanting to goof off and loose control of being civil, none of it would be possible.
When the kids first got on the island they were scared all over, and that's when Piggy and Ralph used the conch shell they found as a horn to check if there was anybody else on the island and soon enough kids started coming out of the forest and running onto the beach towards Piggy and Ralph. After when all the kids were together Ralph started to introduce himself and started to get to know everyone's names, later another group of boys, choir boys to be exact, which was led by a boy named jack, came to the group. Now with everyone there somebody suggested that they should appoint a leader and with jacks group being the last all the kids who met Ralph chose him to be the leader which evidently, Ralph won the election. Since Ralph was elected he started to talk about having to have rules so they would be able to survive on the island. Ralph said that the only way we were going to survive on the island is if we work together, so with this in mind he gave jobs to everyone to work on. .
The main priority or job that needed to be done in Ralph's mind was to setup a large fire on top of the hill so near by ships would notice the smoke coming from the island.