How to make independient game "chapters"? D:

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
Chocolat
Newbie
Posts: 6
Joined: Sun Jul 15, 2012 12:20 pm
Contact:

How to make independient game "chapters"? D:

#1 Post by Chocolat »

Hello!
I am doing a game with ren'py and I want to make it in different chapters.
The game is a dating sim, and i want to add events or make the story longer, so I need to know how can I do something like that that you can install without lose the saved files and love points etc..

Please help me!

And thank you ! ^^


User avatar
Chocolat
Newbie
Posts: 6
Joined: Sun Jul 15, 2012 12:20 pm
Contact:

Re: How to make independient game "chapters"? D:

#3 Post by Chocolat »

Thank you, now the second chapter knows that i played de 1st, but love points are not saved :?
How can i do that?

DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: How to make independient game "chapters"? D:

#4 Post by DragoonHP »

Something like this should work (ripped off from the wiki example)

Code: Select all

$ mp.love_points = 10
$ mp.save() 

User avatar
Chocolat
Newbie
Posts: 6
Joined: Sun Jul 15, 2012 12:20 pm
Contact:

Re: How to make independient game "chapters"? D:

#5 Post by Chocolat »

It doesn't work T^T

There isn't a way to only install the data of the new chapter and make it work just loading the save data on the 1st chapter? I mean...just add new information instead of run it like a different game.

Egressus
Veteran
Posts: 240
Joined: Wed Apr 04, 2012 11:13 am
Projects: Things Not Seen
Location: Indonesia
Contact:

Re: How to make independient game "chapters"? D:

#6 Post by Egressus »

Maybe work around the points system? I'm not sure it's possible to save the love points, but what if you make > 15 into the "love" continuation and < 15 "friendship" continuation?
Just saying. I don't know much myself.

Good luck, tho!
Hiatus of hiatuses

DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: How to make independient game "chapters"? D:

#7 Post by DragoonHP »

Sorry (didn't saw your reply before)

anyway, it should work.
Can you show the code you are using to save and load the multi-persistent data?

User avatar
Chocolat
Newbie
Posts: 6
Joined: Sun Jul 15, 2012 12:20 pm
Contact:

Re: How to make independient game "chapters"? D:

#8 Post by Chocolat »

I'm using the code I saw on the page...

In the first chapter:

Code: Select all

init:
 $ mp = MultiPersistent("lsf.org")
label start:

# game

$ mp.beat_part_1 = True
$ mp.love_points = 10
$ mp.save() 

And in the second part:

Code: Select all

init:
 $ mp = MultiPersistent("lsf.org")

label start:
if mp.beat_part_1 = True

#...

And it know that i have passed the first part, but not my love points.

DragoonHP
Miko-Class Veteran
Posts: 758
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: How to make independient game "chapters"? D:

#9 Post by DragoonHP »

First of all, everything under the label start should be indented.

And just a guess, but try to call $ mp.save() after $ mp.beat_part_1 = True too.
So that

Code: Select all

$ mp.beat_part_1 = True
$ mp.save() 
$ mp.love_points = 10
$ mp.save() 

User avatar
Chocolat
Newbie
Posts: 6
Joined: Sun Jul 15, 2012 12:20 pm
Contact:

Re: How to make independient game "chapters"? D:

#10 Post by Chocolat »

Sorry for answering too late, i was on holidays and didn't have internet... Anyway, i have changed the game so finally i don't need the chapters, but thanks anyway.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]