How could I make an ability that transfers only
the states belonging to a category from the user to the target.
the states belonging to a category from the user to the target.
I would have done it without problem but the original link for downloading it is dead
<After Eval>
transferStates = [];
for (i = 0; i < user.states().length; i++) {
if (user.states()[i].category.contains('AILMENT')){
transferStates.push(user.states()[i].id)
target.addState(transferStates[i]);
user.removeState(transferStates[i]);
}
}
</After Eval>
Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-to-make-a-skil-to-tranfer-certain-states.130879/