I know....when i tried to set normal conditional branches with actor ids command without script that specifies the party member (not actor id) it didnt show any error at all but it happened that you said...so basically i think that the multiple branches with the script gameparty member check state one after another or "nested" the one inside the other is making the error....because i tried multiple gameparty check state scripts in another event that seems to work perfectly but they have a distance of another events in the middle and there is none of them "nested"....
So basically 1) we have to fix this error or we have to make different common events for each character....
2)we have to find a way so the add gameparty member command to add the specific person that has been removed before
Okay, forget what you have currently: what are you actually trying to do?
Im trying that when a party member NOT ACTOR is dead to change its graphic to coffin and become last in the gameparty
I think it would be much better to take a step back and explain what you want to do instead of how you want to do it.
Completely ignore all ideas of scripts or event commands, and describe what the player should see or do as a result.
Then we can check if there isn't a better way to do this - because I don't see why you would even add or remove actors, that doesn't make any sense in the context.
EDIT:
ninja'd
Then don't add or remove - change the actor sprite and then swap the actor with the last position - that is a different script command.
Yes, it simply loops through every party member. If they're dead and their character graphic isn't the coffin, it changes it to the coffin and puts them to the end of the party. If they're not dead and their character graphic is the coffin, it resets it to what it was before.
Ok thanks man i appriciate your help...just a last thing i want to know is, how should I use this script? should I put it under materials or call a common event that does this script?
Parallel process common event. All you have to do is turn on the associated switch and it'll do the rest.
just remember that parallel processes don't work during battlescreen - if you want this to work in battlescreen, it has to be placed in the troop events.
It wouldn't do anything in battle anyway as it only affects the on-map character graphic.
So..yeah seems to work perfectly!! Thanks a lot man! but one more thing that would be making it perfect is, to disable in any dead actor with the coffin graphic the opportunity to become first in party because, if you have a coffin leading the party, it may be weird dont you agree?
Thanks that's quite handy but...can you better make it for the player to be unable to formation the dead character 1st?
Not with an event. You'd have to make a plugin that changes the way the formation command works.
how can i specify only when a party member not actor is dead, to lock the formation to him with this script?