RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Script issue

Started by BloodyChaos, July 05, 2013, 04:19:26 PM

0 Members and 1 Guest are viewing this topic.

BloodyChaos

I am trying to use this skill Tree script http://forums.rpgmakerweb.com/index.php?/topic/13212-lune-skill-tree/ in the demo it works perfect but after i plugged it into my game i get this error message; Script 'Skill Tree' line 457: NoMethodError occured. undefined method 'size' for nil:NilClass
any ideas for fixing this, i have no other skill related scripts installed

LoganF

The line in question


for i in 0...@table.size


In an earlier line, just a few up, is where @table is assigned a value


@table = Skill_Tree::Actor[a]


The error occurs because @table is nil, meaning that Skill_Tree::Actor[a] is returning nil, likely because whoever actor 'a' is, hasn't been given a skill tree, even if that actor 'a' isn't going to get one.

Make sure that you have a Skill Tree set up and defined, or at least an empty table where you don't want one for that character, so that @table has a value (even if it contains nothing relevant).

You can do this by adding an empty array for each actor you have in your game:


Actor[1] = []
Actor[2] = []
Actor[3] = []
# and so on


Thus, when the @table variable is being assigned to, it will be given the value @table = []. Then, at line 457, it will be interpreted as:


for i in 0...0 #where 0 is @table.size


Bear in mind, that I have no idea how this script works, and that my suggestion is based on a cursory glance at what I can see as being relevant. It may or may not work. Give it a try, and let me know how it goes.
(Why do I always feel like it's the end of the world and I'm the last man standing?)

BloodyChaos

That worked perfect thank you, but now I hit a new problem, It might be a compatibility problem with my battle system but I am using this battle script, http://www.rpgmakervxace.net/topic/4337-rmvxa-tankentai-v100-update-fully-functioning-english-version-installation-instructions/ and here is my error I get whenever an enemy attacks without a skill, Script 'Skill Tree' line 1185: NoMethodError occurred. undefined method 'Skkill_mult' for NilClass.

&&&&&&&&&&&&&

Well, here's your problem.

Quote from: BloodyChaos on July 08, 2013, 05:26:53 PM
http://www.rpgmakervxace.net/topic/4337-rmvxa-tankentai-v100-update-fully-functioning-english-version-installation-instructions/


You spelled Hentai wrong.
&&&&&&&&&&&&&&&&

BloodyChaos