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.
Suddenly, some character definitions aren't working in my game for no reason at all. Does anyone have any idea what could cause this? At the top of my code, I have this:
When I run this, I get an error saying that "sayer kantrell is not a function or string". It's apparently fine with marie, but kantrell it can't cope with. I can see no logical reason why it would do this. Ideas please?
Edited to put in the correct inline code tags.
Last edited by RewindTheGame on Tue Jan 12, 2021 5:05 pm, edited 2 times in total.
c tags are for single line code, if you want to show a code block you have to use code and /code tags.
As for your question, the code you presented seems fine, but you perhaps have another variable somewhere with the same name, or accidentally overwrite it?
That's the only reason I can think that error would show up. For example: