Quote:
|
Originally Posted by jake13jake
I would have put it there if I had known that loading from a text file was specifically a gscript2 issue.
|
It is, indeed.
I was looking through the wiki, and I think what you might be looking for is:
variable.loadlines("filename");
Graal doesn't work on my computer right now, but if memory serves me, it should be something like:
HTML Code:
--levels/test.txt--
Testing 123
Abcdefgh
PHP Code:
this.test.loadlines("levels/test.txt");
echo("Line 1: " @ this.test[0]);
echo("Line 2: " @ this.test[1]);
Should output:
HTML Code:
Line 1: Testing 123
Line 2: Abcdefgh
(Someone please correct me if I'm wrong)