Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
01-08-2006 14:06
I've run into an interesting situation lately... On several scripts (all for various different products/functions/etc) I build have a simple command that calls llResetScript(), which is supposed to be exactly the same as pressing the blue "Reset" button on the script window itself. For some reason, however, the only thing pressing the reset button does is "stall" the script and force me to navigate to the contents folder and physically reset the script. It's a minor annoyance, but still an annoyance. Coding is essentially equivilant to:
touch_start(integer number) { llListen(100, "", llDetectedKey(0), ""); llDialog(llDetectedKey(0), "Please Select an Option: ", ["Reset"], 100); } listen(integer channel, string name, key id, string message) { if(message == "Reset") llResetScript(); }
It's a pretty simple function...so...wondering if anyone else is having problems with the reset script function?
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
Lee Ludd
Scripted doors & windows
Join date: 16 May 2005
Posts: 243
|
01-08-2006 17:10
Your code works perfectly for me. Must be something wrong with something in your script that you're not showing u s.
|
Ralph Doctorow
Registered User
Join date: 16 Oct 2005
Posts: 560
|
01-08-2006 18:37
llResetScript works fine for me too. It goes back to the state_entry in the default state.
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
01-08-2006 19:56
(it does more then just go back to the default state_entry)
It sounds to me like your script is having other problems, maybe post more of your script?
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
01-10-2006 10:11
Thanks...but...as I've mentioned before...it is an occurance among at least 5 independent/individual scripts that are in full working order and bug tested like nothing else.
Additionally...the "hard reset" (blue reset button) DOES work for these scripts...and the llResetScript() is supposed to be EXACTLY like that blue button. Therefore...it was my suspicion that llResetScript() was broken. I guess not.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|