Code: Select all
class Char(object):
def __init__(self, mood, bond, pol, traits):
self.mood = mood
self.bond = bond
self.pol = pol
self.traits = traits
def large_dec(self):
temp_val = renpy.random.randint(4,7)
self.bond -= temp_val
msg.msg("Relationship decreased by [temp_val] points.")
def med_dec(self):
temp_val = renpy.random.randint(2,5)
self.bond -= temp_val
def low_dec(self):
temp_val = renpy.random.randint(1,3)
self.bond -= temp_val
fang = Char(
mood ="Anxious",
bond = 0,
pol = None,
traits = FangJie_traits
)
FangJie_traits = [
"Well-Informed",
"Protestor",
"Righteous",
"Impulsive",
"sensitive"
]
I am also curious if I am implementing my bond manipulation functions correctly. Would there be a more efficient way?
I'm a bit nervous at experimenting code that might break something so I thought to ask here for some python help.