The goal that the player has no right changes itself is the command /trigger. It can only work if it's turned on by an enable command; after pressing, it turns off again. This is how menus and buttons in chat are done.