I'm using Yanfly's Skill Core to play with some of my skills and one of the things I want to do is get them to have different hit rates based on the value of a variable. I've been trying to do it like this, but it doesn't seem to be affecting the actual success rate. I have a feeling my script call is wrong... but I'm not real sure. Am I on the right track?
<Before Eval>
if (v[0001] <= 999) {
rate = ((v[0001] - 799) / 5 + 50) / 100;
}
if (v[0001] == 1000) {
rate = 1;
}
</Before Eval>
If it helps, I tested adding some messages inside the curly braces to make sure the conditional branches are working, and those are.
<Before Eval>
if (v[0001] <= 999) {
rate = ((v[0001] - 799) / 5 + 50) / 100;
}
if (v[0001] == 1000) {
rate = 1;
}
</Before Eval>
If it helps, I tested adding some messages inside the curly braces to make sure the conditional branches are working, and those are.