Page 1 of 1

[SOLVED]Display on text dialogue

Posted: Mon Nov 18, 2019 10:05 am
by isobellesophia
Hello everyone.

I had my code from my playtime, aka the time of playing which is Imperf3kt's code for me.

Code: Select all

init python:
    import time

## game runtime counter
default playtime = 0

init 2 python:

    def save_playtime(d):
        renpy.store.playtime += renpy.get_game_runtime()
        renpy.clear_game_runtime()
        d["playtime"] = renpy.store.playtime

    config.save_json_callbacks = [save_playtime]
What i want is.. it worked well, but i want it to display in dialogue like..

Code: Select all

m "You played [playtime] to finish the game."
Anyone can help would be great and thanks, or.. tell me that i did right about what i want to happen.

Re: Display on text dialogue

Posted: Tue Nov 19, 2019 7:21 am
by isobellesophia
Oh nvm, i already knew how. Mrked as solved.