How can i make ren'py to recognize the date on a PC?

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
Byleyg
Newbie
Posts: 11
Joined: Mon Aug 06, 2018 2:38 pm
Contact:

How can i make ren'py to recognize the date on a PC?

#1 Post by Byleyg »

I want to make Ren'Py to do some things depending on the date, for example if its christmas. Also if its possible to recognize the local time on the clock.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: How can i make ren'py to recognize the date on a PC?

#2 Post by Per K Grok »

Byleyg wrote: Sun Oct 21, 2018 3:51 pm I want to make Ren'Py to do some things depending on the date, for example if its christmas. Also if its possible to recognize the local time on the clock.

Look up the python datetime modul.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: How can i make ren'py to recognize the date on a PC?

#3 Post by Donmai »

Look here for an example:
viewtopic.php?f=8&t=37939&p=410599
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: No registered users