Call external value into Storyline; export score to same text file

Need to call several external variables from a text file, then insert into a Storyline certificate, then export the final score to the same file.

Anyone do this before?   I'm happy to help write up the instructions, but I'm not sure how to do this.  I tried the tutorial here ( ), but I could not get this script ( to work:

var fso = new ActiveXObject("Scripting.FileSystemObject");
 var s = fso.OpenTextFile("C:\Users\First_Last\Documents\TIPS\Test.txt", 8, true, 0);
 var player = GetPlayer();
 var name = player.GetVar("TextEntry");
 var email = player.GetVar("TextEntry1");
 s.WriteLine("Email: " + email);
 s.WriteLine("Name: " + name);

2 Replies
Kawstov FLIP

Hi Aunt Bee,

I have worked on these area. There are 2 different steps:

1. Push Data from SL to external txt file.

Possible -


2. Push data from external file to SL 

Possible - 

But right now due to my limited knowledge of coding, from HTML to SL only.

If we can get some PHP/ Javascript code to read the data from file to HTML, our work may be done.

But due to work load not able to search that.



BJ Campbell

Thanks, Kawstov.  I'm working on a few possible solutions. I'll take a look. 

Whatever I end up with, I'll post the code and a sample here.  I see that I'm not the only person looking for an answer to this requirement.

I found other good links as well, including: