setScoreValue FunctionSets the value associated with a specific score value. SyntaxsetScoreValue(valType, amt); Parameters
ReturnsThere is no return value. RemarksUse this function to use TQS's built-in scoring functionalities in your custom location types. The offsetScoreValue is well-suited for increasing a particular score value by a given amount. Example
numTried++;
setScoreValue(0, numTried);
if(correctAnswer)
{
numCorrect++;
setScoreValue(1, numCorrect);
} else
{
numWrong++;
setScoreValue(2, numWrong);
} |
