This week, I created autoscript, a simple LSL script generator for Second Life. The concept is to translate the way you think about interactive design - what should happen, and when - into functional code.
Scripting is one of the most creative parts of designing immersive spaces, and I hope this will make it accessible to more people. Please feel free to use this code however you like!
Writing a program like this requires a balance between simplicity and flexibility, and I’m erring on the side of the former. I do plan to add more functionality to it and would love your suggestions and ideas! Also, if you encounter anything that doesn’t work, please let me know in the comments here.
The link: autoscript
{ 51 } Comments
Thanks a lot for this. There is a small bug in the code generated for the rez object on touch option (an unwanted closing parenthesis).
Thanks Graham… it’s fixed!
this is insanely awesome, nice job!
I’ve got an idea — how about adding “play a sound” in the first column?
Thanks again, Hilary!
Maybe add a link to the relevant page(s) on lslwiki.net for those wanting to take it further?
Thank you for creating this tool it is very cool!
Yeah! great Job!
Congratulations
hey very nice !!!
its very basic but it can be veeeery useful for ppl who dont know scripting
and for newbie ; )
keep on !!! and good luck
add more things ! try with linked messages
and maybe u can add ..comunications between 2 objects ..on minus channel. then u can give automaticly 2 script wich will talk on -n or something it will be useful for ppl
btw sorry for my “perfect” language
cheers
Thanks, everyone!
Sound is up, along with some object movement code. I found some spam on lslwiki.net, so I’ll wait until it’s cleared up to add links.
I’m working on perfecting one script before moving on to two! I might add a “use a switch” event that allows two scripted objects to communicate, with one activating the other. Would that work?
sure that would be nice,
becouse ppl ask me almoust for “how can i on touch change color on other object
so i brake my head to explain how to make it with linked message or with channels
or something
and at the end i give the script and say just put THIS in one and THIS in another object ..link them and thats it
I just found out about this from Patsy Linden. Sounds pretty kewl thus far, I hope to try it out the next time I need some “casual scripts” to get things done.
Thanks for doing this! It’s a kind of “I’m surprised it wasn’t done earlier” but I sure am glad it has!
Very nice. I’m working on a script library for SL that lives within the client itself. Your script generator would be an interesting panel to use instead/in addition to.
Give me an IM in world, or email me at LEnglish5@cox.net
Looks pretty handy. Any chance we can cause more than one effect at a time? I.e. if touched, then “hand out two things and change colour and play a sound”?
this is really cool way to learn!
Weee…thanks Ann, I have managed, with much help, to gain an understanding of particle scripts and was just moving onto to “movement” when I found this site.. Thank you thank you thank you this goes a loooong way to making it clear in my mind what certain things do.
Ta muchly
Congrats Ann! And greetings from germany - what a perfect help for scripting-beginners like me… will tell all my friends! Kisses from Beatrice!
thank you!
just added the site to our link-list!
maybe you could add a script that allows to seat eight persons in a moving bus? 4 is the max. so far…

