Archive for January, 2004

Tutorial: Create a box that gives an item when clicked (beginner)

Wednesday, January 21st, 2004

Tutorial: Create a box that gives an item when clicked (beginner)

In this tutorial, I will add a simple script to a box that gives a notecard containing a landmark to someone when they click on it. It does not require any scripting knowledge, other than the ability to replace some sample text in a script. This tutorial assumes that you know how to create a box and add a texture to it.

The tutorial begins with the box that will be used already created and textured. You can use an item that you have modify permissions on, and the item given does not have to be a notecard. The same basic principles apply for all item types, which I will explain below.

Step 1: Take the box or item out of inventory that you would like to add the script to.

Step 1: Appearance mode


2. I am going to create a new notecard to be given by the box. Go into the inventory window and click Create-->New Note. If you already have an item, you can skip to step 6.

Step 2: New notecard

3. This will create a blank notecard in your inventory. Double click on it to open it.
Step 2: New notecard

Step 2: New notecard

4. Add some text to the notecard, change the description if you would like. I also dragged a landmark from my Landmarks folder onto the notecard. Save the notecard by clicking on Save. Note: If you cannot drag a landmark, right click on it, select Properties, and make sure you turn on copy and modify permissions for the landmark. You should then be able to drag it into the notecard.

Step 2: New notecard

5. Right click on the notecard in your Note Cards folder and Rename it to something descriptive. I named my notecard Azura Note.

Step 2: New notecard

6. Right click on the object from step 1 that you are using to give the item, and go into Edit mode. Click on Content, and drag the notecard or other item that you are using into the Contents folder of the object.

Step 2: New notecard

7. Click on the New Script button on the Content tab of the object. This will create a new script in the object. Double click the script to edit it. You will see the following window - each new script starts out with a basic script already in place. Remove the line that says llSay(0,"Touched."); completely, leaving just a blank line between the { } under touch_start.

Step 2: New notecard

8. Type the following line in the place where you removed the previous line, replacing Azure Note with the name of your item (keeping the " " ) around it.

llGiveInventory(llDetectedKey(0), "Azura Note");

Be careful, case is important, so type it exactly as the line appears, and with the exact name of your item. Don't forget the ; at the end of the line. Also note that those are two lower case L's before GiveInventory and DetectedKey (as in Linden Lab).

Step 2: New notecard


9. Click Save and if you did not make any mistakes, you should see Compile Succesful, saving... and then Save Complete in the script window. You should also then see Hello, Avatar! appear. This will only happen when the script is reset. Close the script window and the edit window for your object, and try clicking on the object. Be certain the edit window is closed, or the touch event will not function.


If done correctly, the object should give you a notecard (or whatever item you used), with the option to keep or discard it when you click on it (if the item is a notecard).

Good luck and feel free to send me a message if you need assistance with this or any of the tutorials.


Cristiano

Tutorial: Create a basic black tshirt (beginner)

Friday, January 16th, 2004
Tutorial: Create a basic black tshirt

SL offers very powerful ingame tools for creating attractive clothing, without having to use special templates (those are used for more advanced clothing designs). Learning to use these tools can help you start to create your own clothing In this tutorial, I will show how to create a basic black tshirt for men (though it applies to women as well). It costs nothing in the game to create clothes in this way (other than uploading any custom textures, which this tutorial does not use).

1. Go into Appearance mode. You can access appearance mode by right clicking on your avatar and selecting Appearance, or by selecing Appearance from the Edit menu.

Step 1: Appearance mode

2. Click on the Shirt tab on the left hand side. If you are currently wearing a shirt, click Take Off to remove your existing shirt. You should then see an option to Create a New Shirt. Click on that.
Step 2: Create New Shirt

3. Once you create a new shirt, you will see your avatar wearing a long sleeve white shirt, as shown below. On the left hand side you will see various sliders, and previews of the various options. As you adjust the sliders, your avatar is updated.

Step 1: Appearance mode

4. Next to the sliders and the previews, you see two boxes - one for Fabric and one for Color/Tint. We are not going to change the fabric, but we will make this shirt black (you can make it whatever color you would like, just choose another color besides black). Click on the Color/Tint box and a color selector will come up.

Step 4: Color selection

5. Click on the color you would like to use and click OK. For this tutorial, I used black. You will then see the same previews, now with a black shirt, and your avatar will be wearing a black shirt.

Step 5: Black shirt shown

6. Adjust the top slider, Sleeve Length, until you are satisfied with the length of the sleeves. I adjusted mine to look like a short sleeved tshirt. You can also experiment with the other sliders to see their effects, but for this tutorial, I only used the sleeve length slider.

Step 6: Sleeve length

7. Click Save As to save the shirt to your inventory. A box will pop up which will let you give the shirt a name, as shown.

Step 7: Save As

And you are finished. You now have a new shirt in your clothing folder, named whatever you named it.

Experiment with the slider options, colors, and fabrics to see what you can create - it is quite addictive once you start.

Cristiano

Tutorial: Using debug menu to retrieve items under ground

Friday, January 16th, 2004

This tutorial has been moved to the SLUniverse Knowledge Base - it is now here:

http://www.sluniverse.com/kb/Article.aspx?id=10052


Ingyen blog - Online poker - Social bookmarking - Free link directory - Game Cheats - Miss World Hungary - Online pénzkeresés - Bani online - Forex trading - Free poker blog - Online poker - Ingyen blog - Póker - Póker - Celeb vagyok ments ki innen! - Celeb vagyok ments ki innen! fórum