a lost user
Join date: ?
Posts: ?
|
08-30-2005 18:33
 Eeek! I have a set of linked prims (Object A) that rezzes another item (Object B)briefly - 3 seconds - and then Object B executes llDie. Without thinking about the consequences, I have my original version of Object B saved with the llDie (time set upon rezzing) in the script. So, now I want to edit the script, but Object B disappears before I can even get to the content tab, let alone get the script open. Is there anyway around this? I'm new here, but I've yet to understand why we can't edit scripts contained in objects while they are in our inventory. (Or, while they are still residing within other objects) Thanks for any advice or possible solutions you may be able to provide.
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
08-30-2005 18:51
Try editing it in newcomb 
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
08-30-2005 18:53
Yes, I know exactly what you're talking about. Scripts like these are an absolute PAIN to edit... In the future, consider putting in the code to execute ONLY if the parameter passed to the on_rez event is not equal to zero. As to the actual solution, try this script. default { state_entry() { llSetScriptState("evilscript",FALSE); } }
Edit that in your inventory (change "evilscript", of course), and drop it into the object as soon as it rezzes. Good luck!
|
Taz Tomba
Registered User
Join date: 17 Sep 2004
Posts: 9
|
08-30-2005 23:06
Try attaching object 'b' to say your right hand, I have found that to be a work around for this sort of problem, and have been able to modify my scripts this way.
|
a lost user
Join date: ?
Posts: ?
|
Thanks
08-31-2005 19:52
Thank you for the great suggestions. I'll remember them if I'm ever (stupid enough) to do this in the future! I managed to edit it in this fashion: - Edit another object and leave the edit window open
- Select the Content Tab
- Rez the Object In Question and Touch It
Note - Since I already had the edit window open, the contents tab was populated with the script as soon as I touched the object.
- Open Script, Press CTRL-A and CTRL-C - allowing me to get a copy of the script
(Another lesson learned - don't have the ONLY copy of my script reside in an object - lots of lessons learned that day)
I was able to just get it copied in time before the object died.
- Paste Script into New Script in my Inventory
- Repeat Steps 1-3
- Click Script (in Contents Tab) and hit Delete key
Since the script was deleted, there's no timer event and llDie statement to kill object anymore
Again, I appreciate the assistance and provide my above solution as another method in case anyone else runs across this thread looking for help with a similar problem.
|
a lost user
Join date: ?
Posts: ?
|
08-31-2005 20:32
Yeh you can just hit CTRL+3 to enter edit mode. Even after the object is dead, if you have the script open you can copy and paste at your leisure.
And yeh.. don't script in new objects, period. Well may be tiny scripts.. but too often I have accidently deleted an object while trying to delete something from the contents. I always make new scripts in My inventory now and really.. if it's a major script.. you are going to want it in your inventory for later anyway.
|