Hi there!
I'm still new here, but I had a question regarding a project I'm working on at the moment.
This is my second project, and I'm still extremely new to programming/coding as a whole. Sorry in advance if I use the wrong terms/make mistakes!
This is a medium-sized project I'm trying to put together in my spare time and I'm having some trouble finding the right code to do what I'm trying to do. I have two big questions.
The first question:
I'm trying to emulate a "social link" system as found in the Persona/Danganronpa series in which during moments of free time the player can choose to hang out with certain characters and build relationships. No matter when during the game these conversations take place, they are the same and the game remembers where you were before engaging these scenes.
I've managed to cover most aspects needed for such a system, but I'm having some trouble with getting Ren'Py to remember where I was before I chose who to hang out with.
For example, the player has the chance to hang out with the character "Maisy" on any weekday afternoon (among other other characters)
I want the same conversation/growth of relationship to happen no matter which day of the week you choose to hang out with her. Then I need the game to remember where it was.
More specifically, I have a script file listing all of Maisy's free time conversations and I need a way for the game to go into these files and remember where it was on the calendar of the week to return to and continue the game where it left off. It might be my inexperience showing, but I've been having real trouble having the game remember where it was before going into the free time conversations.
Then here is the second question:
I haven't looked too far into this yet, but since it's so strongly linked to the first question...
What would be the most efficient way of having Ren'Py remember what conversation the player is up to with a given character?
For example, say there are ten levels of free time conversation with my character Maisy. The player has spent 1 session of free time with her and has thus completed the "Level 1" conversation. What's the best way of having the game remember this and make the "Level 2" conversation happen with Maisy next time they spend free time with her?
I'm sorry if any of what I've said doesn't make sense, but I swear it makes sense in my head. I'm happy to answer any questions and clarify anything I've said.
I'm sure the answer to my questions are somewhere out there, and I tried looking for quite a while, but I could be using the wrong key-words.
Thanks so much for your time and any help you can give me. I truly appreciate it.
[SOLVED] Need help trying to emulate a "social link" system for my VN
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
[SOLVED] Need help trying to emulate a "social link" system for my VN
Last edited by BioLizard on Thu Aug 30, 2018 2:25 pm, edited 1 time in total.
Re: Need help trying to emulate a "social link" system for my VN
1. Simply call the label. https://www.renpy.org/doc/html/label.ht ... -statement
2. Well, the least complex way would be to just keep a variable and use it call the labels. Something along the lines of
2. Well, the least complex way would be to just keep a variable and use it call the labels. Something along the lines of
Code: Select all
default maisy_convo = 1
label start:
"First jump: maisy_[maisy_convo]"
call expression "maisy_" + str(maisy_convo)
"Second jump: maisy_[maisy_convo]"
call expression "maisy_" + str(maisy_convo)
label maisy_1:
"First."
$ maisy_convo += 1
return
label maisy_2:
"Second."
return
Re: Need help trying to emulate a "social link" system for my VN
Oh, it seems I completely misunderstood what calls were when I first read about them the other week!
Having read through it again and played around with it, it makes total sense now...
As for question 2, thanks so much for the example! Something like the code you provided looks like exactly what I need!
I will give it a go ASAP and it should be all good! If not, I'll do my best to work it out for myself before posting another question.
Thanks so much for the help and tips! I truly appreciate it.
Having read through it again and played around with it, it makes total sense now...
As for question 2, thanks so much for the example! Something like the code you provided looks like exactly what I need!
I will give it a go ASAP and it should be all good! If not, I'll do my best to work it out for myself before posting another question.
Thanks so much for the help and tips! I truly appreciate it.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]