Code: Select all
menu:
"Work on creativity":
$ Creativity.increase(1)
"Work on authority":
$ Authority.increase(1)
"Work on hacking" if [Hacking.enabled]:
$ Hacking.increase(1)
"[Hacking.enabled] is the current hacking state"
And it's not a string "False" either.
It's been set here:
Code: Select all
init python:
class Skill(object):
def __init__(self, name="Skill_naming_error", enabled = True, start = 0, maximum = 100, minimum = 0):
self.name = name
self.value = start
self.max = maximum
self.min = minimum
self.enabled = enabled
Creativity = Skill("creativity")
Authority = Skill("authority")
Hacking = Skill("hacking", False)
I think something goes wrong between renpy/python interaction?