I am getting an error on Yanfly's Scan + Bestiary script when trying to to view the States page of a scanned monster. I have included the script (The spoiler and codebox don't seem to be working atm) and I have included the lines of which I am getting this error.
Here are lines 2318-2340 where I am getting the error:
Lines 2318 - 2340
result = [0,1,2,3,4,5,6][rank] if result == 0 draw_icon(YE::MENU::MONSTER::ICON_E_RATE_Z, x, y, true) elsif result == 1 draw_icon(YE::MENU::MONSTER::ICON_E_RATE_A, x, y, true) elsif result == 2 draw_icon(YE::MENU::MONSTER::ICON_E_RATE_B, x, y, true) elsif result == 3 draw_icon(YE::MENU::MONSTER::ICON_E_RATE_C, x, y, true) elsif result == 4 draw_icon(YE::MENU::MONSTER::ICON_E_RATE_D, x, y, true) elsif result == 5 draw_icon(YE::MENU::MONSTER::ICON_E_RATE_E, x, y, true) elsif result == 6 draw_icon(YE::MENU::MONSTER::ICON_E_RATE_F, x, y, true) else draw_icon(YE::MENU::MONSTER::ICON_E_RATE_U, x, y, true) end x += 24 end y += WLH * 2 end end # make elements page
And here is the image
__________________________
Current Project
1. Legends of the Four
Database - 75% Scripting -55% Storyline - SCRAPED (OPEN WORLD) Character Skills - 100% Monster Skills - 60% Item Creation Skills- 45% Everything else - No idea xD