Problem ID’d in your prefab scripting.
Repro:
Click “Say something in chat” (wootadonga)
Type in saying in box.
Click say it normally.
Click “When someone says something” (bleepys)
Click Public chat.
Type in specific saying in box.
Returns:
// This script was auto-generated by Ann Enigma’s script autogenerator
// available at http://www.3greeneggs.com/autoscript/
default
{
state_entry() {
llListen(0,”", NULL_KEY, “”);
}
listen(integer channel, string name, key id, string message) {
if (message == “bleepys”) {
// speak out loud!
llSay(0,”bleepys”);
}
}
}
Thereby (not tested) creating an endless loop, perhaps?
Abba, thanks for the comment — that one goes under “user error”.
This program helps people write programs… it doesn’t keep them from writing stupid ones.
*chuckles* Nice catch, Abba. I’m going to have to test that one, but I think it might not actually create an endless loop. While the program is spitting out the chat I don’t think it’s simultaneously listening for it, so once it gets back to listening the chat has already happened. Now, put two of them side by side and all bets are off. It will be an interesting experiment, though.
Very cool program, Hilary, and I’m with Torley on this one. It’s hard to believe nobody has done it before. A few suggestions:
“Say something in chat” should give the option of using a channel other than public chat.
“Change the object’s color” should give the option of using RGB values, or at least give additional colors (cyan, magenta, and yellow come to mind).
“Create hovering text” should have the same color options as “Change the object’s color”.
WONDERFUL JOB.
GO ON!
Tnx, it’s a great tool.
This is GREAT! Thanks a bunch!
good stuff! i have put it in the toolbar for sl!
This is a great job ! As a scripting teacher I recommanded it to my beginners. Unfortunately many of them don’t understand English, or not well. Would there be an opportunity to collaborate in order to translate the page for some european users ? I’d be very happy to volunteer to translate it to French. If you’d possibly agree this, please feel free to mail me. Thanks anyway for this very useful tool !
Thank you - this little tool is a great help!
Thanks a lot Hilary, this is a very helpfull tool.
I wonder if you could add a script that generates a dialog menu.
Thanks a bunch.
Thank you, professor. Very comprehensive and most useful to the beginning scripter as i am. Much obliged. Exactly what I needed.
Any chance of adding to the rez object that it deletes that object from in world after set time?
I’ve just stumbled across this script-generator, and thought that it was such a neat and useful idea that I couldn’t resist doing a brief blog about it.
http://secondview.wordpress.com/2007/11/30/second-life-script-kiddies-start-here/
Forgive the questionable title…
Some people assume that all Lindens can script but I was proof to the contrary…
…until now
Wow, this is actually pretty cool and great for those people looking to make a quick script! Nice!
hey i really appreciate this i cant script at all lol i have to use someone elses scripts to script and this really helps ur truly a good person to share this information and thanks for it if you want to comment me back plz im saraheve burger and tell me what i said and then ill know its not some wierdoh lol ^^ k buhbye
Excellent idea! I was just in the process of creating an automatic script generator in-world when I came across your site. I would love to incorporate your tool if possible (giving you full credit of course). Drop me an email or IM to ‘Far Link’ located on Architecture Island. Also check out my blog at http://www.interactivearchitectures.blogspot.com as I will be posting about your site soon. Thanks again!
Awesome Hilary - thank you!
I ran across your website at the ITC library last night. This is great. I used it to make a ‘URL link on Touch’ script right away. As a neophyte, it helps to see what a good script looks like.
I’ve already passed the website on to a friend. Thank you very much for the effort you put into this.
thanks for the autoscript!!!
it is very helpful to learn how scripts work!
Fantastic! And I love it’s in French too.
Gonna link it on my blog…
oooo, so cool! Even if it might cut in to my trivial-script tip-stream lol.
I notice that if I make a script to do something when someone says “foo” in chat, it does a listen with a null last argument, and then tests for “foo”. Wouldn’t it be more efficient to has the last argument to the llListen be “foo”, and then not bother testing in the listen() event?
awesome! thank you! extremely neat!
:-))/TB
This is excellent. The Thinkerer says script modding is great to learn - this tool gives a great starting place for a modder-learner. How very cool this is. Thanks so much for doing this.
Heh, great work.
The one thing i think it needs adding is when an avatar sits on the object and some things to set physical or phantom Otherwise its great! keep up the good work.
IM FRENCH !!!
thank you very much ( merci
i still love this lil script maker…ann i wish you would expand on it more, though i dont have specifics.
Hi , just a quick thank you to you for this simple to use tool , just a suggestion on the colour changer , there is no scope that I can see for random colours on click , mebe that could be incorporated easily ?? , however , keep up the good work , =))
Lawn
this is enormously useful.. if you ever figure out a way to use this for more complicted script combinations, while charging lindens or paypal for it, IM me immediately and i will do my best to make you rich.
what a great tool, and something i’ve been nagging people to write for a long time. thank you so much!
Hi,
did anyone know how to make a script to increase an object when you touch it.
Thx
should expand the site
to what do you want object to do :
move /rotate/move in a position etc
what else do you want object to do?
when and how do you want object to do this?
thanks great now for simple scripts.
none of the script i try seem to do anything, i know nothing about scripts so i can explain why
This thing is totally amazing. It’s really helped me get use to scripting!
{ 2 } Trackbacks
[...] May I present Ann Enigma’s LSL Script Auto-Generator! [...]
[...] Life scripting tool is the cat’s pajamas for newbies or those with no programming experience. Hilary Mason aka Ann Enigma coded this tool to make simple scripts for those who have no programming experience. It’s simple, intuitive, [...]
Post a Comment