- Joined
- Feb 23, 2017
- Messages
- 14
- Reaction score
- 2
- First Language
- Swedish
- Primarily Uses
- RMMV
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;
But that din't work well;
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.
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) };
}
Last edited:
