View Single Post
  #13  
Old 03-20-2005, 11:15 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by coreys
in GS2, the commands aren't so much different.
Basically it's the same thing only everything is in function format(which is good because that will make scripts run smoother and faster). For example:
hide;
is now
hide();

something like:
tokenize #c;
is now
tokenize(#c);

there are differences with setplayer prop and setcharprop though:
setplayerprop #c,bla;
would now be
player.chat=bla;
or
player.#c=bla; (if I'm not mistaken)
Thats not quite correct, tokenize would be:
stringname.tokenize();
The delimiters (or whatever they're called) would be the function parameters.
For example:
player.chat.tokenize(",");

And for the other thing, it would be:
#c = "bla";

Anytime you're entering text directly into a script you need to use quotes :o or else it will identify what you type as the name of a var/string.

player.chat = "Blah"; would return: Blah
whereas:
player.chat = Blah; would return: 0

The new engine makes using addstring,removestring, and stuff like that useless, since you can just use, stringname.add(params), etc.
__________________
Reply With Quote