- May 13, 2023
- 35
- 31
Okay, htis is probably gonna be simple and I'll kick myself, but right now for my fertile blessing game, I am creating classes:
class Person():
def __init__(self, character, name, boobsize = 0, sluttiness = 0, obedience = 0, infected = 0, location = 0, affection = 0):
self.c = character
self.name = name
self.boobsize = boobsize
self.sluttiness = sluttiness
self.obedience = obedience
self.infected = infected
self.affection = affection
self.location = location
Now it's working, but what I want, and I'm not certain how to do it is to set up a test at teh beginning of every day. Where if "infection == 1" (or any number over one, since the game will ultimately hae different infection levels), the other stats change.
Okay, good. But I've been searching for a way to make the test global, going through every case, IE, if you have Stacy, wilma, and Eunice, and test them, before applying the change, but I don't want to write a ton of code that checks out every name specifically.
I want a code that will check:
if infection == 1
then (do stuff to the rest of the states)
and do it for every character automatically, so that even if I add sheila later in the game, I don't have to specifically add her to the test routine.
So yeah, I'm pretty certain someone's going to hit me with the dumb stick, but my searches involving wildcards and renpy have come up blank and some of my more normal sources (reddit) are currently not available.
class Person():
def __init__(self, character, name, boobsize = 0, sluttiness = 0, obedience = 0, infected = 0, location = 0, affection = 0):
self.c = character
self.name = name
self.boobsize = boobsize
self.sluttiness = sluttiness
self.obedience = obedience
self.infected = infected
self.affection = affection
self.location = location
Now it's working, but what I want, and I'm not certain how to do it is to set up a test at teh beginning of every day. Where if "infection == 1" (or any number over one, since the game will ultimately hae different infection levels), the other stats change.
Okay, good. But I've been searching for a way to make the test global, going through every case, IE, if you have Stacy, wilma, and Eunice, and test them, before applying the change, but I don't want to write a ton of code that checks out every name specifically.
I want a code that will check:
if infection == 1
then (do stuff to the rest of the states)
and do it for every character automatically, so that even if I add sheila later in the game, I don't have to specifically add her to the test routine.
So yeah, I'm pretty certain someone's going to hit me with the dumb stick, but my searches involving wildcards and renpy have come up blank and some of my more normal sources (reddit) are currently not available.