View Single Post
  #6  
Old 12-11-2005, 08:45 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote