Quick question on eval

I knew I was going to have to deal with this particular (presumably simple) plugin thing eventually, though I was hoping my Javascript lessons would have covered this by then so I didn't have to ask. Looks like that's not how the timing went. :LZYsmile:

YEP Row Formation says this:

"For those with JavaScript proficiency, you can make use of some of these
newly added functions when you do an eval check for the battler info:

...

$gameParty.updateRows();
$gameTroop.updateRows();

This is a special command. This will check each row in the party. If a row
is empty and/or doesn't have any alive members, all the remaining members
behind that row will move forward one row until all the empty rows are gone."

So, uneducated question here, but how do I do an "eval check" to make that thing happen? I tried entering it as a script in an troop event (Condition: Turn 0, Span: Turn), but I don't believe it worked. After the front row went down, the other party members were still listed in the Row command as being where I put them in rows 2 and 3, and they didn't move on the screen.

Thanks for any help!
"eval" is the function that executes javascript code given to it by strings. All script commands and several other places like the damage formula use this to process script code.

your problem is the condition you set on your troop event.
"Turn 0" means that the troop event will only be executed before battle and then never again because the condition "turn 0" will never be met later - and of course on turn 0 no battler is down at all.
You need to change the condition into one that gets executed every turn.
Thanks!

I switched it to Turn End, and it seems to be working now. I thought I had already tried that, but apparently I hadn't.

Original thread: https://forums.rpgmakerweb.com/threads/quick-question-on-eval.106455/