I'm getting this now:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/skill.rpy", line 175, in script
python:
File "game/skill.rpy", line 176, in python
test.Specials(pointy)
AttributeError: Battle instance has no attribute 'Specials'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Games\Dev\renpy\renpy\execution.py", line 261, in run
File "C:\Games\Dev\renpy\renpy\ast.py", line 630, in execute
File "C:\Games\Dev\renpy\renpy\python.py", line 978, in py_exec_bytecode
File "game/skill.rpy", line 176, in <module>
AttributeError: Battle instance has no attribute 'Specials'
Windows-post2008Server-6.1.7601-SP1
Ren'Py 6.13.7.1646
Code: Select all
Specials = ([pointy(), doom(), seedy(), healing(), gambler(), mustard(), sparrow(), shadows()])
Then it throws this at me:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 12, in script
python:
File "game/script.rpy", line 22, in python
test = Battle(phi, [Rat("Obligatory Rat"), Rat("Test Rat")])
File "game/enviroment.rpy", line 28, in python
Specials = ([pointy(), doom(), seedy(), healing(), gambler(), mustard(), sparrow(), shadows()])
NameError: global name 'pointy' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Games\Dev\renpy\renpy\execution.py", line 261, in run
File "C:\Games\Dev\renpy\renpy\ast.py", line 630, in execute
File "C:\Games\Dev\renpy\renpy\python.py", line 978, in py_exec_bytecode
File "game/script.rpy", line 22, in <module>
File "game/enviroment.rpy", line 28, in __init__
NameError: global name 'pointy' is not defined
Windows-post2008Server-6.1.7601-SP1
Ren'Py 6.13.7.1646
Code: Select all
nit python:
class Skills(Battle):
#... other stuff
def pointy():
renpy.call_screen("targetChoice")
if swNov:
Enemy.life_temp -= 10
elif swApp:
Enemy.life_temp -= 15
elif swJo:
Enemy.life_temp -= 25
elif swEx:
Enemy.life_temp -= 50
elif swMa:
Enemy.life_temp -= 75
else:
Enemy.life_temp -= 100
# swNov, swApp, swJo, swEx, swMa and that last one are flags set up in the script.rpy file.
Code: Select all
label stabby:
python:
test.Specials(pointy)
So, can anyone tell me what's going wrong?