So, let's say, I have two classes that can use a dagger: Thief & Ninja.
What I want to do is change it so that the Ninja's default attack hits harder against enemies with poison.
What would be the easiest way to achieve this?
It's possible to use a condition in the basic attack's formula to specify that if the user's class is a particular class id and if the target's current condition is the id of the poison state then it should use an alternative damage formula.
However, keeping the damage formula that everyone else uses and adding in a conditional and a second damage formula could exceed the character limit in the formula box. That's when we use the script editor to overcome this limitation.
I'll leave actually providing a formula to someone more skillful with it, however I will say that there's a couple of threads that discuss the damage formula in the tutorials subforum.
Hmm. I am still confused by its usage.
For instance, I added this in my notebox of my class <Attack_Id skill_146>
But my attack still uses the default formula damage. What went wrong there?
EDIT: Never mind. I shouldn't use the skill_ at all, huh? Fixed it. That's so silly.