I wonder how to check if specific Actor has state id 1 and then do the action?
I'm trying to lock Actor "if" that member is dead, and have to wait until the next day.
Did find 2 different posts;
post1, post2
But that are for different thing, trying to modifer code1 and add YEP prototype;
Code:
But that din't work well;Game_Party.prototype.lockActor = function(actorId, value)
value = true or false. Did add this line btw.Code:
for (id=1; id < $gameParty.members.length; id++){
if ($gameActors.actor(id).isBattleMember() && $gameActors.actor(id).isStateAffected(1) == true) {Game_Party.prototype.lockActor(id, true) };
}