Script that makes skills require equipped item to use?

I'm new to the forums, as well as RPG maker, and if I'm using this in the wrong forum, then I apologize.

On to the topic. In my current project, some classes have the ability to use throwing weaponry (knives, bombs, etc.). I already have it set up as a separate equipment slot, and my goal is to make certain skills that

not only require a throwing weapon to be equipped, but also calculate damage based on that item equipped. I don't want the character's current weapon equip to affect the damage, I want the skill to solely calculate damage based on the throwing weapon equip.

I tried creating a new equip slot named "Thrown", using two scripts that I found from the wiki. I also created throwing weapons in the armor section and then added <equip type: 5> to the notes to make them equip to the "Thrown" equip slot, but when I tried making skills I found out that they only had weapon type requirements, not any other equip type.

This is where the script comes in. I have absolutely 0 knowledge of scripting, and I know it isn't magic, so if this isn't possible then that's fine. I can just work around it. If it is possible, or even is really easy to do, or doesn't require a script and I'm just missing something in the editor, then please let me know.

Also, if there is a script out there that does this, or even half of it, I would greatly appreciate if you linked it. Thanks!
there are skill cost script (which can be used to "consume" items, even equipped items to use the skill


there are skill condition scripts that can be used to make other conditions than only the weapon condition.


the damage of a skill is always defined in the damage formula - if you don't base it on the actor parameters but want some other basic, simply change the formula to whatever you want.


If you need help with this, you need to give us more info on what you want and what other scripts you're using, especially which of the equip manager scripts is in your game - because there are several equip managers and several skill condition scripts, and not everything is compatible with everything else.
I'm using Formar0153's custom equipment slot script and Yanfly's Ace equip engine.

The skill condition scripts sound like what I need, I'll just make a formula for the damage output. Do you have any specific links for the script(s) or is there a section for scripts like these?
There's this script, that uses formulas as note-tags.


customuseconditions1.jpg



http://himeworks.wordpress.com/2013/11/26/custom-use-conditions/


The damage is something you can do with damage formulas.
This script looked like what I needed, so I put in the script and tested it out. When going into battle I went to my skill tab to cast the skill that I had set to require that I had equipped a certain item, the game crashed and I got this error message:

[IMG]http://puu.sh/6aLLq.png[/IMG]
There was a typo in the uploaded script, which I had addressed, but forgot to copy over from RM.


See if it works now.
Works perfectly, thanks!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/script-that-makes-skills-require-equipped-item-to-use.21940/