Create a Rope Swing/Grapple Using DND

Hey GMC!

So this is my first post within the GMC. I am currently working on a GM platformer project for one of my classes using DND, and I would really like to incorporate a grapple ability for my player character, but I am not sure how to go about this or even where to start. I have seen tutorials and videos showing how to do this using GML, but I would like to stick to DND if possible. Any help or advice would be greatly appreciated.