Jet's "Skill Set Self" Script Error

I just started using this program yesterday, and have been using the tutorial from here. I've followed every step in it and I am currently on Part 7. When I tried to battletest, it gives me this error.

Script 'Skills Self Effect' line 37: NoMethodError occurred.
undefined method '[]' for nil:NilClass

I found this post when trying to fix it, which leads to this post. I inserted the line but I'm still getting the same error. I can't find any other solution anywhere, and am hoping someone here knows what to do so I can continue working through this tutorial.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


All I can assume is that you didn't put the line in the correct place, or that you have that script in your game more than once. You also need to save in the editor after making a script change. If you are just using battle test, that doesn't happen automatically.
I was trying to find this post to delete it, because right after I posted it the program stopped responding and when I launched it again everything worked fine, so you can go ahead and delete this. It was in the correct place and only there once, so I don't know why it wasn't working at first. However, like I said, it fixed itself so you can remove this post.

Original thread: https://forums.rpgmakerweb.com/threads/jets-skill-set-self-script-error.44524/