Scripts are NEVER placed inside the engine scripts, they always go below the "materials"-heading at the bottom end of the script list.
It could not have functioned when added where your screenshot shows, and by removing it you most probably removed something that was needed by the game_action script of the engine.
To repair this, first make a new project, go to the script editor there and copy the entire game_action script from there.
Then go into your project and replace the entire content of the game_action slot there with the intact one you copied from the new project.
Hopefully that will make your project functional again - if not, then there have been other changes as well, and you need to hunt down every part where you changed the default scripts.
After you have your game running, go to the materials section (to the point where it says "insert here"), press insert key to make a new script slot and copy the weapon skill script into that new slot. Name the slot (bottom left) and check if you have to configure part of the script (read it's instructions).
EDIT:
And from the look of the scroll buttons in your screenshot, you not only placed the script in the wrong place, that script is also incomplete - you need to copy the entire script into the slot below materials, not only the few lines shown in the screenshot
Alright, thanks a ton. I'll try that and hopefully it works.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
If you haven't done anything else with scripts, you could also just start a new project, save and close, then copy the entire Scripts.rvdata2 file from the new one to the old one. Don't do that if you've added lots of other scripts though, as it'll replace the lot.