Okay, I must be doing something wrong here. I just tried to do the Enemy Thieves thing with my Steal Item (partially to see if it was successfully working and partially because I'm trying to still do the "Enemies Steal Weapons thing") skill. At first I copy pasted the code exactly as you put it in the video. That got me this. I tried again, adding in numbers to any paratheses I found. Same result when the Slime went up to perform the Pilfer action.After Eval>
if (user.isEnemy(1)) {
var successRate = 0.5;
if (Math.random(1) < successRate) {
var items = [1];
var total = $gameParty.items(1).length;
for (var i = 0; i < total; ++i) {
var item = $gameParty.items(1);
if (item.itypeId !== 2) items.push(item);
}
var random = Math.floor(Math.random() * items.length);
var item = items[random];
$gameParty.loseItem(item, 1);
var text = user.name(1) + ' stole ' + item.name + ' from the party!';
SoundManager.playEquip(1);
} else {
var text = user.name(1) + ' failed to steal an item!';
SoundManager.playBuzzer(1);
}
var window = SceneManager._scene._logWindow;
window._lines.push(text + '<CENTER>');
window.refresh(1);
}
</After Eval>
Does anybody know what I'm doing wrong?<Steal Item>
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
move user: targets, front, 20
motion standby: user
wait for movement
face user: target
action animation: target
move user: targets, base, 10
motion thrust: user, no weapon
wait: 15
action effect
jump user: 50, 10
move user: targets, front, 10
face user: forward
wait: 60
</target action>
