it seems work, but when i try to call a screen that shows "You have [Player.statusTruth] Truth points" "You have [Player.statusLie] Lie points " to show the points, renpy give me this, how i use this method here?
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 1472, in script
call screen aff_screen
File "renpy/common/000statements.rpy", line 471, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "game/script.rpy", line 1462, in execute
screen aff_screen:
File "game/script.rpy", line 1462, in execute
screen aff_screen:
File "game/script.rpy", line 1463, in execute
frame:
File "game/script.rpy", line 1464, in execute
has vbox
File "game/script.rpy", line 1465, in execute
text "You have [Player.statusTruth] Truth points"
AttributeError: type object 'Player' has no attribute 'statusTruth'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 1472, in script
call screen aff_screen
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\ast.py", line 1706, in execute
self.call("execute")
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\ast.py", line 1724, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\statements.py", line 145, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 471, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\exports.py", line 2526, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\ui.py", line 285, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\display\core.py", line 2538, in interact
scene_lists.replace_transient()
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\display\core.py", line 822, in replace_transient
self.remove(layer, tag)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\display\core.py", line 1107, in remove
self.hide_or_replace(layer, remove_index, "hide")
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\display\core.py", line 1031, in hide_or_replace
d = oldsle.displayable._hide(now - st, now - at, prefix)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\display\screen.py", line 443, in _hide
self.update()
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\display\screen.py", line 578, in update
self.screen.function(**self.scope)
File "game/script.rpy", line 1462, in execute
screen aff_screen:
File "game/script.rpy", line 1462, in execute
screen aff_screen:
File "game/script.rpy", line 1463, in execute
frame:
File "game/script.rpy", line 1464, in execute
has vbox
File "game/script.rpy", line 1465, in execute
text "You have [Player.statusTruth] Truth points"
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\text\text.py", line 1328, in __init__
self.set_text(text, scope, substitute)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\text\text.py", line 1426, in set_text
i, did_sub = renpy.substitutions.substitute(i, scope, substitute)
File "D:\Documentos\Games\renpy-6.99.1-sdk\renpy\substitutions.py", line 232, in substitute
s = formatter.vformat(s, (), kwargs)
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 563, in vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 585, in _vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 652, in get_field
AttributeError: type object 'Player' has no attribute 'statusTruth'
Windows-7-6.1.7601-SP1
Ren'Py 6.99.12.4.2187
A Tale of Truths and Lies Demo 1.5