I've been trying to make this sort of chatbot type of project, and due to being a total newbie at this game development stuff, I've ran into quite a bit of problems, this being the one stumping me the most, which is this "RuntimeError" apparently.
Here's my code:
Code: Select all
define c = Character("Nell")
define p = Character('[p]')
define prns = ('[q]')
define persistent.intros = 0
label start:
$_game_menu_screen = None
if persistent.intros:
jump chatbase
show nell
c "Hey there."
c "My name is Nell, it's very nice to meet you."
c "I'd love to get to know you, what's your name?"
$ p = renpy.input("What is your name?").strip()
c "Your name is [p]?"
c "May I ask what pronouns you use?"
$ q = renpy.input("What pronouns do you use?").strip()
c "Thank you, I'll use [q] from now on."
c "If you want me to use other pronouns for you, please let me know."
$ persistent.intros = 1
label chatbase:
c "Hello, [p]!"
Code: Select all
While running game code:
File "game/script.rpy", line 41, in script
c "Hello, [p]!"
RuntimeError: maximum recursion depth exceeded while calling a Python object
I've tried looking everywhere on the internet for help but everything I've found is tutorials for Python, which (due to my massive lack of knowledge in code) I can't really use here.
Any tips? Thanks