function ExecuteScript(strId)
{
  switch (strId)
  {
      case "6LXrdpgmHmI":
        Script1();
        break;
  }
}

function Script1()
{
  const correctAnswers = [
'μεγάλη',
'μεγάλου',
'μεγάλω',
'μεγάλην',
'μεγάλε',
'μεγάλα',
'μεγάλων',
'μεγάλοις',
'μεγάλα',
'μεγάλαι',
]



var player = GetPlayer();
let answers = [];
let correct = true;
let correctAnswerCount = 0;
for(let i = 1; i <= correctAnswers.length; i++)
{
    answers.push(player.GetVar(`TextEntry${i}`).trim());

    console.log(correctAnswers[i-1], answers[i-1]);
    if(correctAnswers[i-1] != answers[i-1])
       correct = false;
    else
       correctAnswerCount++;
}
    console.log(answers);
console.log(correct);
console.log(correctAnswerCount);
player.SetVar("correct", correct);
player.SetVar("percentage", Math.round((correctAnswerCount / correctAnswers.length) * 100));
}

