Ok I know this requires knowledge at the skill core plugin of yanfly, I still hope some people are accustomed to it. So I want to make a "steal" command, for this there in an requirement for getting to "stealing" to work. Your own agility has to be higher than the one of the monster.
After that a common event will be activated where further actions happen. One of the tem of course is a fork condition which asks if you meet the requirments to steal.
And this is where my problem is. no matter what I do even if I put: $gameSwitches.setValue(255,true); right at the beginning of the evalution, nothing happens... WTF!?
I used a similiar evulation on another skill but on this it worked perfectly. So I really don't know what's wrong with my script here. I looks like the <Before Eval> tag just never happens. I've tried to solve it for 3 hours straight last night, but I just couldn't the mistake here.
The monster I test has DEFINITELY a lower agility and I DEFINITELY ask for the switch 255 in common event 49.
<target action> and <finish action> work. <Before Eval> seemingly not and <formula effect> doesn't work either. D:
So yeah would be thankful for some expert analysis here. D:
After that a common event will be activated where further actions happen. One of the tem of course is a fork condition which asks if you meet the requirments to steal.
And this is where my problem is. no matter what I do even if I put: $gameSwitches.setValue(255,true); right at the beginning of the evalution, nothing happens... WTF!?
I used a similiar evulation on another skill but on this it worked perfectly. So I really don't know what's wrong with my script here. I looks like the <Before Eval> tag just never happens. I've tried to solve it for 3 hours straight last night, but I just couldn't the mistake here.
The monster I test has DEFINITELY a lower agility and I DEFINITELY ask for the switch 255 in common event 49.
<target action> and <finish action> work. <Before Eval> seemingly not and <formula effect> doesn't work either. D:
So yeah would be thankful for some expert analysis here. D:
Code:
<target action>
wait: 30
move user: target, FRONT BASE, 30, offset x +10
wait: 30
clear battle log
wait: 10
move user: POINT, 660, 300, 30
wait 1
move user: forward, 40, 2
wait: 10
move user: backward 40, 2
wait: 4
se: Wind4, 100, 50
move user: HOME, 40
wait: 20
FACE target: FORWARD
show battle hud
wait: 20
</target action>
<Before Eval>
var x = 100 * $gameVariables.value(225);
x /= 100;
var numTest = x * (a.agi - b.agi);
if (numTest >= 0)
{
$gameVariables.setValue(211, b.index());
$gameSwitches.setValue(255,true);
}
</Before Eval>
<finish action>
common event: 49
</finish action>
<formula effect>
$gameVariables.setValue(12, b.enemyId());
</formula effect>