Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-11-2005, 08:34 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Yen
PHP Code:
object.loadvars(path); 
members.loadvars("levels/blah/something.txt");

--CONTENTS OF SOMETHING.TXT--
stuff=3
arf=8
hello="Hi there!"
omg=Yellow,Blue,Red

members.stuff would be 3
members.arf would be 8
members.hellow would be 'Hi there!'
members.omg would be an array containing 'Yellow,' 'Blue,' and 'Red.'

You can get the list of variables it loaded with object.getstringkeys("members");
I don't recall if you need a . after members or not. :/
There's a way to load textfiles without blah=blah in it too, I just can't remember off the top of my head how to do it

This post should have been in the GScript2 sub-forum, though.
__________________


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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.