YEP_PartySystem. (script check, lock member)

Johan

Villager
Member
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;
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) };
}
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top