I tried today the scripting language in SL....which as usual with "hello world"
it seems easy to do but it really needs exploring in wiki SL to find the functions you need at
http://rpgstats.com/wiki/index.php?title=Detected
it's not easy to modify especially to hard things like the stuff in the CD inclosed with the textbook.
this code to detect the name of the avatar...
float time = 0.1;
default
{
//the touch envoked when the avatar touch the object
//and detect his name by llDetectedName(0)
touch(integer num_detected)
{
llSay(0, "Hello!"+ llDetectedName(0));//here the object says hello "name"
//and this message will be heard within 20 meters
}
touch_start(integer total_number)
{
llSay(0, "hello");// this function will just say hello when touched
llSetTimerEvent(0.1);//the last event will remain for 1 second
}
timer()
{
time = time + 0.1;
}
touch_end(integer num_detected)
{
llSetTimerEvent(0.0);
llInstantMessage(llDetectedKey(0),llDetectedName(0) + ".... you held down your mouse button for " + (string)time + "seconds.");// at the end of the touch event the object will tell the user how long time he has held down his mouse.
}
}
but I really like the script codes....
once again the movement is difficult and you may loss your patiance at any time.
the Free Stuff I found in amazing land at
sarah nerd's
but that earing money in SL needs help and moving from the SL to another website to fill in a survey....just an example... and dancing is another way to earn money....
Blogger just now has become clever and saves your drafts automatically!!!!...
another thing is that using < result in error!!!!!!!!
Friday, 25 January 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment