Powerup your Scripting!
As some of you may now, I have been following Virtual Worlds for some time now. In 2006, I was an educator in Seoul, South Korea. At the same time, I started investigating how I could use Second Life as an educational tool. Due to my Computer Science background, I took an immediate interest to their scripting language. The main power behind Second Life lies in the fact that it allows its players, or ‘residents’, to create content, 3d objects, and attach scripts to those contents so that they can interact with the virtual world. In order to script efficiently however, it is best if you have a good development environment. As with every trade, one needs a good workshop! One of the tools I have in my ‘workshop’ is Aptana Studio 3.0. Once installed and configured, coding in LSL (the Linden Scripting Language) becomes a lot easier. You see, as a programmer, you are constantly using functions to create code. Each function can do a particular thing. If for example you want your 3d object to output text in the Virtual World, you use the following in your code: llSay(0,”Hello World!”);
Each function will have whats called a parameter list. In the llSay function, there are two parameters – and the values I entered for those parameters were zero, and “Hello World!”. The first parameter for this function indicates the “channel” you want to output the text on. In this case, I am outputing to channel zero – that means everyone in the world will see it appear on the chat line (as long as they are within 10 meters of my 3d object. If I was to output Hello World on channel 1, then it would still be output, but no avatar would see it! However, other objects in the world, that are listening on channel 1, would hear it! This is important if you are doing object to object communications! Using your imagination, you can see, that llSay can be quite a powerful little function!
Now, back to Aptana studio! The reason why it is so useful and powerful as a programming tool, is that, once installed and configured, it will remember all of the parameter lists for you! This means your coding is greatly sped up – instead of you having to lookup every single parameter list for every single function, you can just type the first few letters of the function name, and press “control-space” and a drop down will list all of the functions available, and their parameter lists!
In the video below, I explain how to set up and configure Aptana! Hope you enjoy it!
Hi everyone,
As some of you may now, I have been following Virtual Worlds for some time now. In 2006, I was an educator in Seoul, South Korea. At the same time, I started investigating how I could use Second Life as an educational tool. Due to my Computer Science background, I took an immediate interest to their scripting language. The main power behind Second Life lies in the fact that it allows its players, or ‘residents’, to create content, 3d objects, and attach scripts to those contents so that they can interact with the virtual world. In order to script efficiently however, it is best if you have a good development environment. As with every trade, one needs a good workshop! One of the tools I have in my ‘workshop’ is Aptana Studio 3.0. Once installed and configured, coding in LSL (the Linden Scripting Language) becomes a lot easier. You see, as a programmer, you are constantly using functions to create code. Each function can do a particular thing. If for example you want your 3d object to output text in the Virtual World, you use the following in your code: llSay(0,”Hello World!”);
Each function will have whats called a parameter list. In the llSay function, there are two parameters – and the values I entered for those parameters were zero, and “Hello World!”. The first parameter for this function indicates the “channel” you want to output the text on. In this case, I am outputing to channel zero – that means everyone in the world will see it appear on the chat line (as long as they are within 10 meters of my 3d object. If I was to output Hello World on channel 1, then it would still be output, but no avatar would see it! However, other objects in the world, that are listening on channel 1, would hear it! This is important if you are doing object to object communications! Using your imagination, you can see, that llSay can be quite a powerful little function!
Now, back to Aptana studio! The reason why it is so useful and powerful as a programming tool, is that, once installed and configured, it will remember all of the parameter lists for you! This means your coding is greatly sped up – instead of you having to lookup every single parameter list for every single function, you can just type the first few letters of the function name, and press “control-space” and a drop down will list all of the functions available, and their parameter lists!
In the video below, I explain how to set up and configure Aptana! Hope you enjoy it!
Power-up your scripting!
If you like this video, you can subscribe to my Youtube channel!





