Hi Calvin,
You can use API.save directly in your tasks (time/ quest). Just define a variable and save it with API.save. For example:
var chosenTargets = {domTarget: global.dominantCat, nondomTarget: global.nonDominantCat, criterion: global.foundPair};
API.save(chosenTargets);
-
- In this example, the names of the variables that will be logged are domTarget, nondomTarget, and criterion. They will appear in the explicit file under the task name in which they were saved (in my case, 'rate1'):
I don't think you can log variables with text files (.jst), but maybe I'm wrong.
In your example you defined raceset as a global variable, so I think that you need to use get.global() when you save it, like this: API.getGlobal().raceset.
Best,
Mayan