Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
#THIS FINALLY WORKS... Make sure the class is within a -1 python block?! This makes no sense. What a nightmare. Shoot me now.
define people32 = [
aPerson("Bob", 34),
aPerson("Zoe", 53),
]
init -1 python:
class aPerson():
def __init__ (self, str_name, str_age):
self.s_name = str_name
self.age = str_age
Last edited by henvu50 on Sat Jun 12, 2021 9:07 am, edited 2 times in total.
#THIS FINALLY WORKS... Make sure the class is within a -10 python block?! This makes no sense. What a nightmare. Shoot me now.
define people32 = [
aPerson("Bob", 34),
aPerson("Zoe", 53),
]
init -10 python:
class aPerson():
def __init__ (self, str_name, str_age):
self.s_name = str_name
self.age = str_age
Last edited by henvu50 on Sat Jun 12, 2021 7:13 am, edited 1 time in total.