NoMethodError

Before reading :


I'm using Falcao's Pearl Action Battle System


https://falcaorgss.wordpress.com/2012/12/02/falcao-pearl-abs-liquid-v1/


So the problem I'm having is that every time my character collides with a monster (another actor), the test run immediately crashes and an error popped up saying


Line 180 NoMethodError occurred undefined method `tool_data' for nil; nil class


And Line 180 redirects to this picture below


I got no idea what it does, but I do think that it has something to do with the Action Battle System, somewhere. Any idea what the problem might be ?
Tech-support is for getting the editors to run, not for help with scripts.


I've moved this thread to Script support. Please be sure to post your threads in the correct forum next time. Thank you.



That said, those errors are usually the result of an incompatible savefile or two incompatible scripts - have you started a new game on the titlescreen after installing falcao's script?


I suggest you follow the link "how to use a script" in my signature and check out if you did everything correct, and if that doesn't solve the problem give us a screenshot of the backtracer's console output.
tool_data is a method for items/skills/weapons/armors/actors/enemies/states.


This means that the code tried to call that method on a non-existing database object (on one of the above mentioned types).


Check if your enemies only use existing database objects in their movement routes (that's where you set up what tools they use).


For example, if your database has 25 skills set up (the maximum skill amount is set to 25), but an enemy tries to use skill 26, you will get that error.


Or if you use an enemy ID in your event names which is not set up in the database, you will get that error too.


For example, you use <enemy: 44> in the event name, but you only have 30 enemies set up in your database, the error pops up.


In short, it is a database error or an incorrect note-tag/event name/script call usage (depends from where we look at it).
Your error message should also have provided the name of the script.


I also don't see a picture in your first post.

Original thread: https://forums.rpgmakerweb.com/threads/nomethoderror.72766/