I’m a computer science professor, data scientist, and web geek.

Autoscript Creates LSL Scripts Without Code

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

107 comments

1 Graham Mills { 09.02.07 at 3:51 pm }

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).

2 Hilary { 09.02.07 at 8:03 pm }

Thanks Graham… it’s fixed!

3 Kyle { 09.04.07 at 12:23 pm }

this is insanely awesome, nice job!

4 Ellie Brewster { 09.04.07 at 4:05 pm }

I’ve got an idea — how about adding “play a sound” in the first column?

Thanks again, Hilary!

5 Graham Mills { 09.04.07 at 4:27 pm }

Maybe add a link to the relevant page(s) on lslwiki.net for those wanting to take it further?

6 Roberto { 09.05.07 at 7:33 pm }

Thank you for creating this tool it is very cool!

7 JanOS Otzuaum { 09.06.07 at 8:29 am }

Yeah! great Job!

Congratulations

8 !van { 09.06.07 at 11:18 am }

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 ;)

9 Hilary { 09.08.07 at 12:11 am }

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?

10 !van { 09.08.07 at 8:44 am }

sure that would be nice,

becouse ppl ask me almoust for “how can i on touch change color on other object
or something :) so i brake my head to explain how to make it with linked message or with channels :)

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 :)

11 Torley { 09.11.07 at 9:33 am }

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!

12 Saijanai Kuhn { 09.13.07 at 12:36 am }

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

13 Dvora Tardis { 09.16.07 at 1:37 pm }

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”?

14 Soujanya { 09.17.07 at 8:03 pm }

this is really cool way to learn!

15 Jazzman Jibilla { 09.21.07 at 11:24 am }

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

16 Beatrice Boisblanc { 09.22.07 at 11:01 am }

Congrats Ann! And greetings from germany – what a perfect help for scripting-beginners like me… will tell all my friends! Kisses from Beatrice!

17 Nuschi { 09.22.07 at 12:28 pm }

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… :-)

18 Abba Thiebaud { 09.24.07 at 12:11 am }

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?

19 Hilary { 09.24.07 at 11:52 am }

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. :-)

20 Amanda Ascot { 09.24.07 at 2:59 pm }

*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”.

21 sa { 09.24.07 at 4:25 pm }

WONDERFUL JOB.

GO ON!

22 Naomi Talon { 09.29.07 at 1:57 pm }

Tnx, it’s a great tool.

23 Anthony Fontana { 10.07.07 at 8:46 am }

This is GREAT! Thanks a bunch!

24 life { 10.11.07 at 9:19 am }

good stuff! i have put it in the toolbar for sl!

25 Chris { 10.13.07 at 6:11 am }

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 !

26 Jenni { 10.15.07 at 2:38 am }

Thank you – this little tool is a great help!

27 Jahaya { 10.22.07 at 7:01 am }

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.

28 WiLLuMPJuH Gausman { 11.10.07 at 3:42 pm }

Thank you, professor. Very comprehensive and most useful to the beginning scripter as i am. Much obliged. Exactly what I needed.

29 David121 Finsbury { 11.30.07 at 1:33 pm }

Any chance of adding to the rez object that it deletes that object from in world after set time?

30 Second Life Script Kiddies Start Here! « A View From Another Life { 11.30.07 at 2:56 pm }

[...] May I present Ann Enigma’s LSL Script Auto-Generator! [...]

31 Pyter Morgridge { 11.30.07 at 3:00 pm }

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… :)

32 Blue Linden { 12.07.07 at 6:19 pm }

Some people assume that all Lindens can script but I was proof to the contrary…

…until now ;)

33 Nexeus Fatale { 12.17.07 at 9:20 am }

Wow, this is actually pretty cool and great for those people looking to make a quick script! Nice!

34 Tech Tools that Changed My Life in 2007 - Fleep’s Deep Thoughts { 12.22.07 at 8:50 am }

[...] 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, [...]

35 sarah { 12.30.07 at 3:42 am }

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

36 Michael DiTullio { 01.03.08 at 8:58 am }

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!

37 Arwenna Stardust { 01.17.08 at 8:31 pm }

Awesome Hilary – thank you!

38 Corcosman Voom { 01.26.08 at 11:09 am }

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.

39 Brigitte Kungler { 01.26.08 at 1:55 pm }

thanks for the autoscript!!!
it is very helpful to learn how scripts work!

40 Montana Corleone { 01.28.08 at 7:55 am }

Fantastic! And I love it’s in French too.

Gonna link it on my blog…

41 Dale Innis { 01.29.08 at 9:46 pm }

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?

