Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Set default script template

Hiro Yamamoto
Registered User
Join date: 1 May 2003
Posts: 44
03-15-2004 16:42
When you right click and select "New Script" it pops up a new script named New Script containing a simple default script. However the coding conventions in this script don't match alot of people's preferances regrading placement of braces etc.

What would be nice is if you could write a script template and put it in a special folder, or maybe set with a configuration option that New Script would contain your default template, written the way you like it.
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
03-15-2004 17:50
Wow, I was thinking about this exact same thing last night. "What, Catherine had an idea and didn't immediately post to the forums?" Quiet, you.

The way I see it as working would be to add a dropdown menu to the script editor, to allow us to select scripts placed in our inventory under /Scripts/Templates. Obviously, they wouldn't actually open the template files themselves, but would instead copy and paste the contents. Of course, this is what I do anyway, it just requires a couple mor keystrokes.

It'd be handy for all you insane K&R style brace fanatics and your
CODE

if (foo) {
bar;
}

wackiness. *shudder*

:)
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Xylor Baysklef
Scripting Addict
Join date: 4 May 2003
Posts: 109
03-15-2004 18:11
Heh, I stopped using the "New Script" button the first day of SL ^_~. I use a template, but allowing this option would be nice, instead of scrolling down to the bottom of my inventory and dragging.

Xylor

P.S.... K&R style braces ownz0r j00, Catherine! =P