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

Back to Reference

setLocState Function

Sets the state of a specific location.

Syntax
setLocState('location'.split(','), newState);
Parameters

location
The location whose state is to be set.
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 the setCurLocState function to change the state of the current location.

Example

if(sectionChosen == 1)
  setLocState("April,1".split(','), "DONE");
else
  setLocState("April,0".split(','), "DONE");


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