Now, create an event, and make it look like anything you want for your collected item of need, make it able to be walked through, set it on contact (you touch it), and name it if you want to. Now, go into your variables and create one called score or points. Now under commands, enter Raise Variable "Points or what ever you called it" by 1, and delete event. In the end, it should look like this,
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi11.tinypic.com%2F5xxch7p.jpg&hash=edd8f88a693075c3dca0427e048e08a2198c3b4e)
Now click OK and copy and paste the event wear ever you want, like this:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi9.tinypic.com%2F4m1oqy1.jpg&hash=099df4e424ee8fd5d9d7add511da0048f3037a41)
Warning: You will get some lag if you put in to many, keep it no higher than 60 mabey even 70!
Finally, write or type the event ID of the last pellet, this will the the amount of points you need to win.
If you already created any events before the pellets, then subtract anything that's not a pellet with the ID