A long time ago, I posted a script system to make butterflies appear when the sun came up in SL, and disappear when it went down. The system consisted of a script to place in some copy/mod butterflies available on the marketplace, and a script to rez them and delete them at the appropriate times. […]
LSL
Linden Scripting Language tutorials
llDerezObject
Feel free to skip this is you have no interest in scripting 🙂 When we script an object to rez another object, we tend to want to delete the rezzed object afterwards. There are a couple of ways to do this. The first involves no script at all; you can rez the object marked as […]
My Scripting Workflow
Introduction A while ago, I described my switch to a new scripting workflow. That article explained to my customers why I was re-releasing a lot of my products with no functional change, and that due to my changed workflow, solving bugs they might encounter could be slower than was previously the case. This article is […]
Updated Wind Sculpt
I’ve been fiddling around with Linden Scripting Language for over nine years now. It’s an interesting, quirky language, with a huge number of functions in its library (nearly 500). While I think I know it pretty well, language and library features can always surprise even the most experienced coder. A week or so ago, I […]
Script memory
Thinking about script memory in LSL is very important. In Mono, which is the modern script engine, each script gets 64K of memory allocated by default. This is true even if the script uses only a few kilobytes of memory. With thousands of scripts in a region, this can easily consume all the memory allocated […]
Basic animation chooser
Sometimes, you just need something simple to pick an animation to play. Here’s a script to do just that. Rez a prim, drop this script in it, and a bunch of animations, then take and wear it as a HUD. When you touch it, it will offer you a dialog where you can play any […]
Detecting RLV
As you may know, I love scripting. Last Halloween, I made up some RLV traps to scatter around the build for the unwary. One was a giant skeletal hand that popped out of the ground and grabbed the unsuspecting victim hehehe. I though you might be interested to see how the basis of RLV scripting […]
Script preprocessing
As you may know if you’ve read my “About Blue” page, I love writing scripts to get objects to do things in-world. It’s one of the reasons I joined SL, to discover what I could do with a new and interesting programming language. So, you get the occasional technical article on the blog. Feel free […]
Butterflies, part 2
Update: The script included in this post has been updated. Please see this blog post to get the improved version. Yesterday we talked about a script to add to some cheap copy mod butterflies available on the marketplace to prepare them for use in a rezzer. Today, we’ll look at the rezzer script and how […]
Butterflies, part 1
Update: The script included in this post has been updated. Please see this blog post to get the improved version. Butterflies don’t fly at night, have you noticed? Lots of builders just rez some and leave it at that. Let’s see if we can get some realism. I’ll wait while you go and buy some […]