TQS Home
Trivia Quiz Shell Version 2.8 Now Available!Bot Productions Home
TQS 2.5

Back to Reference

setCurLocState Function

Sets the state of the current location.

Syntax
setCurLocState(newState);
Parameters

newState
The new state for the location. Can be one of the following values:
"EMPTY"
The location has not been visited.
"PARTIAL"
The location has been visited but not completed.
"DONE"
The location has been completed.
"DONE100"
The location has been completed with a score of 100%.
Returns

There is no return value.

Remarks

Use this function when the user has completed your custom location.

Example

if(numWrong == 0)
  setCurLocState("DONE100");
else
  setCurLocState("DONE");

©2020 Bot Productions. All rights reserved.Last Updated: September 9, 2007