Patrefans
Renpytom from patreon
Renpytom patreon

Distance to Start and End

🕑 Added 2019-10-31 22:29:44 +0000 UTC
Distance to Start and End

Comments

KuroOneHalf

Hi Tom. Sorry to necro this, but since the making of this article it seems the code in distance.rpy has stopped working. It throws the following error: KeyError: u'hide_windows' Is it possible you could take a look at it sometime? These functions are quite handy.

Shade Meadows

I remember that VN... something 'bout a Moon and a Ghost?

Winter Wolves Games

cool then will probably update my code to use this new system :)

Renpytom

The difference is important for a multi-path game. Say you have a game that has a main path that consists of 200 say statements, and two endings that ar 100 say statements each. The highest your script will display on a single playthough is 75%. This will display 100% at the end of the game, and 33% when 100 clicks in. (Yours will only display 25%.)

Winter Wolves Games

obviously Percentage is a function I have made to return the percentage :P

Winter Wolves Games

interesting, I was using something similar already in my games, not sure how/if is different from what you're doing? The code is: $script_total=renpy.count_dialogue_blocks() $script_seen=renpy.count_seen_dialogue_blocks() $script_new=renpy.count_newly_seen_dialogue_blocks() $playing_time=renpy.get_game_runtime() hbox xcenter .5 yalign .98 xfill True: text "{color=#F92}%s{/color} effective playtime" % PlayTime(playing_time) text "{color=#F92}%d%%{/color} new script seen this session" % Percentage(script_new,script_total) text "{color=#F92}%d%%{/color} of total game script seen" % Percentage(script_seen,script_total) --


More Creators