Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

*Really Strange effects from newbie script, and genius apprentice offer...

Ican Morphett
Registered User
Join date: 25 Oct 2006
Posts: 3
10-25-2006 10:50
Hi if i can get it in a few hours i will post the script but it is a very basic one as i am new. I set it to stay stationary until touched then it takes off to 20 somewhat random places and distances depending on settings and when its done it resets to its original location. NOW HERES WHERE IT GETS ODD. I built it in a certain location/sim about 5 feet off the ground i touched it and it took off and did everything perfectly, so i put it away. BUT everytime i pulled it out after that no matter where i put it, the thing took off and ended up in that exact location, even from the next sim? now when i pull it out it burns out in one specific direction across the ground very very quickly, i usually only see where i put it and about 50meters later and its gone, i cant even seem to fix anythig because i forget where i made it/where i think its going, and I simply cannot click on it once pulled out. any suggestions would be great I wanted to be able to put it somewhere and thenwhen touched if freaks out and 20 movements later returns to where i set it, NOT to where i made it lol. Like i said i will post the script once sl kicks back on. I also made one script that went crazy and then crashed a large sandbox sim, maybe there is a use for it if I still have it.

*****Lastly any amazing scripters or scripting groups that want to have a up and coming genius apprentice please contact me in the game, I can Morph it, Ican Morphett <=-- my name in sl... PS ive been on for only 4 days and made over 300 items including 12 with scripts, im not your ordinary noob........ I have some amazing ideas for very usefull/profitable items in sl but i am far from being able to put them into use at this point. I got the idea, you have the means, lets make some lindens.
Fenix Eldritch
Mostly harmless
Join date: 30 Jan 2005
Posts: 201
Possible solution
10-25-2006 11:48
Uh huh....

If the thing is touch activated, I would imagine selecting it while in build mode shouldn't trigger it. And if for some reason it does, why don't you just rez it in a script-disable area?

As for your sticky return location, it sounds lke you hard-coded the return coordinates as opposed to making them variables set when the thing is initially rezzed.

I'm not very experienced in LSL, but that's what the problem sounds like from the logic you described.

Edit: And no, any script that can be used to crash a sim on purpose has no practical uses outside of griefing. Crashed sims are not fun for anyone.
Domino Marama
Domino Designs
Join date: 22 Sep 2006
Posts: 1,126
10-25-2006 11:50
Sounds like you are storing the start position in the on_rez event. Quick fix is to reset scripts in the object before taking it into your inventory.
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
10-25-2006 12:11
Go to a sandbox with scripts disables, then work on it. Drop me a line in game and I can give you a hand.
Ican Morphett
Registered User
Join date: 25 Oct 2006
Posts: 3
10-25-2006 12:16
yeah i dunno but i dont think my script was advanced at all if i remember right i just set it to return to its original start position but even in that sim when i dropped five of em they all flew around crazy then went righ on top of al the others in the exact same spot. I thought sl would be up so i could post the code in know that will make it easier.

As for selecting it lol, its supposed to be touch activated but it just appears where i put it and poof tears off across the ground amazigly fast without any touch. ?Once it stopped though it was touch activated. Oh and thanks you did help me because i had no idea there was a non animated place to edit! so when i pull it out there it wont run away hehe, i guess that will be my first stop.
Aakanaar LaSalle
Registered User
Join date: 1 Sep 2006
Posts: 132
10-25-2006 22:37
Another thing to keep in mind, is the script doesn't reset when you rez it from your inventory. It reset the first time, when you first created it.

The script is disabled while it sits in your inventory but when you re-rez it, the script starts where it left off, so you need to set the original location to return to on the rez event, not on the state_entry.

Or, another trick is to make an on_rez event and have it simply reset the script. This would activate the state_entry