Adding timestamps

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
Quilford
Regular
Posts: 37
Joined: Sun Dec 26, 2010 2:59 am
Contact:

Adding timestamps

#1 Post by Quilford »

I'm trying to achieve a chatroom-like effect in my game. Using NVL mode it's not hard to replicate the effect, but I'd love to be able to have a column for timestamps, which I could define for each line of dialogue.

Think the top line here, but with an additional column on the far right (just like "Sylvie"'s column) with a timestamp in it:

http://www.renpy.org/w/images/c/c3/nvl-looks.jpg

Code Monkey
Regular
Posts: 88
Joined: Tue Apr 03, 2012 9:17 am
Projects: Dandelion
Organization: Cheritz
Location: Seoul, South Korea
Contact:

Re: Adding timestamps

#2 Post by Code Monkey »

You can use the datetime python module to make timestamps.

Code: Select all

python:
    import datetime
    timestamp = datetime.datetime.now()

Post Reply

Who is online

Users browsing this forum: No registered users