I'm trying to setup a new skill that's only usable only with a bat like monster that absorbs the health, but I'm not really sure how to
go about to setting up the formula to account for defense and what not.[something I'm not used to coming from VX ACE]
Though this would probably apply to all the skills I'll be adding into my game.
I am not sure of what you mean. If you want to add this spell to bat-like monsters then you should only add it to you bat-like enemies. If the skills has to drain life then you can just set it up to be a "HP Drain" skill.
If you want the spell to be used only against bat-like monsters then you should create a new element (you can call it as yo uplease but "not-a-bat" will be fine) and you can set it to 0 when the enemy is not a bat. Once you did this you can set up the formula like this:
(your_formula)*b.elementRate(x)where x is the element ID of your "not-a-bat" element. This way if the enemy is actually not a bat (and its elementRate for the "not-a-bat" element) is 0, the skill won't deal any damage.
Well what kind of damage do you want it to do? And are you saying it should only be used BY the bat monster or AGAINST it (is it casting the spell, or is it the target)? If the bat is the target, what should happen if you use the skill on a different kind of enemy?
well I was trying for a health steal type skill that will damage a character's health and give it to the monster who used it.
But I'm still trying to learn the mechanics of the formula.