forked from Cavemanon/SnootGame
add basic utility for debugging game variables
This commit is contained in:
23
game/utility.rpy
Normal file
23
game/utility.rpy
Normal 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
|
Reference in New Issue
Block a user