All right. I have passed Stage 1. I have managed to get a script into an item. It was Strife's Sit Script, which I put into my pillow so I could sit cross-legged on it. It worked just fine, creating the sit cross-legged action. (The problem with the other script was syntax errors, which of course I have no knowledge to fix.)
However, although I could stand on my HEAD cross-legged on the pillow, or HANG cross-legged UNDER it, or lie on my SIDE cross-legged BESIDE it, or any number of variations that occured when I fiddled with the sit-rot thingie, as was suggested to me by the nice person who gave me this script, I couldn't sit on it properly.
I spent a few hours doing that. I made another pillow and tried it. These pillows were made from toruses. Then I decided to try something new, and took out a bed I made, which was made from boxes, and (successfully) put a free sleep script I had in my inventory into it. I tried it out, and looked very unique glued to the back of the bed's headboard in a sleep position. I fiddled with those rot numbers for a while, but didn't hit on any right combination there either.
Then I decided to see what these scripts would do on a plain square prim. The effect seemed to bear no resemblance to what one would normally expect from the action in either a bed or on a pillow when I tried them.
Next, I tried a small round object. (The button from the center of my pillow, actually.) What I discovered was that it made me sit BELOW it (the button) and to the FRONT of it. That seemed odd and pointless. No one is going to sit cross-legged on something 6 inches behind their head.
I concluded from tonight's gala of trial and error that these scripts - once put into the object - then must be manipulated somehow in order to move the avatar into the correct position. I tried it via every combination of the sit-rot - 0,0,90, 0,0,180.....360,360360 - as recommended by the person who gave me the script - but nothing worked.
A while later, through the depths of my headache, I remembered a Bingo pillow I had in my inventory which you could sit cross-legged on. I dragged it out, with the idea of taking the script from it and seeing if it worked any better, but I couldn't access the script to it.
So . . . I have run up against yet another arcane secret of scripting, and I just can't figure it out.
Now that I have the script I want into the item, how do I manipulate numbers in the script to sit in the proper place? Or to sleep in the proper place, or whatever? IS it a matter of manipulating numbers somehow? Or is it something else?
Thank you in advance for your help.
coco