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 used to work perfectly but I don't know where the heck I touched in the code that now the 'done' function is not working. Every time I execute that function, for instance "qlist.done(q1)", it gives me an error saying 'RevertableList' object is not callable. However, when I execute directly "qlist.quest.remove(q1)", it works as a charm and the "q1" object is removed from the list "qlist.quests". Why could this be? Why my function isn't working anymore?
Do you see the problem now? You are redefining done member in init method. In Python methods are member objects like everything else. You can do anything with them, including overwriting them.
Do you see the problem now? You are redefining done member in init method. In Python methods are member objects like everything else. You can do anything with them, including overwriting them.
You're absolutely right. What I've done is mix two classes unintentionally. Fixed it by creating a done list outside the class. Thank you!