I didn't find an answer to my question anywhere on the internet and I'm slowly starting to get frustrated with the development of my school project. My problem is that every if statement always comes out false when I add "==" to the condition. Sorry that some stuff is written in German but variable names shouldn't really matter. Also, I just began programming with Python/RenPy about two days ago, so I'm a total noob. Help would be greatly appreciated!
Code: Select all
label addieren:
e "Okay! Schreibe jederzeit 'Beenden' um aufzuhören."
label addierenskip:
$ a = renpy.random.randint(0, 10)
$ b = renpy.random.randint(0, 10)
$ del a
$ del b
$ a = renpy.random.randint(0, 10)
$ b = renpy.random.randint(0, 10)
$ summe = (a+b)
$ inputzahl = renpy.input("Was ist [a] + [b]?")
if inputzahl == "Beenden":
e "Verstanden"
jump anfang
if summe == inputzahl:
e "Richtig! +1 Punkt!"
$ score += 1
jump addierenskip
else:
e "Leider falsch."
jump addierenskip