Just a few condition questions

So i am trying to make a church event like dragon quest series and i have made such a huuuge event until now, and it is a pain tho....first of all i want to know if there is any way to check if party member id is dead and not if actor id is dead.The reason i want this is because if i change an actor, for example put actor id 7 in party instead of 4, if i try to revive him, i will not be able because i have set to check only 1 2 3 and 4 id's. So basically i want a way to check the party number id and not the actor number id.For example if i change the 4rth one in the party and make him 1st this character's id will be 1 and not 4 as i set him before becaues his actor id is 4.


2nd i want a conditional branch that checks if party member has any kind of state, i prefer to be checking the following only: (poison, blind, confusion, sleep, paralysis, stun) and if the chosen party member has any of these states, show a text and continue the event proccess and if not, show an another text and then quit.
I don't remember how to check party member states via events off the top of my head.
I know a script call within a conditional branch would be a lot easier though.

$game_party.leader
$game_party.leader.state?(State_ID)
$game_party.members[Position]
$game_party.members[Position].state?(State_ID)

Where Position is the party member's position starting from 0.

$game_party.members[1].state?(2) Check if the second party member has state 2.
$game_party.members[2].states.any? {|state| [2, 3, 4, 5].include?(state.id)} Check if the third party member has state 2, 3, 4, or 5.
thanks but how can i cure a state with these events? how can i add a script call that cures a state of a specific party member number instead of using change state command that uses actor id's? Also how can i use Recover all command via script to recover the party member number than actor id' number?
Alright. I opened up my editor. Is this what you're trying to do?
Spoiler
dq_event00.PNG

Just set a variable to the party member's actor id. It's the Game Data operand in your variable settings.

If you want to check for a specific state, you can use:
$game_actors[$game_variables[ID]].state?(state_id) in a conditional branch after you've selected the party member.

Edit:

Here's a better example:
Spoiler
dq_event01.PNG
Man my event is about up to 200 lines....can you answer me what i asked pls? i want to do it in my way. Also , can you explain me why when im trying to use these events from above as a common parallel proccess event it shows me an error?


EDIT: Ok i think i understand now. I didnt knew that you can use a variable to specify actors number in party.....so i was looking for a script. Ill try it and answer you as soon as possible
Here's a big list script calls.
https://forums.rpgmakerweb.com/index.php?threads/script-call-collection-for-vxace.25759/
Can you explain me why when i try to use for example $game_party.members[0].state?(1) on parallel procces by a common event it shows me an error? im using it inside a branch like you said in your 1st post
What does the error message say exactly?
Script Game_Interpreter line 450: NoMethodError occured.
undefined method state? for nil:NilClass
well?
Sorry something came up (read my status).
I'll be back later.
I just want when a party member is dead to become last and his/her graphic to be changed to coffin....I have achieve this until now, but i want the conditional branch that says if actor 1 is dead to be changed as if party member position 0 is dead so, like this you can change your party members easily without any problem or any need of more than 4 conditional branches for each character...

Also if i change that the add actor and remove actor commands have to be changed too as remove party member 0 and add party member 0
The way you did it, or: $game_party.leader.dead? or $game_party.members[0].dead? are all correct in checking if member 0, the leader, has the death state. If you're removing actors from your party during a parallel process, that's probably how you got the error. I can't say for sure. If you provide screenshots of your event(s), I and others can resolve this with greater ease.

As for removing and adding actors from your party via script call:
$game_party.add_actor(actor_id)
$game_party.add_actor($game_party.members[0].id)

$game_party.remove_actor(actor_id)
$game_party.remove_actor($game_party.members[0].id)

Not sure if that was on the script call list...
It was and i tried it but since i have this problem i cant try it tho

Basiccaly i had try it with normal command events those with actor id and seemed to work right...but i dont want with actor id's as i mentioned before
Here take a look in this: I keep taking that error.....i dont know what am i doing wrong....

It makes no sense because on the other church event, it worked
What can i do?
Double-post notice: RpG LoVeR

There are several things in that common event where things could go wrong
1) please name the event - you have several unnamed common events, and that means it will be difficult for you to tell which event is called from which other event or skill
2) place a testing "show text" at the beginning, above the first conditional branch - just to see if that common event is even started, it can be removed again later
3) please give a screenshot of the event or skill that calls this common event - especially if it isn't started the problem is likely there and not inside the common event
1) the empty names you see are empty common events too.....all my common events have names
2)when i try to play my game and i hit new game it shows me the error i mentioned before,so i know that the event doesnt even starting....
3)I have set a parrallel proccess event that is calling common event 3 (the common event in the screenshot above)
so i suppose, there is not any problem there
1) the empty names you see are empty common events too.....all my common events have names
Your screenshot proves that wrong, because that event you made the screenshot of is unnamed. We can't say if the other unnamed CEs are empty, but this unnamed event definately is not empty and you better check the others as well in case you forgot that somewhere else as well.

2)when i try to play my game and i hit new game it shows me the error i mentioned before,so i know that the event doesnt even starting....
But then you don't even know if this common event is the one that causes the error, because nothing in that error message (at least as you typed it) points specifically to this common event.
Please follow the link to "how to use a script" in my signature to the bughunting section of it. Install the backtracer script linked and described there and post a screenshot of the console output you get with that error, that will give us more info on what really happens

And please add the show text as well - if this event is the one causing the problem, then the show text will appear before the error - if not the error comes from somewhere else.

3)I have set a parrallel proccess event that is calling common event 3 (the common event in the screenshot above)
so i suppose, there is not any problem there
That is probably the worst assumption you can ever make - parallel processes handled in the wrong way are the most common causes for problems, usually timing or lag problems, but those could cause problems like this as well.
So your answer 3 basically proofs that I was right to check this option, please provide a screenshot so that we can check if the parallel process is done correctly.
I will post a screenshot of the parallel procces event that calls this common event as soon as i can.....also i will rename it to "If characters are dead" event as I beleive that this name fits....and finally i will add the show text command and send you via screenshot the result

Original thread: https://forums.rpgmakerweb.com/threads/just-a-few-condition-questions.78199/