[SOLVED]Display on text dialogue
Posted: Mon Nov 18, 2019 10:05 am
Hello everyone.
I had my code from my playtime, aka the time of playing which is Imperf3kt's code for me.
What i want is.. it worked well, but i want it to display in dialogue like..
Anyone can help would be great and thanks, or.. tell me that i did right about what i want to happen.
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]
Code: Select all
m "You played [playtime] to finish the game."