What
@A-Moonless-Night said is correct so what I am writing doesn't change the fact that what has been said is correct. What I want to suggest is a way to avoid using 2 variables and a switch to trigger your event.
You can create the event with 3 pages:
Page 1: Parallel process
Page 2: Autorun, when Self Switch 'A' is ON
Page 3: Action Button, when Self Switch 'B' is ON (or any other self switch, read below)
In page 1 you can use the "Script" command and type this:
if ($game_player.x == number) #you can add more conditions here
$game_self_switches[[@map_id, @event_id, 'A']] = true
end
#number is the coordinate of your line.
Of course you can use $game_player.y instead of $game_player.x if you need a horizontal line instead of a vertical one.
In page 2 you can write your event as you please and then activate another switch (for example self switch 'B') to activate your event page 3 which is blank. If you don't want page 3 to be bank then change it to fit your needs.
Feel free to use the one you like the most.