RPG Maker Forums

Hello there.

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:
 value *= user.pha if item.is_a?(RPG::Item)
When running out of anything else

Game_Battler Line 705, NoMethodError occurred

undefined method 'tp' for nil:NilClass



Code:
 user.tp += item.tp_gain * user.tcr
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?

I'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.

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,587
Latest member
Usagiis
Top