5 Replies
Matthew Bibby

Hi Yvonne,

Try this:

  • Create a new number variable and call it Points
  • Add a trigger to the slide that you are showing the alert on and set it up to assign the value of Results.ScorePoints to Points (see attached image) 
  • Make sure this new trigger is executed before the JavaScript trigger
  • Adjust your JavaScript as follows:
var player = GetPlayer();

alert("Points: " + player.GetVar("Points") + "."); 

Let me know if that works.