Line 1034 in my mouse script is an end statement. This means you've edited the script in some way. The line you're quoting (if it's the one I've found) is 7 lines higher than 1034 in my script, which means somewhere, you've lost 7 lines. If those were just blank lines, it's not a problem, but it might be worth taking a fresh copy of the script and replacing the one in your game, just in case.
What's happened here is that Victor has overwritten the item_rect method for his Window_MateriaEquip class and made it use two values instead of just one. So it's the mouse script calling the materia script that's the problem, not the other way around.
If you add the following in a new script slot below the mouse script, it MIGHT solve the problem (I'm not familiar with Victor's script and I'm not going to test it - this is just the change I would try if I ran into the problem myself):
Code:
class Window_MateriaEquip < Window_Selectable
#--------------------------------------------------------------------------
# * Mouse Movement Processing
#--------------------------------------------------------------------------
def process_mouse_handling
return unless $mouse.enabled? && cursor_movable?
# Add a delay to prevent too-fast scrolling
@delay = @delay ? @delay + 1 : 0
return if @delay % 3 > 0
mx, my = *Mouse.position
vx = self.viewport ? self.x - self.viewport.ox + self.viewport.rect.x : self.x
vy = self.viewport ? self.y - self.viewport.oy + self.viewport.rect.y : self.y
if mx.between?(vx, vx + self.width) &&
my.between?(vy, vy + self.height)
mx -= vx
mx -= padding
my -= vy
my -= padding
my += oy
for i in 0 ... item_max
rect = item_rect(i, @equip)
if mx.between?(rect.x, rect.x + rect.width) &&
my.between?(rect.y, rect.y + rect.height)
last_index = @index
select(i)
if @index != last_index
Sound.play_cursor
end
break
end
end
end
end
end
That's exactly the same as the script you have, but I've passed in the second parameter. You can't just change your script, as the mod should only apply to Victor's window, and not all Window_Selectable classes.