set an event to flip a switch to the ON position (switches work in on and off, default is off)
then set the precondition for another event or page of an event to be switch X(the one you turned on) to be on
local switches only work within the event they are switched on regular switches are the entire game