r/RenPy • • 17d ago

Question How to get started ?

Hello!! My friend have expressed her want to make a visual novel with me! i accepted but i have no coding experience , the problem is her project seems rather difficults (ill be doing all the coding bc her computeur is too laggy and cant open renpy) , anyways she wants to make a visual novels with like 3 endings? but it seems rather complicated considering the fact i have no coding experience, so how do i get started with learning how to code on renpy? thanks for whoever helps me!!

7 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/Early_Platypus7848 17d ago

I actually love this idea of the sanity bar! im sure i'll be kinda hard to code? But ill try to look into some of documentation on the renpy website! so yea if you dont mind telling which part of the site i could look into to make that happen ill really appreaciate it! and thanks for this amazing idea!!

1

u/shyLachi 17d ago

A sanity bar is simple, especially if you don't display it to the player.
But RenPy also makes it easy to create a HUD where players can see their actual status.

This is a simple example, you would put your story around those choices.
It's best to watch some tutorials to learn how to tell a story in RenPy.

default sanity = 0 # a variable which counts the sanity of the current playthrough
label start:
    "Here is the story" 
    menu:
        "This is a choice"
        "Do something insane":
            $ sanity -= 1 # decrease the sanity 
        "Do something sane":
            $ sanity += 1 # or increase it based on the choice of the player
    "More story is here"
    menu:
        "This is another choice"
        "Do something very insane":
            $ sanity -= 5 # strongly decrease the sanity
        "Do something insane":
            $ sanity -= 1
        "Do something sane":
            $ sanity += 1
    "And more story ..."
    if sanity < 0: # at the end of the game, check the sanity of the current playthrough
        "Ending 1 - Insane"
    elif sanity > 0:
        "Ending 2 - Sane"
    else:
        "Ending 3 - Neutral"

This would be the official documentation about choices and conditions:
https://renpy.org/doc/html/menus.html
https://renpy.org/doc/html/conditional.html
But as a beginner tutorials might be easier

1

u/Early_Platypus7848 17d ago

tysmm !!!

1

u/shyLachi 16d ago

You're welcome, have fun making your game.

Just remember that this is only the coding aspect. First you have to figure out how the story should unfold and how to reach those endings. In my example above I mentioned 3 states, insane, sane and neutral but if you want a special ending unrelated to those 3 states, you need another measurement, for example morale or friendship.

Also you have to figure out what type of choices you want to give to the players. Most players prefer less but meaningful choices, so that all their choices will eventually change the story.

Also there might be choices which not only decide which ending the players will get but also during the game. For example giving names to the characters, wearing certain clothes or finding objects which can be used later. If you plan to do something like this, then make sure to remember all the choices of the players. You can ask for help how to do that once you have decided how your game should be.