From b86cac340badced276a3ee20596bf7ce9626181b Mon Sep 17 00:00:00 2001 From: Bowie Date: Sat, 19 Jun 2021 14:36:02 +0100 Subject: [PATCH] add basic utility for debugging game variables --- game/utility.rpy | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 game/utility.rpy diff --git a/game/utility.rpy b/game/utility.rpy new file mode 100644 index 0000000..b877213 --- /dev/null +++ b/game/utility.rpy @@ -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