Introduction
As we went further in with LSL, one can see that practically you can script anything, any prime in Second Life. This week we went into some more interesting worlds two of which were really amazing when you see how far Second Life can go.
Worlds
The first world was lost in bass, in this world as you enter you can tell your avatar to dance. There is a screen saying "touch to dance" and you avatar will start dancing. This was really an interesting place and also an interesting thing. In that world you don't need to worry that you don't know how to dance as everyone can dance!
The other world we teleported into had really amazing light effects, like having a window and using a texture they made it look like sunraise are coming in. Also there was a really nice fireplace with fire.
Objects
Last week I build an object that when you touch it, it sends a mail to specified address. This week I build a simple object where when it is touched you are directed to a specified site. To do so I had to use a new function called llLoadURL as shown in the below example.
llLoadURL(llDetectedKey(0), "Let's Go!", "http://http://www.cynthiaduca.blogspot.com/");
This will prompt the user and offer him to visit the specified website. The specified URL must contain a protocol. Only two protocols can be used either HTTP:// or HTTPS:// other protocols like FTL and telnet won't work. This will only work if the object is not on mute if it is on mute the offer won't to visit the site won't be received.
| Offering the user to visit my blog. |
default
{
touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), "Let's Go!", "http://http://www.cynthiaduca.blogspot.com/");
}
}
{
touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), "Let's Go!", "http://http://www.cynthiaduca.blogspot.com/");
}
}
Notecards
Notecards can contain anything within them like text or else can have embedded objects like snapshots, textures and also other notecards. Any items in which you are going to embed in the notecard you need to edit their permissions and edit copy, modify and transfer. Notecards are found in the notecard folder. A notecard can have a default value of 65,536 bytes.
Functions of notecard
Above are the screen shots of the steps taken to create the notecard and then the notecard was saved as schoolExercise.
Conclusion
Notecards can contain anything within them like text or else can have embedded objects like snapshots, textures and also other notecards. Any items in which you are going to embed in the notecard you need to edit their permissions and edit copy, modify and transfer. Notecards are found in the notecard folder. A notecard can have a default value of 65,536 bytes.
Functions of notecard
- llGetNotecardLine - Pull out information from a notecard
- llGetNumberOfNotecardLines - Returns number of lines in the notecard name
- llGiveInventory - Notecard contents are displayed and allows the user to keep or discard the notecard
To create a new notecard right click on any folder in the inventory, preferably the notecard folder and select new notecard. Enter the text you want in the notecard and save it. To access the notecard you have to look for it in the inventory. To put an image or a landmark on the notecard simply go to where the image or landmark are found in the inventory and drag it into the open notecard. Anything you want to put in the notecard simply is to drag it onto it.
![]() |
| Creating a new notecard |
Above are the screen shots of the steps taken to create the notecard and then the notecard was saved as schoolExercise.
Conclusion
From next week we will be discussing new topics which are more in use nowadays. We all agreed to start with some HTML5 and more javascript. After these few lessons on Second Life, I personally think that it was good learning some Linden Script because if second life can continue to evolve more one day we will be in need of LSL, but for now I don't think that second life made a huge impact. Although when you go in certain worlds one can immediately notice the amount of dedication needed by these people to put up together with certain ideas and work. In the future I think that LSL will be use and if improved further it will be of a success. Some improvements which I think are in need are that objects are too difficult, fussy and too much time consuming to build them and also requirements for internet speeds and connections really make a difference.
References:

No comments:
Post a Comment