These forums are CLOSED. Please visit the new forums HERE
Roaming Greeter scripted needed |
|
|
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
03-07-2008 10:48
I have a greeting droid that I created but I want to make it roam my land randomly.... like it's patrolling. Does anyone know a good script for this?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
03-07-2008 14:29
assuming no physical movement and allowing it to pass through walls...
CODE
NOT a complete script _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
03-07-2008 16:32
Not quite following you. What do I do with this script?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
03-07-2008 17:15
you set a timer, every X seconds it checks if the spot Y meters in front of it is over your land, if it is it goes there, if not it turns some random amount between left and right and repeats the process until it finds a spot that IS over your land and goes there.
it would be part of a larger script, incorporating a sensor which greets the people it finds. I'm not sure how it would behave if it tried to cross the corner of no script or no entry land, I think it ends up bouncing around it. it would need to have the same owner as the land it's randomly roaming, otherwise with it's just going to randomly turn in place. _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
03-07-2008 17:51
I have no idea how to work the script you gave me but thank you
![]() |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
03-07-2008 20:27
I'm trying to break my bad habit of writing full scripts for people because I'm bored.
that snippet combined with a greeter script should do what you want (as far as random movement), if you're uncomfortable/unable to work out how to combine them you should definitely talk to a scripter friend, or pay someone for a finished product (actually you should do something for your friend too if you go that route.) I know some will think that's harsh, given that it's not a really difficult script, but when you buy a script you aren't so much paying for the effort as for their their knowledge, skill, and speed in making a script that is purpose suited to your needs. EDIT: that doesn't mean I won't teach, but there's a line between teaching and doing it for someone _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-07-2008 20:50
Sounds about right. We are here, after all, to teach men to fish. Err...except not, almost.
|
|
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
|
03-08-2008 19:48
I'm trying to break my bad habit of writing full scripts for people because I'm bored. that snippet combined with a greeter script should do what you want (as far as random movement), if you're uncomfortable/unable to work out how to combine them you should definitely talk to a scripter friend, or pay someone for a finished product (actually you should do something for your friend too if you go that route.) I know some will think that's harsh, given that it's not a really difficult script, but when you buy a script you aren't so much paying for the effort as for their their knowledge, skill, and speed in making a script that is purpose suited to your needs. EDIT: that doesn't mean I won't teach, but there's a line between teaching and doing it for someone I understand completely. I primaraly build things and my knowledge of scripts is very limited. I don't think you sound harsh at all. Thank you for your time. |
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
08-19-2008 08:31
Sorry for the necropost - just stumbled over this and... it's not working
assuming no physical movement and allowing it to pass through walls... CODE
NOT a complete script llOverMyLand(nextPos) does not work since llOverMyLand expects a key and not a vector... |
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-19-2008 11:06
llOverMyLand(nextPos) does not work since llOverMyLand expects a key and not a vector... Try 'llGetLandOwnerAt(...) == llGetOwner()' instead. http://www.lslwiki.net/lslwiki/wakka.php?wakka=llGetLandOwnerAt |