Real-Time Ren'py (SOLVED)
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.
- 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)
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.
- 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
Ren'Py is Python. You can pretty much get time and date out from Python.
https://www.tutorialspoint.com/python/p ... e_time.htm
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
- 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
Thank you for the quick reply!
Yay, now I know that it's possible I might have a new project in mind haha.
Yay, now I know that it's possible I might have a new project in mind haha.
Who is online
Users browsing this forum: Google [Bot], Yone28