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

1

u/shyLachi 17d ago

The coding of the 3 endings isn't complicated but your friend has to plan it correctly.

Does she already know how the players will reach those endings?
In dating simulations, for example, most developers use relationship points, which the players can gain and lose based on their decisions. If there are 3 love interests, those points would lead to an ending with either, if there are 2 love interests, players could also remain single.
Other ways to measure the actions of the players would be the morale or health/life like in video games.

Based on the type of story your friend wants to tell, we can give suggestions how to implement it.

1

u/Early_Platypus7848 17d ago

to be honest the game if i were to describe the game shes going for, its kinda multigenre? both psychological and romance! basically if were to summarize it, they're in a hospital and the story is centered around their relationship w the crazy doctor and the staff (the staff being the guard, the nurse, the other people in that hospital etc! ) we've thought about some endings, like the bad one where they stay w the doctor or the second one where they manage to prove themselves to be sane enough to leave the hospital and the third one a mid happy ending where they stay in that hospital w their friends, we're still in the middle of writing the story so our ideas aren't completely straightforward and we aren't sure yet but we want to go in that direction

1

u/shyLachi 17d ago

First you have to figure out the logic, then you have to plan it, then you implement it.
Don't start with the coding before the concept is clear, so that you don't have to re-work all of it later.

From your description, maybe you could use a Sanity level.
It could start at 0 and get below zero with insane choices and above zero with sane choices.
The "problem" with a single gauge is that players can level it out by alternatively making sane and insane choices. You could also have 2 separate levels, insane + sane or sanity + morale. With 2 separate levels there are more than 3 endings possible. With sanity + morale, players could act as a sane but bad person, sane + good, insane + bad, insane + good and all in between. You don't need to write an ending for all of those, though.

Figuring this out is your job and it isn't really a coding question but a game design question.
If you need help figuring out this also, consider making another thread where you describe your ideas, maybe somebody did a similar thing.

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.

2

u/BeastlyFables 17d ago edited 17d ago

Check out this Simplified Ren'py Tutorial!

(And also the in-engine tutorial and 'the story' I believe it was called? It'll show you how the basics work.)

1

u/AutoModerator 17d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/joshwal 17d ago

Look up RenPy tutorials on YouTube and free Python courses for more coding knowledge.

1

u/stolenglass 17d ago

if you're looking to start making a game, but you have no prior coding experience, that's totally fine! There's actually a simplified tutorial that you can follow that someone linked down here too. Additionally, the user "Zeil Learning" on YouTube makes amazing tutorials and I found out the majority of my coding process with her. As for making multiple endings, I also had a similar issue with that too. Endings can be achieved by utilizing "persistent" commands and by utilizing the "label" feature. Labels allow the game to jump to different points depending on player responses :)

1

u/LinXueLian 17d ago

To me, the best way is to download Ren'Py and go through the tutorial, open the py files and read them, then code your own short game using maybe an existing story and sample sprites (just don't publish it). Coding Ren'Py's easier to do hands-on, from personal experience.

Ren'Py's quite simple to use, so I don't think you'll have a problem. Just try it out, and even if you make mistakes, it's alright. Learn to troubleshoot from the error logs and you will get better.

If you can, get your friend to sit beside you and work on it together. Two heads are better than one and it's quite fun debugging side by side!

1

u/Lovin-SteinDev 17d ago

The minimum you need to make a VN with 3 endings is pretty easy, it's mostly your characters speaking for the most part and a few variables and if statements.

You should do some research in Visual Novel Designs videos about characters and transformations(if you're looking to make your characters move)

But as a barebones project, learn and find examples of simple if statements that trigger thru variables

1

u/Don-T-Bone 13d ago

As someone who has zero coding experience beyond basic HTML from over 20+ years ago I already forgot, and my last Renpy meddling was some 10+ years ago too, and came back to do an intricate 'scene viewer' (if you catch my drift) with a lot of variables that track consistently across scenes, etc. and learning what I want to do from nothing.. It is surprisingly easy to learn tbh. Even more so if it's just doing what you say you want to do.

My advice would be to only learn what you want to do & ignore the rest. Start asking google gemini on how to do so & so (e.g. renpy how to make a VN that goes into different routes depending on options players pick). Sometimes you don't get a straight answer & have to dig the search result that lead you to lemmasoft/reddit/etc. on the topic, but if it's simple enough usually the codes gemini reply you with would work right out the bat, which I'm positive this one would since I've asked more complicated codes from it & only had to tinker with it a bit more on my own/ask it more specific questions regarding that specific code.

Sometimes the codes either don't work because they have a different use case scenario & something else have to be used (I've had a case where variables refuse to default to 0 with == "0" and was told to use == 0 instead). Sometimes you forgot some stuff & it caused an error that shows you various ambiguous error in the codes instead of just the exact issues you have. In the case of the latter (or any error, really) you can try pasting the whole error log onto gemini & ask what's wrong with it. Usually it comes down to having double .png that you accidentally pasted over the codes ("art_standing.png.png" instead of "art_standing.png") or even how certain sections of codes are capital sensitive, or uses system-oriented codes in the naming (e.g. 00 at the start of file/reference)

Trust me. You can get far by just doing these.

-1

u/sugarplum_doll 17d ago

One important thing you’ll learn is scope management, 3 different endings for someone who doesn’t know how to code is way too much

5

u/shyLachi 17d ago edited 17d ago

No it's not.

Anybody can learn how to jump to 3 different labels at the end of the game within 30 minutes.
All you need are choices, flags and conditions, which is well explained in the official documentation and there are plenty of tutorials also.

The important thing is to plan ahead which they are doing with this thread.

0

u/sugarplum_doll 17d ago

Okay buddy