Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Boba Fett Link on September 26, 2011, 06:34:11 pm

Title: BABS Item Error [RESOLVED]
Post by: Boba Fett Link on September 26, 2011, 06:34:11 pm
Hey, after I select a party member when useing an item through hotkeys, I get this error.

Script 'BABS 3' line 581: NoMethodError occured.

undefined method 'item_number' for #<Game_Player:0x4264b98>

(BABS 3 is the third BABS script)

I am just using the default potion item and I didn't change anything about it in the config (although I checked there to see if there was a problem).

Any ideas?
Title: Re: BABS Item Error
Post by: Boba Fett Link on October 05, 2011, 05:13:56 pm
Bump?
Title: Re: BABS Item Error
Post by: winkio on October 06, 2011, 09:38:29 am
The line in question accesses $game_party.item_number, and the error you posted references a Game_Player object.  This has nothing to do with BlizzABS, but is caused by a mistake in your eventing or a mistake in another script.
Title: Re: BABS Item Error
Post by: Blizzard on October 06, 2011, 10:53:34 am
It should say "$game_party.item_number" and not "$game_player.item_number" in that line. That's an old bug. IDK if winkio fixed it or if he released a version where it's fixed.
Title: Re: BABS Item Error
Post by: Boba Fett Link on October 06, 2011, 07:23:46 pm
Okay. Just redownloaded BABS and replaced script 3 and it works.
Title: Re: BABS Item Error [RESOLVED]
Post by: Blizzard on October 07, 2011, 02:26:00 am
I think winkio re-released 2.84 with the fix. Or I did.