42 Transparent Banshee { 02.03.08 at 4:57 am }

awesome! thank you! extremely neat!
:-) )/TB

43 Qwertyuiop Oe { 02.05.08 at 8:02 pm }

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.

44 Archironus { 02.25.08 at 7:34 am }

Heh, great work. :D 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.

45 LIONEL { 02.29.08 at 11:57 am }

IM FRENCH !!!

thank you very much ( merci :)

46 robin winter/ shukra { 04.01.08 at 1:07 pm }

i still love this lil script maker…ann i wish you would expand on it more, though i dont have specifics.

47 lawnchair giha { 04.02.08 at 11:21 am }

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

48 garvie garzo { 04.11.08 at 3:41 pm }

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.

49 thaumata { 04.22.08 at 11:59 am }

what a great tool, and something i’ve been nagging people to write for a long time. thank you so much!

50 Martijn Notredame { 05.09.08 at 3:48 am }

Hi,

did anyone know how to make a script to increase an object when you touch it.

Thx

51 Ruby Hanriot { 06.09.08 at 3:50 pm }

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.

52 john { 06.25.08 at 8:00 pm }

none of the script i try seem to do anything, i know nothing about scripts so i can explain why

53 Genevieve { 06.28.08 at 2:09 am }

This thing is totally amazing. It’s really helped me get use to scripting!

54 Kitsune { 07.03.08 at 6:45 pm }

Maybe you could add something that causes damage? Like a sword or a gun script option?
‘Cause damage to another avatar’
I’ve found it’s impossible to find a sword script if you’re new to SL.

55 cabrobst Hubble { 07.19.08 at 11:08 am }

I have myself created a script that will slowly move a ‘ghost’ from one place to another. I need to add a condition where it will reset if a limit is reached. If anyone knows how, IM me in world. Thank you.

56 Thordain Curtis { 07.19.08 at 11:13 am }

Neat idea. Played around with it for a few seconds and I’m sure many residents will find it useful. You might want to modify the rez object code so that it works properly with rotated objects. For instance, “rez 0.5 right” pops out ‘llGetPos()+’ for the object position, but it should be ‘llGetPos() + ( * llGetRot())’

57 Jon Daikon { 07.19.08 at 3:32 pm }

There is an error with making an object follow an avatar around. The declared setup() function is never put into any event.

58 AngelDel { 07.19.08 at 4:24 pm }

I loved your brilliant tool, ideas like yours make our SLs easier every day, THANK YOU. Also, as a Spanish native speaker and qualified translator, it’d be a pleasure for me to to add one more language to your web-based script generator if you want (unless someone is doing it already, of course ;-) Always happy to contribute to great iniciatives!

59 james monroe { 07.20.08 at 1:22 am }

would love to see more also a loop script

60 Sunshinebabe Villota { 07.20.08 at 5:58 am }

Hi,
the following text does not make sense in German:
Wenn Sie das Skript Generator, bitte zu spenden, um die Rechnung für Hosting dieser Website:
Because it is an important message :) , i give you a better text as follows:
Wenn Ihnen der Script-Generator gefallen hat, würde ich mich über eine Spende zur Bezahlung der Kosten für das Hosting dieser website freuen. Danke!

61 Ener Hax { 07.20.08 at 1:55 pm }

Thank you Ann Enigma for such a wonderful tool! It will help me a lot and it serves as a great way to introduce others to scripting.

You are quite a wonderful person to make this for everyone and host it. Thank you so very much. :)

62 Bofon { 07.21.08 at 11:39 am }

C’est génial ! on en demande encore plus ! silvousplait :)

63 mahem rossini { 07.21.08 at 3:57 pm }

Three urrah for the good simple things for the simple minds. Urrah!!!! Urrah!!! Urrah!!! Go on. That’s the way!

64 Arylis { 07.23.08 at 8:17 pm }

THANK YOU THANK YOU THANK YOU! You have done EXACTLY what I have been begging for for so long! Finally I can just say “Why can’t I just click something to MAKE a door open?!” and here it is!

I’ve *always* been intimidated by the scripting, but I’m positive this will help me warm up to the scary language that is LSL.

I could *never* thank you enough!

65 Lee Jenkinson { 07.24.08 at 5:18 pm }

This is a great way to learn scripting! Thanks a million for an easier more organic way to learn this stuff, I hope this gets out to everyone who has any interest in creating things in Second Life.

66 electro { 07.27.08 at 5:40 pm }

I love it, Its very similar to a tool I learnt to script from =). A time saver too, for the lazy among us ;) ..

