YEP_PartySystem. (script check, lock member)

● ARCHIVED · READ-ONLY
Started by Johan 1 posts View original ↗
  1. Hey there!

    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:
    Game_Party.prototype.lockActor = function(actorId, value)
    value = true or false. Did add this line btw.
    But that din't work well;
    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) };
    }