Thread:Jemann/@comment-1264592-20130328112444/@comment-1264592-20130329004843

Stupid suggestion: Forget about Broad Difficulty and the Difficulty Multiplier - those are technical details with no real intrest to most users. What people want to know is at what stats they have high-risk encounters and at what stats they get low-risk enocunters.

This is easy to calculate because Diff.Multiplier/Broad.Diff is the derivative of the Success Percentage function. Now imagine:

Template Challange recieves four numbers: Stat1, %Success1, Stat2, %Success2.

Der.Challange = (%Success1-%Success2)/(Stat1-Stat2)

Template gives expected Stats(X%) for Success Percentages at 10%,20%,30%,40%,50%,60%,70%,80%,90% simply by by deviding the Success Percentage by Der.Challange.

This obviously is only good for challanges that have gradual success increase from stat=0. What to do in Encourage her to marriage and a family? There the function obviously starts at stat=70, which means you need another variable:

Mark.Up = Stat1 - Der.Challange*%Success1

Stat(X%) = X%/Der.Challange + Mark.Up

I think those calculation could be done with Wikia templates alone and don't need any JS (hence the Syrth example above).