Hello! I'm making a Final Fantasy game with the Sideview script (With out the ATB bar) and I keep getting this error.

Now I think it's got to do with SBS battler Configration because I changed it so that enimes will have difrent attack animations.
So Iv been messing with the script
__________________________________________________________________________
when 17 # Enemy ID
return 498 # Weapon ID
when 18 # Enemy ID
return 497 # Weapon ID
when 19 # Enemy ID
return 498 # Weapon ID
when 20 # Enemy ID
return 499 # Weapon ID
when 21 # Enemy ID
return 490 # Weapon ID
when 23 # Enemy ID
return 502 # Weapon ID
when 24 # Enemy ID
return 490 # Weapon ID
end
# Default weapon for all unassigned Enemy IDs.
return 0
end
__________________________________________________________________________
It was gong fine untill I had trouble with Enemy 23 and 24