Hi,
This is strange. I have this at line 193:
print("josh", (self.pos[who])%self.gridx, self.grid[self.pos[who]+1])
and it prints the following:
DEBUG:SCRIPT: josh 3 1
ERROR:SCRIPT: /scripts/level.script:193: attempt to perform arithmetic on a nil value
stack traceback:
/scripts/level.script:193: in function 'gridcheck'
/scripts/level.script:220: in function </scripts/level.script:213>````