How to use Script editor for tiered discount

From what I see in the examples for the script editor app, there’s a tab for creating a script template for line items, which apply to individual items in the cart.