MV What's wrong with this script? Check event's direction

1622969520861.png


The event's direction is 6, but this still gets triggered somehow :x
the conditional branch script option requires an answer that is true or false. Since your code does not compare anything, the result will always be true.

other question: what do you try to do here? perhaps we can tell you a better way.
1622970651697.png

Solved 😀
Thread closed

Just FYI, the reason the other script call didn't work is because you can't pass an argument into the direction() function. It returns the direction, so you have to compare it to a number. The following would also have worked:

$gameMap.event(1).direction === 2

Original thread: https://forums.rpgmakerweb.com/threads/whats-wrong-with-this-script-check-events-direction.137204/