Hi, I'm working on a skill that has different effects.
It's a special skill, that can cause different status, like instant death or lowering stats.
But I'm struggling with giving it different elements, and adding a chance of a luck lowering effect.
How exactly is the skill supposed to work? You can achieve a lot of things with just formulae, but in order to write a fitting formula we have to know how the skill works in details.
Let me see if I got it right, you want to strike the foes with not a single but a multiple elemental damage? Would it be a single hit attack? Or a multiple hit one?
I mean, foe A gets hit by thunder-fire-wind at once or first wind hits it followed by thunder and later finished it with fire? That foe gotta feel like some Camelot's fried chicken by then. XD
When someone asks "Is it A or is it B?" answering "well kinda yes" is less helpful than it might be.
Just for the sake of clarity, is this what you want?
A skill which detects what the enemy's weakness is and then only uses that element in its attack.
If that is so, I hope you don't have lots of elements, because this could get very complicated.
For each element, create a passive state, unnamed and without an icon so that the player does not know it exists.
You give each enemy which has an elemental weakness the appropriate passive state in the database.
Your skill then has to detect which (if any) passive state the target has before applying the appropriate attack.
This is the point where it gets complicated, because you are going to have to do a quite extensive snippet, as clearly the check and damage is far too long for the damage formula box.
When I did this, I only had a skill which checked for one element and that was a bit tricky to work out. A fire skill did X if the state was present and Y if it was not. A water skill did Z if the state was present and Y if it was not.
In all probability if you want a multiple check, you might be better asking for a script.
I think it might be better to Report your opening post and ask for it to be moved to Script Requests. I don't see a way of achieving something of that complexity without one.