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
bumpity bump bump bump
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.
Actually, its line 348, my bad
if !@blue_prints.include?(prints) and prints < @recipes.size - 1
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.
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