You must set the variable 7 value from outside of the page as it's only activated when the variable 7 has a value greater or equal 1.
So if the variable has no value set, the event won't be triggered.
On the first page of the event you set the variable value to the player position and leave it without trigger condition.
On the seccond page of the event you add the conditions to transfer and set the trigger condition as it is on your picture.
Both pages must have parallel trigger.
Can't now, at work... do this:
1. Click the "Copy Event Page" button;
2. On "page 2", in "Contents" delete the first line;
3. Go to "page 1" and uncheck the box "variable" in "Conditions";
4. In "Contents" delete the "If : player x = 1" and "If : player x = 15" lines
Why do you have a condition on this Event (Player X>= 1...)..? What purpose is it supposes to serve..? I've just tried it out, and it works just as you've written it (Test for '0' for the left edge, and (width -1) for the right edge...). It ceases to work if I include that condition. No condition needed, I'd suggest..?
In general, it's often a good idea to try out techniques of this sort on a very simple, empty map (or two...), just to get the hang of things before 'muddying the waters' with the full-blown Maps. Just sayin'; this may be exactly what the OP is doing (I hope so..!).
or use a common event, which is what I would do, to use it in other maps if needed ofc
It all depends on how the player enters the map.
you're welcome, bid you good luck [: