JPG-ACT
Don't use the JavaScript Character act() method if there are alternatives. For example:
say( 'hi' );
is much faster (and easier to read) than:
act( 'say hi' );
Similarly,
talk( actor, 'hello' );
is faster than:
act( 'talk', actor, 'hello' );
and so on. If you find you need to heavily use act() because no other builtins are available, please put in a request to the administrators.
act() is slower than other built-ins because it actually has to run through the command parser. act() has to look up the command, check access to it, check positions, check to see if it's been disabled, and so on. Using the built-ins like "say()" bypasses all this processing.
Last edited by Winterstar in May 2004.