Thread:BentLauridsenDK/@comment-26692787-20161118174043/@comment-26828130-20161118210450

Just a thought....

With just the cost template, add parameter disc= Parameters:
 * e - Exchange
 * s - Sam
 * a - Alan
 * c - Cornelius
 * no or unregistered parameter - #default=1, amount x 1 stays the same (no discount)

On top of all code: {{#vardefine:DISC_COST|{{#switch:{{lc:{{#sub:{{{disc}}}|0|1}} }}|e=0.8|s=0.9|a=0.9|c=0.75|#default=1}} For the costs: {{#if:{{{gems|}}}|{{#vardefine:cost|{{#var:cost}}{{gems|{{decimals|{{{gems}}}*{{#var:DISC_COST}}|0}}}}©}} {{#vardefine:count|{{#expr:{{#var:count}}+1}}}}|}}

Thoughts?