67 Matthew Zanzibar { 09.10.08 at 9:53 pm }

Thank you so much! I cannot even tell you how helpful this has been to me. As a total newbie with *BIG* dreams of establishing a really sharp SL presence for my nonprofit organization, this has been an invaluable resource to me. I am learning a lot from your autoscripter, but even more importantly, it has freed me up to CREATE right now without a super steep learning curve. Words fail how much I appreciate you.

68 Mylinn { 09.12.08 at 9:54 am }

What an excellent resource! I am slowly learning scripting via the tinker with one setting in pre-existing script method. Slow but I retain it more than in the formal class routine.
I just sat and played with the generator – comparing how starting with touch then chat public and chat private changed a script. Amazing!!
Could you add a touch ‘end’ to the scripting somehow? Or a generic make this stop (without a timer) and reset itself command?

69 Planvo Parx { 09.17.08 at 4:15 am }

Hello i am a scripter just saw this in world URL so i had i look and it look’s good

70 Siri Dufaux { 09.29.08 at 2:24 pm }

I have seen a video from torley about scripting he give a site http://www.3greeneggs.com/autoscript/index but I can not go there. Please tell me how i can go no the sit i like to learn scripting.

Thanks and greetings Siri
from the Netherlands :-) ))

71 admin { 09.29.08 at 2:35 pm }

Hi Siri,

The correct link is: http://www.3greeneggs.com/autoscript/

Enjoy!

72 Linnrenate { 10.18.08 at 11:18 pm }

hello Hilary,

How about adding the function to make a object transparent (under the section “What do you want your scripted object to do?”, i have been waiting for this a long while now but just this website today.

73 Kita Coage { 10.26.08 at 3:29 am }

Thank you! This makes learning so fun and motivating c”,)

74 Satonia Seriman { 10.31.08 at 7:35 am }

Torley lindens wonderful tuts brought me towards your website, and it is the best thing i have EVER USED :D please add more FUNKY scripts, i cant script one bit and its very useful to have this option. -Satonia Seriman, The crazy biish.

75 SeaWindSorcerer { 11.01.08 at 6:53 am }

I need a LSL script that when i make a sign,i would be able to type right on the sign,
i dont want a floating text at all….
If someone can please help me i would appreciate the help,
i am very new to Second Life.
email me at edy@gwi.net

From SeaWindSorcerer
Second Life

76 Ja Sporg { 11.05.08 at 5:47 pm }

This is a really helpful tool for those of us who don’t know scripting. Thank you for offering this. I tried the “generate a sound” when the avatar touches the object and got it to work right away. Since we can only upload 10 sec files, is there any way the script could play more than one wav file at a time?

77 HotRodJohnny Gears { 11.11.08 at 1:38 pm }

I want to change textures on a sign to make letters flash by alternating textures. This only loads one texture and does not allow a second texture to load.

78 JohnLuke Fhang { 11.17.08 at 8:48 pm }

umm in the note card giving to nearby avatar script i cant figure out where put the the name of the card… srry im noob

79 Peter (SL NAME Cerrunos Magic) { 11.23.08 at 9:31 am }

On the door option it isnt rotating the right way for me.

80 Gothix Nacht { 11.28.08 at 10:48 am }

The Doorscript generated with autoscript should be written without phrase “* llGetRot()” because with this the doors sometimes do not move correctly to the correct target-rotation when someone starts the action several times in a short period of time.
Secondly the “Move like a door” – script should not only rotate but also move aside…

81 wildo hofmann { 11.30.08 at 11:38 am }

Hello, very very useful generator. I’m involved in the sound aspects : could it be possible to have a generation for the following sound aspects ? :
a script for collided sound (not touched)
a script for a random readed sound list
a script for an alternate reading of a sound list ?

very kind regards
W

82 hugobiwan zolnir { 11.30.08 at 2:37 pm }

This is great, especially to make discover the power or virtual worlds to newbies.

Great contribution : thank you a lot from France.

Hugobiwan Zolnir
http://sldirect.blogspot.com

83 ED539424 { 12.07.08 at 8:17 pm }

I tried using the move script, and set it to follow me when clicked, but it doesn’t work/ can you please help?

84 trainingday trimble { 12.10.08 at 5:50 pm }

Hi,

Want to thank your so much for providing autoscript, i viewed the torley video , great idea..

TYSM

85 trainingday trimble { 12.10.08 at 5:51 pm }

I guess it is called Scriiptme now…. :) ty

86 Duke Miami { 12.17.08 at 11:21 am }

Fabulous!!!
Thank you.
Please make more options.
It opened a whole new world to me.

