Point Problems (Solved)
Posted: Mon Oct 25, 2010 7:49 pm
Yet another newb question:
In my game, you must win arguements in order to progress. The arguements are based on the point system, but I keep getting this error:
The relevant blocks of code are:
And:
Sorry, I got the wrong sub-forum. My newb-ness got ahead of me. Anyways, would a move be possible?
In my game, you must win arguements in order to progress. The arguements are based on the point system, but I keep getting this error:
Code: Select all
I'm sorry, but an uncaught exception occurred.
NameError: name 'Lilly_Trust_points' is not defined
While running game code:
- script at line 226 of C:\Users\me\Desktop\Love, Lies and Lemons/game/script.rpy
- python at line 226 of C:\Users\me\Desktop\Love, Lies and Lemons/game/script.rpy.
-- Full Traceback ------------------------------------------------------------
File "C:\Users\me\Desktop\renpy-6.11.1\renpy\bootstrap.py", line 254, in bootstrap
File "C:\Users\me\Desktop\renpy-6.11.1\renpy\main.py", line 310, in main
File "C:\Users\me\Desktop\renpy-6.11.1\renpy\main.py", line 93, in run
File "C:\Users\me\Desktop\renpy-6.11.1\renpy\execution.py", line 259, in run
File "C:\Users\me\Desktop\renpy-6.11.1\renpy\ast.py", line 574, in execute
File "C:\Users\me\Desktop\renpy-6.11.1\renpy\python.py", line 957, in py_exec_bytecode
File "C:\Users\me\Desktop\Love, Lies and Lemons/game/script.rpy", line 226, in <module>
NameError: name 'Lilly_Trust_points' is not defined
While running game code:
- script at line 226 of C:\Users\me\Desktop\Love, Lies and Lemons/game/script.rpy
- python at line 226 of C:\Users\me\Desktop\Love, Lies and Lemons/game/script.rpy.
Ren'Py Version: Ren'Py 6.11.1bCode: Select all
label start:
$ run = False
$ Lilly_Approval_points = 0
$ Lilly_Trust_Points = 0
$ mad_science_Points = Code: Select all
show text "You have entered an arguement. You're aim is to gain Lilly's approval by saying the right things. "
menu:
"Aren't we friends?":
$ Lilly_Trust_points += 1
j "Come on. Aren't we friends"
hide l norm
show l sup
l "I suppose."
"Explain":
$ Lilly_Trust_points += 2
j "Can you imagine how I must feel, not knowing where my sister is?"
hide l norm
show l sup
l "I guess your right."
"Threaten Her":
$ Lilly_Trust_points -= 3
j "If you don't, I'll-."
hide l norm
show l wid
l "Glare at me all day?."
if Lilly_Trust_points > 2:
l "Well, I guess I can trust you"
jump expo
if Lilly_Trust_Points < 1 :
l "There is no way I'm telling you anything!"
jump suspend