row switching skill

Hello, I wanted to make a skill, that, if you are in row one, sends you to row three and the other way around.


I am using the row formation plug in.


my text looks like this:

Spoiler
<Custom User Row>


if (row= 1) {


row = 3


} else {


row = 1;


}


</Custom User Row>
Code:
 [FONT=arial]for me, it doesn't work.

I reallyhope,someone can help me.[/FONT]
You're missing one '=' sign in your condition, it should be like this:


<Custom User Row>
if (row == 1) {
row = 3
} else {
row = 1;
}
</Custom User Row>


A single = is only used for assignment ("set variable row to 1"), == is used for checks ("is variable row 1?").
Thank you very much, it works now. 😀

Original thread: https://forums.rpgmakerweb.com/threads/row-switching-skill.73060/