87 bob { 12.22.08 at 6:44 pm }

I really found this site very helpful. I think it would be cool if you added other scripts. Such as projectiles, vehicles, pushes, pulls, nulls, and so forth.

88 GB { 12.27.08 at 11:32 am }

Hello,
can I buy this Script Generator..? that would be very nice.. smiles

89 Maslo Bade { 12.30.08 at 11:18 pm }

Hello Ann, I am very please that someone took the time to create such a site. You should be commended for your efforts. I have a question about rotation. I want to make a child prim rotate very smoothly in a physical state. It will move from 0 to 90 degrees while the root prim is in motion. if you have any thoughts on this I am all ears. Thank you again for your hard work.

90 flew { 01.06.09 at 9:07 am }

very nice idea to create a script genrator. this will be helpful for new residents.

91 Phoenix Hochberg { 01.10.09 at 10:05 pm }

Needs more options, good idea, though ^^

92 Vinnie Saletto { 01.29.09 at 9:32 am }

Thank you. This made my work much easier.

93 Leba lusch { 01.29.09 at 3:40 pm }

It would be nice if you released a lsl version of your script generator. so we could have a box in world that does the same thing. or so we could use the script in gadgets we make as well.

ill beg if needed lol

94 Chris { 02.14.09 at 2:23 am }

The rez scipt on touch settings don’t work :( They worked before but has a bug in it now I think… Please fix it.

95 TRiPPY { 03.06.09 at 5:42 am }

Thank you SO much for this resource! :D It’s helped me a lot.

96 Punky { 03.07.09 at 5:12 pm }

Hi, I think there is an error in your wondeful script generator.

for Rez onbject on a typed command this line is generated:

llRezObject(llGetInventoryName(INVENTORY_OBJECT,0), llGetPos()+,ZERO_VECTOR,ZERO_ROTATION,0);

However the “+” following 11GetPos() yields a syntax error, when deleted it works.

Thanks for the system, its very helpfull for learning.

97 Jan { 03.15.09 at 5:00 am }

i need a givemoney script…

98 Kenny { 03.16.09 at 1:33 pm }

This is a Awesome little tool you have here..:))

Thank you for making it, You Rock!

99 Bry Baxton { 03.23.09 at 2:34 pm }

I have a suggestion for autogeneration of texture change script. If the avatar has to be inside the room to change the texture. IE can not cam into the room to click on the window to open, and can not click on the out side of the window to change texture.

100 jeremy grove { 03.27.09 at 7:29 am }

Any thoughts on adding a script for recieving an object such as a notecard for use in scripting suggestion boxes? I am just learning to script, and the first ghint I am working on is a suggestion box script to first give the notecard to the avatar, but it needs to then accept the notecard back and store it so we can receive suggestions.

101 nana { 04.03.09 at 4:50 am }

great job ¡¡¡ :D
i’d like to give my idea…it would be cool if u add more options , so ppl could create things like a Hud or something more difficult.
it’s great how it is but if it had more optiones really u’d help so much ppl :p

102 Bob Dartmouth { 04.10.09 at 6:05 pm }

2 syntax errors for creating text when an object is nearby

103 Trishy { 05.03.09 at 9:50 am }

I am coming up with an error message while using the sound script. I have the sound set in the contents, can copied the whole script into a new one, but SL is telling me that there is a syntax error in Line 9, column8, at: llPlaySound(llGetInventoryName(INVENTORY_SOUND,0),1);
Can you help me get this figured out?
Thanks

104 cali { 05.04.09 at 12:26 am }

when scripting a sound how do you put the sound up cuz some sounds are hard to hear, is there a volume in the script? let me know, and also what would be kool is making more choices 4 autoscript like alot and and be able to carry it in your inventory 4 your av plp would learn alot more about scrpting with more choices of scripts and to have 4 your av ;)

105 12John37 { 06.08.09 at 6:10 pm }

This is awesome! I don’t think I could ever script and now I don’t have to! Thanks a LOT!!!!

106 Artsy Nirvana { 06.09.09 at 1:25 pm }

I love this script maker I have no clue about scripts and this is so helping me. anyway how do I make a script to add avatars to a group?

107 chad { 06.16.09 at 12:28 am }

yea i have been useing scripts from scriptme.com for a wile now and i have never had a prob. till now :( i am trying to get an object that i made to move with your avatar and the script i got from your site didnt work i have maby i am doing something worng can someone help me this email i put in i dont use it but if someone has an acc. on SL my name on SL is Lestat Wickentower if someone can im me there that would rock TY

Leave a Comment