I just finished editing another map and as I went to do a play test, I got past the title screen and then this error popped up before I could do anything:
Script 'Game_Character 1' line 274: NoMethodError Occured
undefined method '*' for nil:NilClass
I haven't edited that script, or any other script for that matter, and I didn't do anything unusual to the map. I was just placing tiles on layers. I am using some custom tiles though. Don't know if that makes a difference. But does anyone know what could be causing it? Here's the line 274:
return z + $game_map.priorities[@tile_id] * 32
And here's lines 259 to 280:
#--------------------------------------------------------------------------
# * Get Screen Z-Coordinates
# height : character height
#--------------------------------------------------------------------------
def screen_z(height = 0)
# If display flag on closest surface is ON
if @always_on_top
# 999, unconditional
return 999
end
# Get screen coordinates from real coordinates and map display position
z = (@real_y - $game_map.display_y + 3) / 4 + 32
# If tile
if @tile_id > 0
# Add tile priority * 32
return z + $game_map.priorities[@tile_id] * 32
# If character
else
# If height exceeds 32, then add 31
return z + ((height > 32) ? 31 : 0)
end
end
Please help is you can!