How to make independient game "chapters"? D:
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.
How to make independient game "chapters"? D:
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 ! ^^
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 ! ^^
Re: How to make independient game "chapters"? D:
Thank you, now the second chapter knows that i played de 1st, but love points are not saved
How can i do that?
How can i do that?
-
- 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:
Something like this should work (ripped off from the wiki example)
Code: Select all
$ mp.love_points = 10
$ mp.save()
Re: How to make independient game "chapters"? D:
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.
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.
-
- 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:
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!
Just saying. I don't know much myself.
Good luck, tho!
Hiatus of hiatuses
-
- 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:
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?
anyway, it should work.
Can you show the code you are using to save and load the multi-persistent data?
Re: How to make independient game "chapters"? D:
I'm using the code I saw on the page...
In the first chapter:
And in the second part:
And it know that i have passed the first part, but not my love points.
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()
Code: Select all
init:
$ mp = MultiPersistent("lsf.org")
label start:
if mp.beat_part_1 = True
#...
-
- 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:
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
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()
Re: How to make independient game "chapters"? D:
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.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]