function ExecuteScript(strId)
{
  switch (strId)
  {
      case "69GJjrEvltm":
        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());

    if(correctAnswers[i-1] != answers[i-1])
       correct = false;
    else
       correctAnswerCount++;
}

player.SetVar("correct", correct);
player.SetVar("percentage", Math.round((correctAnswerCount / correctAnswers.length) * 100));
}

