To start writing a 'lpaying the game fanfic', you should do some research on the game's lore. This will give you more material to work with. Next, decide on the tone of your fanfic. Do you want it to be serious, humorous, or a bit of both? Then, start with an engaging opening. Maybe a mysterious event that draws the main character in. As you write, let your creativity flow and don't be afraid to deviate from the original game a bit to make it your own unique story.
First, know the game really well. Understand its characters, its world, and its rules. Then, come up with a basic idea, like a new adventure for the main character. Just start writing, don't worry too much about grammar at first.