13.17 swapped cycle autoscript for generic discard, improved 'choose one' code