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.
I'm currently developing a game in Ren'py, and the idea of having certain events for christmas, new year, and halloween appeared.
How can I create an event that triggers only on those dates? I mean, not in game-time, but in real time. Like a special message if you play the game on December 25th or January 1st.
- Eileen-Class Veteran
- Posts: 1442
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love, unknown
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: xavimat
- Location: Italy
Code: Select all
init python: from datetime import datetime label start: $ now = datetime.now() $ now = str(now) $ now = now[5:10] "Today is [now]." if now == "12-25": "Merry Christmas!" elif now == "01-01": "Happy New Year!" else: ":( Neither Christmas nor New Year ..." return