Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Resetting Scripts

Markie Macdonald
Hello MUM! x
Join date: 20 Dec 2004
Posts: 65
05-16-2005 03:23
I'm looking for some help (any one got a gun!)

I've created a backpack (for lifeforce) anyway, when it gets to 0 it llTeleportAgentHome and that works fine, but then an error comes up (which I can't get as I can't get logged in LOL). Two line error (not overflow) ach well...

and the script stops working...

But I reset the script and it works again! pain in the bum!

Is there a way to reset the script after the teleport? The script works fine if I take the line out

llTeleportAgentHome(llGetOwner());

Thanks for your help

Markie x
Water Rogers
Registered User
Join date: 1 May 2003
Posts: 286
05-16-2005 06:29
yup, llResetScript()

http://secondlife.com/badgeo/wakka.php?wakka=llResetScript

--Water
_____________________
From: Philip Linden

For the more technically minded - the problem is actually NOT the asset server (or 'asshat' as you prefer to affectionately call it herein).
Markie Macdonald
Hello MUM! x
Join date: 20 Dec 2004
Posts: 65
pulls trigger!
05-16-2005 06:34
Ah come on! I'm trying hard not to be a dumb red head! I looked the the WIKI... looked up script like script reset! ah this is why I should stick to clubbing!

Thank you so very very much! I hope we never meet that way you can laugh behind my back!

8-(

Thanks

Markie x
Water Rogers
Registered User
Join date: 1 May 2003
Posts: 286
05-16-2005 06:47
From: Markie Macdonald
Ah come on! I'm trying hard not to be a dumb red head! I looked the the WIKI... looked up script like script reset! ah this is why I should stick to clubbing!

Thank you so very very much! I hope we never meet that way you can laugh behind my back!

8-(

Thanks

Markie x


lol Markie don't hurt yourself over it, we've all been there :)
_____________________
From: Philip Linden

For the more technically minded - the problem is actually NOT the asset server (or 'asshat' as you prefer to affectionately call it herein).
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
05-16-2005 09:01
From: Water Rogers


Note that llResetScript and llResetOtherScript() don't work if the script crashed. At all. You have to reset by hand. It's a real pain.