removing "(word)" in line 50 kinda fixes it but then every slot shows only the last word on my list (refer 2 screenshot)
im a total amateur with renpy so idk anything about complex stuff so would appreciate whatever help i can get XD
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 15, in script call
call socialgame
File "game/socialgame.rpy", line 31, in script
python:
File "game/socialgame.rpy", line 49, in <module>
word = random.choice(wordlist)
IndexError: list index out of range
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 15, in script call
call socialgame
File "game/socialgame.rpy", line 31, in script
python:
File "renpy/ast.py", line 923, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2235, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/socialgame.rpy", line 49, in <module>
word = random.choice(wordlist)
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/random.py", line 277, in choice
File "renpy/python.py", line 992, in __getitem__
rv = list.__getitem__(self, index)
IndexError: list index out of range
Windows-10-10.0.19041
Ren'Py 7.4.8.1895
Only You 1.0
Fri Aug 13 19:59:10 2021
Code: Select all
#File format: word,ePoint,jPoint,rPoint
#Etona's words
pretty,1,0,0
flower,2,0,1
bubbles,1,0,0
happy,2,0,1
cute,1,0,0
lazy,1,0,0
pleasant,2,0,1
cookie,1,0,0
#Jamison's words
running,0,1,0
surgery,0,1,0
alone,1,2,0
depression,1,2,0
boring,0,2,0
mistake,0,1,0
careless,0,1,0
medicine,0,2,1
control,2,0,0
#Roomba's words
friendship,1,0,2
joy,1,0,2
love,1,0,2
coffee,0,1,2
relationship,0,1,2
money,0,0,1
shop,0,0,1
good,1,0,2