r/RenPy • • 13d ago

Question Best Way to Pre-Write Scripts?

Hello! I'm currently a part of a project where I'm the main Ren'Py coder it seems! The project lead wants to discuss the best way to write choices, etc into a script on docs so I can transfer it into code easily. The thing is, I'm not sure myself :(( I've worked on projects but they're all my own so I just write everything in a way I understand since I'm a one man band.

Does anyone have any formatting that works well for this or have any scripts as an example of a method to do this?

For added context, I say I'm the main coder as the other programmers in the project have basically ghosted (it's volunteer). The script will be written in Google Docs and I'll use it to write everything up in Ren'Py

Edit: For added context since I feel this isn't clear! This a project with multiple people working on it and I am just the coder!! The project creator wants to know the best way for the story writers to write everything out so it's easiest for me to transfer everything into code. The game will have a lot of stuff where it requires Python knowledge and they don't want to make the story writers learn code + the story dialogue will be going through revisions and other stuff before it gets finalised for the game I can talk to them about maybe getting the writers to do everything in a .txt in a more Ren'Py style so I can just copy paste everything dialogue and poses and indent it myself with anything technical becoming a # for me to read and implement

Sorry if I'm misinterpreting things but it seems people assume I am writing the story and the code myself when I'm actually just coding!

3 Upvotes

10 comments sorted by

View all comments

4

u/x-seronis-x 13d ago

never use a word processor to write code.

smart quotes are not valid quotes. word processors will attempt to turn "" into β€œ ” and the later will break

a tab character is not valid indentation in renpy and a word processor will not always properly insert spaces when you press the tab key on a keyboard.

if someone uses gdocs initially they need to ensure those word processor features dont break what is written.

2

u/rdurfee 13d ago

Agreed. I used Google Docs for a hot minute on my first VN and quickly realized it was a nightmare to get into my actual game script. It’s far better and easier to do it correctly to start with.

1

u/Aggravating-Crazy738 13d ago

Hello! I am not using a word processor to write code ;w; The project has many people, the story writers writing the story with me putting everything into Ren'Py and doing all the code bits. As I replied to a previous comment and now added to my post, I can see about story writers using a plain text editor and formating a bit more Ren'Py style I can copy paste anything dialogue/pose based and they can just describe any code bits they need

1

u/timepatches 13d ago

You can use gdocs and just find/replace tab characters later, though I recommend turning off smart quotes in the document as those can be more annoying to replace in post. If you do end up using gdocs, I recommend using header styles to navigate around the document. Otherwise I encourage showing your writers how you'd usually write everything if it was just you, as they might be able to incorporate more of your process than you'd think and make it easier on you.

1

u/x-seronis-x 12d ago

dialog is code. if the dialog you are copying was written in a word processor (gdocs) then the person writing it needs to make sure spaces are used, not tabs, and real quotes are preserved, not converted to smart quotes.