The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: DarkMessiah on August 09, 2010, 12:21:00 AM

Title: [XP]Mr. Wiggles alchemy script help
Post by: DarkMessiah on August 09, 2010, 12:21:00 AM
Greetings RMRK-ers
I am having a tad bit of trouble with Mr. Wiggles' alchemy script. I went in and made all the arrangments, Made sure everything was good, and looked through the alchemy scripts thread to make sure the question hadn't already been answered.
Basically, on my test map, when I have the player obtain the blue print, I get this error:
Script "Alchemy" line 346: NoMethodError occured
undefined method 'size' for nil:NilClass
The size was set to 1, so i changed it to 2, to no avail
Help is appreciated
Title: Re: [XP]Mr. Wiggles alchemy script help
Post by: DarkMessiah on August 10, 2010, 10:45:54 PM
bumpity bump bump bump
Title: Re: [XP]Mr. Wiggles alchemy script help
Post by: Sashikinaroji on August 11, 2010, 01:07:31 AM
you gave plenty of information, but, just in case your line 346 isn't the same as ours (sometimes, that happens) it would be a good idea to post it.
Title: Re: [XP]Mr. Wiggles alchemy script help
Post by: DarkMessiah on August 11, 2010, 01:49:00 AM
Actually, its line 348, my bad
    if !@blue_prints.include?(prints) and prints < @recipes.size - 1
Title: Re: [XP]Mr. Wiggles alchemy script help
Post by: Sashikinaroji on August 11, 2010, 02:45:35 AM
hrm... Strange... According to Wiggle's script, line 348 is def initialize... Which means you deleted either some of the script (which, if it was followed by a pound symbol, it is inconsequential), you are mistaken, or you have

now, I see nothing wrong with that section of your code... but I have yet to test it...

Hrm... When I test, I get an entirely unrelated error... Sorry, I don't know what it all means... but, I did try... but you prolly don't care bout that. You want results, as you should.
Title: Re: [XP]Mr. Wiggles alchemy script help
Post by: DarkMessiah on August 11, 2010, 09:14:17 PM
Actually, to tell the truth, it was line 346, however it still didnt work, so i tried to erm...delete it....and that made another problem so i just repasted that certain section and all it did was switch lines, and it was still effed up. The system works, I just cant add blueprints. Im considering just deleting the whole thing and starting it over, I only had 2 recipes down. Thanks for trying Sash
Deleted and added the script again. no success