Thanks Mazi,, here's what I did with the sample survey:
1) Created 2 assessment rules to display different messages depending on the total. (0-1 = poor, 2-3 = good)
2) In the source of the assessment text, wrapped {TOTAL} in a span with a class that we can access with Javascript:
<span class="assessTotal">{TOTAL}</span>
3) In the source of the assessment text, inserted an empty span that we can load with Javascript:
<span class="assessPercent"> </span>
4) So the complete assessment text looks like:
You did great, you got <span class="assessTotal">{TOTAL}</span> points out of a possible 3. This gives you a score of <span class="assessPercent"> </span>%.
5) Added the following script to the source of the survey end message. The script grabs the contents of the .assessTotal span, converts it to a percentage and inserts that into the .assessPercent span. Modify the totalPossible as necessary (line 4).
<script type="text/javascript" charset="utf-8">
// EDIT HERE - Maximum possible points
var totalPossible = 3;
// Get the value of {TOTAL}
var assessTotal = $('.assessTotal').text();
// Convert it to a percentage
var assessPercent = (($('.assessTotal').text()/totalPossible)*100).toFixed();
// Load the .assessPercent span
$('.assessPercent').text(assessPercent);
</script>
Here's the modified survey.