mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-24 18:48:55 +01:00
add basic utility for debugging game variables
This commit is contained in:
parent
f7c785b5b1
commit
b86cac340b
1 changed files with 23 additions and 0 deletions
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
|
Loading…
Reference in a new issue