Having a rather weird crash. Whenever I use an item from the main menu everything's fine. That is until I am down to the last of that item, and then I get a crash. If the item is not consumable, everything works out fine, but if I run out of any item, the game crashes. And depending on the item I get a different error. It's annoying because the crashes are in Game_Battler and not locating a problem with any of the external scripts I'm using. This error doesn't occur when I run out of a certain item during battle.
When running out of potions/ethers
Game_Battler Line 568, NoMethodError occurred
undefined method 'pha' for nil:NilClass
Code:
When running out of anything else value *= user.pha if item.is_a?(RPG::Item)Game_Battler Line 705, NoMethodError occurred
undefined method 'tp' for nil:NilClass
Code:
Don't know if there is something wrong or it's one of my scripts, though I'm pretty sure it's the latter. I was wondering if there's a quick fix for this error? user.tp += item.tp_gain * user.tcrI'm going to try pinpoint the script that's causing this error the long and hard way so that figuring this out will be more easy.
EDIT: Just figured out that the script(s) causing this error are one of Victor's Action Series scripts. The VE - Action Restriction one specifically.