may be someone expert can help me, and give me an example

These forums are CLOSED. Please visit the new forums HERE
How to create and execute scripts? |
|
Ingrid1504 Blessed
Registered User
Join date: 8 Aug 2008
Posts: 8
|
11-25-2009 15:20
Hi, think that i have an idea to create small and simples script, but i dont know how to execute them.
may be someone expert can help me, and give me an example ![]() |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
11-25-2009 15:38
To execute ( I assume you mean "run"
![]() _____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....
![]() Look for my work in XStreetSL at |
Ingrid1504 Blessed
Registered User
Join date: 8 Aug 2008
Posts: 8
|
11-25-2009 15:56
To execute ( I assume you mean "run" ![]() yes, i mean "run", yes but the example of the folder script of my inventory, i think that i can run it. how to do it? Really i want to say something between symbols and sound. |
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
11-25-2009 16:22
yes, i mean "run", yes but the example of the folder script of my inventory, i think that i can run it. how to do it? There are three free scripts in the "Scripts" folder in the Library section of your inventory. Are these the scripts that you mean? If so, all you need to do is create a prim and drag one of those scripts from your inventory into the prim. You can do that either by dragging it onto the prim itself or by opening the "Contents" page for the prim while you have it in Edit mode, and dragging the script to that page. Either method works. When a script is added to a prim, it runs. You don't need to do anything else to it. (Well, not usually, anyway.... ![]() Here's another demonstration you can do .... Create a prim and, while you are still in Edit mode, open the prim's "Contents" page. There's a button that says "New Script." Click it. A new script will appear in the list of contents. It's the default "Hello Avatar" script. It starts running the instant you create it, so play with it. Open it to see what it looks like. Then, as I recommended earlier, study the tutorials at the web site I gave the link for in my first post. You'll learn. Really i want to say something between symbols and sound. Sorry. I don't understand what this means, so I can't help with this part of your question. _____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....
![]() Look for my work in XStreetSL at |
Kornscope Komachi
Transitional human
![]() Join date: 30 Aug 2006
Posts: 1,041
|
11-25-2009 16:41
You cannot run a script from your inventory.
There is many ways to make a script work You make a new prim. Edit the prim. See the contents Tab of the prim you edit. 1/ See the "New Script" button and click this to make a new script. Right-click and open the new script. Make a script you want 2/ Drag a script from inventory into the prim contents tab Now the prim will do as the script wants, whatever that is. See the library for example scripts that you can modify to suit your needs Here: /15/1.html and here: http://wiki.secondlife.com/wiki/Category:LSL_Library These places can help new people: Script maker: http://www.3greeneggs.com/autoscript/ (agrh firefox crashed here....Mr Loon posted) Tutorials: http://www.heatonresearch.com/articles/series/24 To make a script work? If it is made without errors, it should work Scripts (mostly) do not work if there is errors. When you save the script, it is "Compiled" on the server and a message will tell you if it has errors. The message may say which error too so you can see where to fix it. Scripts can be made to work by avatar touching (or clicking) the object by saying (typing) something into chat. by "Events" like bumping (collision) into the object. And Many many more. After much time and learning you will be a champion. Good luck. _____________________
SCOPE Homes, Bangu
----------------------------------------------------------------- |
Ingrid1504 Blessed
Registered User
Join date: 8 Aug 2008
Posts: 8
|
11-27-2009 15:11
ok, thanks to all, i believe that i already understand it.
Thanks a lot. |