- Jul 27, 2020
- 507
- 31
Hi all,
Made a python program that will allow you to convert a word document to a .rpy file.
It covers the basics but the more advanced stuff you will have to do yourself.
Usage:
1. Click the open word doc button
2. Find your word document and select it
3. Click the select save location button
4. Select a folder to save your .rpy file to
5. Click the convert button
6. Done
Important Info:
1. Each line must contain a line otherwise it will throw an error.
2. Each line must start with one of the shortcuts below
3. Indentations are automatically added so don't add them yourself
4. If a line doesn't show in the .rpy file make the shortcut **bold** and delete then read the following space
5. If you have any custom python code you will have to add that yourself to the .rpy file
6. Once you have finished putting everything you need into a menu you must use the end menu short cut
Shortcuts
This is what the word doc must look like
This is the renpy code after ran through my convertor.
This is my first release of the program so there will still be some bugs.
Any issue or suggestions drop me a message or leave a comment.
Made a python program that will allow you to convert a word document to a .rpy file.
It covers the basics but the more advanced stuff you will have to do yourself.
Usage:
1. Click the open word doc button
2. Find your word document and select it
3. Click the select save location button
4. Select a folder to save your .rpy file to
5. Click the convert button
6. Done
Important Info:
1. Each line must contain a line otherwise it will throw an error.
2. Each line must start with one of the shortcuts below
3. Indentations are automatically added so don't add them yourself
4. If a line doesn't show in the .rpy file make the shortcut **bold** and delete then read the following space
5. If you have any custom python code you will have to add that yourself to the .rpy file
6. Once you have finished putting everything you need into a menu you must use the end menu short cut
Shortcuts
Shortcut | What it does | Usage | Output |
T | Character text (with a defined character) | T N hello there. | N "hello there." |
U | Character text (with an undefined character) | T boy hello there. | "boy" "hello there." |
L | Label | L Scene1 | label Scene1: |
I | Shows an image with dissolve | I image1 | show bg image1 with dissolve |
N | Loads the image | N act1image image1 | image bg act1image = "image1" |
J | Jump to another label | J Scene2 | jump scene2 |
M | Starts a menu | M | menu: |
C | Menu Choice | C Look | "Look": |
E | Ends the Current menu | E | |
A | Play audio | A music.mp3 | play music "music.mp3" |
AS | Play sound | AS sound.mp3 | play sound "sound.mp3" |
V | loads a video as an image | V act1video video.webm | image bg act1video movie = Movie(play="video.webm") |
$ | python code single line | $ renpy.random.randint(1,5) | $ renpy.random.randint(1,5) |
This is what the word doc must look like
Code:
N act1 act1titlecard
L stair
I act1
T J hello!
U Girl hi.
M
C Look
U boy hey there
J Act2
C Look away
U Girl Bye dude
T D asdasdasda!
T N asdasdasd?
J act3
E
J act1
Code:
image bg act1 = "act1titlecard"
label stair:
show bg act1 with dissolve
J "hello!"
"Girl" "hi."
menu:
"Look":
"boy" "hey there"
jump Act2
"Look away":
"Girl" "Bye dude"
D "asdasdasda!"
N "asdasdasd?"
jump act3
jump act1
Any issue or suggestions drop me a message or leave a comment.
Last edited: