runtime error: list index out of bounds
proc name: Shift Down (/mob/verb/Shift_Down)
source file: main.dm,249
usr: Goku72 (/mob)
src: Goku72 (/mob)
call stack:
That's the only gear having problems when I downshift. I have no idea why, here's my downshift code...
Shift_Down()
if(!usr.gear.len)
return 0
else
if((usr.currentgear%usr.gear.len)-1)
usr.currentgear=(usr.currentgear%usr.gear.len)-1
usr<<"<b>You shift to [usr.gear[usr.currentgear]]</b>"
return usr.currentgear
else
return 0
usr.currentgear must be getting set to a bad value...to figure out what is happening, put in some debugging checks on the value...if it's less than 1 or larger than currentgear.len, report what it is without trying to do the downshift. (The ASSERT() proc is helpful for this sort of thing.)