You're unlikely to be able to do this for the reasons mentioned in other recent threads, ie. price manipulation on the front end is unlikely to ever happen. You'd need to set up a discount item, add it on the front end, set the price in the back end with the scriptable cart - and possibly manipulate the front end view the user sees to fake the discount before order submission if you get any anomalies.