I know that i can use both <Custom Steal Success Effect> on skills and <After Steal Effect> on items/gear to activate effects when an item is stolen, but is it possible to put a check for whether or not the current skill successfully steals an item on a state?
I'm trying to add accessories that grant a state to the user that adds special effects to successful steals whenever performed, but it would be much more convenient if i could have it be an effect of each of the states themselves instead of making every stealing skill check for each of these states and perform accordingly.
i've tried this, but theft seems to take place before initiate effects as target._stealSet has the stolen items already logged
any decent way to go about this, or would i have better luck having each of the stealing skills check for each steal effect state?
I'm trying to add accessories that grant a state to the user that adds special effects to successful steals whenever performed, but it would be much more convenient if i could have it be an effect of each of the states themselves instead of making every stealing skill check for each of these states and perform accordingly.
i've tried this, but theft seems to take place before initiate effects as target._stealSet has the stolen items already logged
Code:
<Custom initiate Effect>
if (this.isSnatchAction()){
target._stealSet = target._stealableItems;
console.log(target._stealSet);
}
</Custom Initiate Effect>
<Custom Conclude Effect>
if (this.isSnatchAction()){
if (target._stealSet != target._stealableItems){
console.log("Item Stolen");
user.gainHp(500);
user.startDamagepopup();
}
else console.log("Theft Unsuccessful");
}
console.log(target._stealableItems);
delete target._stealSet;
</Custom Conclude Effect>
any decent way to go about this, or would i have better luck having each of the stealing skills check for each steal effect state?