Need Stat, Event, and Calender Coding Help

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
pocoscon
Regular
Posts: 159
Joined: Sun Jul 20, 2014 12:14 am
Projects: Black Lotus(Hitatus), Lethal Love,
Contact:

Need Stat, Event, and Calender Coding Help

#1 Post by pocoscon »

So I've been trying to get this by myself for over a year and just can't figure it out. I really want to learn stat coding and calender coding because it's need for one of my games. I've seen many of the questions on here and even looked up things on wiki, but I just don't get. I went here http://lemmasoft.renai.us/forums/viewto ... 51&t=22393, and think this is the best way to begin, but I just don't know how to do it.

I can't figure out how to make events jump back and not repeat for example. Every time I play an event, it just goes tot he next scene. I also have no idea how to do the calender. The coding for that just doesn't make any sense.
Black Lotus(A work in progress)- (BxB,Horror,Thriller,Fantasy) Tells the story of a boy who must save his home and friends from dangerous creatures known as the Tainted. http://lemmasoft.renai.us/forums/viewto ... 43&t=28588


Catching the Sun(A work in progress)- (GxG,Slice of Life,Friendship,Drama)

http://lemmasoft.renai.us/forums/viewto ... 43&t=29404

User avatar
Samu-kun
King of Moé
Posts: 2262
Joined: Mon Sep 03, 2007 3:49 pm
Organization: Love in Space Inc
Location: United States
Contact:

Re: Need Stat and Calender Coding Help

#2 Post by Samu-kun »

Instead of jumping to the label, call the label. Then put return at the end of the story segment.

As for the calender, the code won't look clean, but it can be done with just the stuff in the renpy manual here and here
http://www.renpy.org/doc/html/screens.html
http://www.renpy.org/doc/html/screen_actions.html

For the full treatment, just download my demo and look through the .rpy files on Editra. (The code for the calendar is in calendar.rpy)
https://sekaiproject.com/SunriderAcademyDemo10.zip

User avatar
Samu-kun
King of Moé
Posts: 2262
Joined: Mon Sep 03, 2007 3:49 pm
Organization: Love in Space Inc
Location: United States
Contact:

Re: Need Stat, Event, and Calender Coding Help

#3 Post by Samu-kun »

Nevermind, I forgot the calendar code in the demo was glitched. This is better.
https://gist.github.com/Samu-kun/fbe55ccb4641ed9ec756

User avatar
pocoscon
Regular
Posts: 159
Joined: Sun Jul 20, 2014 12:14 am
Projects: Black Lotus(Hitatus), Lethal Love,
Contact:

Re: Need Stat, Event, and Calender Coding Help

#4 Post by pocoscon »

Samu-kun wrote:Nevermind, I forgot the calendar code in the demo was glitched. This is better.
https://gist.github.com/Samu-kun/fbe55ccb4641ed9ec756
Thank you so much =). I'll look over this will try to teach myself again. I'm really grateful for the help :)
Black Lotus(A work in progress)- (BxB,Horror,Thriller,Fantasy) Tells the story of a boy who must save his home and friends from dangerous creatures known as the Tainted. http://lemmasoft.renai.us/forums/viewto ... 43&t=28588


Catching the Sun(A work in progress)- (GxG,Slice of Life,Friendship,Drama)

http://lemmasoft.renai.us/forums/viewto ... 43&t=29404

Post Reply

Who is online

Users browsing this forum: No registered users