JPG-BUILTINS
There are a lot of really powerful built-in methods in JavaScript which should be used when possible instead of trying to reproduce what they do in JavaScript. Usually these builtin methods provide access to the same routines that the mud itself uses.
For example, while it would be possible to write an autoformatter entirely in JavaScript, using the "autoformat()" method on JavaScript Strings is orders of magnitude faster because the builtin autoformat() is highly optimized and written in C++.
Other examples of powerful built-in functions are "findPath()", "find()", and so on.
If you find yourself needing to something very complex and you feel that a new builtin could be added to handle it better please request a new builtin to be made! We would much rather introduce new builtins than force builders to have to jump through a lot of hoops to manually implement a really complicated algorithm.
Last edited by Winterstar in May 2004.