add basic utility for debugging game variables

This commit is contained in:
Bowie 2021-06-19 14:36:02 +01:00
parent f7c785b5b1
commit b86cac340b
1 changed files with 23 additions and 0 deletions

23
game/utility.rpy Normal file
View File

@ -0,0 +1,23 @@
## Utility functions for game setup, debugging etc.
init python:
def init_stats(anon=0, fang=0, trad=False):
global anonscore
global fangscore
global tradwife
print(anonscore, fangscore, tradwife)
anonscore = anon
fangscore = fang
tradwife = trad
print(anonscore, fangscore, tradwife)
label initstats(anon=0, fang=0, trad=False):
# Sets various game-related global variables
# :param int anon: Anon's score
# :param int fang: Fang's score
# :param bool trad: Tradwife ending flag
$ anonscore = anon
$ fangscore = fang
$ tradwife = trad
return