Real-Time Ren'py (SOLVED)

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
AsHLeX
Miko-Class Veteran
Posts: 556
Joined: Wed Dec 25, 2013 1:09 pm
Completed: Starlight Dreamers, Mysterious Melody, Town of Memories, Marked, To Fly, The Change, Him From The Past, A Forgotten Memory
Projects: Cafe Mysteria
Location: Malaysia
Contact:

Real-Time Ren'py (SOLVED)

#1 Post by AsHLeX »

Just wondering, is it possible for Ren'py to take note of real time (e.g. your phone time, or internet time - e.g. Australian Eastern Standard Time) and allow you to program different scenes depending on what time of the day it is? Has anyone tried any modifications to the engine to be able to do this or is a different engine required?
Last edited by AsHLeX on Wed Apr 26, 2017 7:28 am, edited 1 time in total.

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Real-Time Ren'py

#2 Post by Divona »

Ren'Py is Python. You can pretty much get time and date out from Python.

https://www.tutorialspoint.com/python/p ... e_time.htm

Code: Select all

init python:

    import time

label start:

    $ localtime = time.asctime(time.localtime(time.time()))

    "Current time is: [localtime]"

    return
Completed:
Image

User avatar
AsHLeX
Miko-Class Veteran
Posts: 556
Joined: Wed Dec 25, 2013 1:09 pm
Completed: Starlight Dreamers, Mysterious Melody, Town of Memories, Marked, To Fly, The Change, Him From The Past, A Forgotten Memory
Projects: Cafe Mysteria
Location: Malaysia
Contact:

Re: Real-Time Ren'py

#3 Post by AsHLeX »

Thank you for the quick reply! :)
Yay, now I know that it's possible I might have a new project in mind haha.
Image
New demo out 24/12/23!!

Post Reply

Who is online

Users browsing this forum: Google [Bot], Yone28