Switching between ligand-to-ligand charge-transfer, intraligand charge-transfer, and metal-to-ligand charge-transfer excited states in platinum(II) terpyridyl acetylide complexes induced by pH change and metal ions.