Help with Yanfly's skill restrictions (VX Ace)

I installed her script but every time someone has a skill equipped that has limited uses, cooldowns or warm-ups the game crashes as soon as the battle starts. It says the issue is with the line:

skill = $data_skills[skill] if !skill.is_a?(RPG::Skill)

and I get the error message "no implicit conversion from nil to integer". Any idea as to why this is happening?

EDIT: listed the wrong script, corrected the title
This happens when code expects a parameter to be a valid number usable as index (here only if it doesn't already refer directly to a skill), but it's just nothing instead.

I have no idea what that script is or what you have to do for setting up stuff for it, but if there is something set into database-note-boxes, be sure you absolutely have no typos in there.

~炬燵あ
This happens when code expects a parameter to be a valid number usable as index (here only if it doesn't already refer directly to a skill), but it's just nothing instead.

I have no idea what that script is or what you have to do for setting up stuff for it, but if there is something set into database-note-boxes, be sure you absolutely have no typos in there.

~炬燵あ
Thanks for the explanation of the error message! There are no typos in the database, I copied the lines straight from the page for the script: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/
It doesn't seem like you're meant to edit the script itself, only use the Notes box, so I'm very confused. Could this be a conflict with another script?
Now that I know what script it is I can test.
It is not Yanfly Limited Skill Uses script
So putting Yanfly Skill Restrictions into a test project shows that limited uses works perfectly fine.

Please tell us what scripts you have in your project to know if there is an incompatibility.

You can also test by putting that script at the bottom of your script list.

And yes limited uses only needs the note tag in the skill note box.
Now that I know what script it is I can test.
It is not Yanfly Limited Skill Uses script
So putting Yanfly Skill Restrictions into a test project shows that limited uses works perfectly fine.

Please tell us what scripts you have in your project to know if there is an incompatibility.

You can also test by putting that script at the bottom of your script list.

And yes limited uses only needs the note tag in the skill note box.
My other scripts are:
I have added all those in and the skill setting is still working.
1717003312910.png
1717003388366.png

1717003366433.png
I have added all those in and the skill setting is still working.
View attachment 306754View attachment 306756
View attachment 306755
I'm not sure what the issue is then. I tried making a new game with the same mods as well and it worked fine. But every time I try to use it in my original project it crashes, even when I don't put anything in the Notes.
Then rebuild your game from the new project and make backups every so often.
Then rebuild your game from the new project and make backups every so often.
Will do! Thanks for your help!
This thread is closed due to being reported as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanflys-skill-restrictions-vx-ace.169082/