offsetScoreValue FunctionIncreases or decreases the value associated with a specific score value by a certain amount. SyntaxoffsetScoreValue(valType, delta); Parameters
ReturnsThere is no return value. RemarksUse this function to use TQS's built-in scoring functionalities in your custom location types. The setScoreValue function is used for setting a particular score value to a specific number. ExampleoffsetScoreValue(0, 1); if(correctAnswer) offsetScoreValue(1, 1); else offsetScoreValue(2, 1); |