Excited-state intermolecular proton transfer dependent on the substitution pattern of anthracene-diurea compounds involved in fluorescent ON1-OFF-ON2 response by the addition of acetate ions.