The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: skyrune83 on February 18, 2011, 05:03:26 AM

Title: Items are not being consumed, do not display updated stats instantly
Post by: skyrune83 on February 18, 2011, 05:03:26 AM
I'm having an issue with consumable items, and I'm pretty sure it must be due to a script that got messed up.

I have consumable items, like potions and stat-up items.  I'm in the menu outside of battle.  When I use the stat-up item, it acts as if the item can't be used on the player, and plays the "Buzzer" sound.  But if I cancel out to the main menu, the player's stats indeed were increased, even though no items were consumed. 

What section(s) in the scripts can I look at to troubleshoot this?  I tried removing my custom scripts, but still no good, so there must be a typo/logic error somewhere in the default scripts.
Title: Re: Items are not being consumed, do not display updated stats instantly
Post by: Pokey on February 18, 2011, 10:14:49 AM
Could you maybe post a snippet of your items page?
Title: Re: Items are not being consumed, do not display updated stats instantly
Post by: ForeverZero on February 18, 2011, 05:12:29 PM
Check for a script that alters the "item_effect" method in Game_Battler, which will likely be a custom CMS (if using) or a CBS or battle add-on.
Title: Re: Items are not being consumed, do not display updated stats instantly
Post by: skyrune83 on February 19, 2011, 01:20:18 AM
Quote from: ForeverZero on February 18, 2011, 05:12:29 PM
Check for a script that alters the "item_effect" method in Game_Battler, which will likely be a custom CMS (if using) or a CBS or battle add-on.
Yeah, that did it.  I realized I forgot to try removing this one custom script...

..and, um, it was your "Add-On Collection by ForeverZer0" Version: v.2.8   :P
I'm guessing something in the Chemist Class was affecting it?  But I have @CHEMIST_ABILITY = false, so shouldn't that code section not run?
Title: Re: Items are not being consumed, do not display updated stats instantly
Post by: ForeverZero on February 21, 2011, 02:37:19 AM
It might be a bug with the script I overlooked, I'll look into it, but you can delete that script for now, it won't have any adverse affects.