Search found 2 matches
- Sat Jan 30, 2021 7:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to change the path to the GUI?
- Replies: 3
- Views: 630
Re: How to change the path to the GUI?
You also need to change the directory in the files: gui.rpy, options.rpy and screens.rpy
- Fri Jan 29, 2021 7:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]One Class : differents ways to init attributes
- Replies: 4
- Views: 328
Re: One Class : differents ways to init attributes
You can simply use the if statement, like:
Code: Select all
class Characters(object):
def __init__(self, id, name, strength):
self.id = id
self.name = name
if (char == hero):
self.strength = random()
else:
self.strength = strength