I'm new to scripting in SL (ugh) and have been reading and reading and reading...trying to get my feet wet and get started and I have a few questions I was hoping someone could help me with or lend me some pointers. My situation is that in my 'first' life I actually am a programmer. I know Java, C++, etc. So programming conventions I'm familiar with. However, my job the past few years has been a COBOL programmer so its rare that I mess with Java/C type stuff. So aside from 'concepts'....my 'practical' knowledge of LSL style coding is pretty sparse. Moreso, I'm a business programmer so the idea of the type of 'stuff' you are scripting in SL is often pretty foreign concepts for me. As such, as I learn, its often more difficult for me as I have to often 'unlearn' what I know to learn the new stuff. Its pretty hard when you code one way (structured) 8 hours a day and then mess with coding another way (OO, event-driven) for 'fun'. hehe.
Anyway, now ya know my situation...on to my questions.
1) If you have an item in SL created by someone else and marked No Copy, No Trans, etc...can you still write scripts that will affect it? I'm a bit confused on this as all the tutorials I've been reading seem to involve placing your script into the object that the script will affect. However, if you can't put something 'in' that object because of its permissions....can you write a script somewhere ELSE to still affect it?
For example. I purchased a 'gun' from a vendor in SL. When I 'wear' the gun it places it in my avatar's hand. What I'd LIKE to be able to do is to build myself a 'holster' and write a script for the gun that would put the gun in the holster as its default attachment point when I 'wear' the gun...and then 'draw' the gun when I activate the script. Could I write the script and place it in the holster instead, and then interract with the holster? Say...for example...in my inventory choose 'wear' for the gun and it places it snug in its holster on my avatar's leg...then....when I want to 'draw' the gun....click on the holster and have the gun pop into my avatar's hand.
2) That same gun I purchased above....has a few custom animations attached to it. I couldn't figure out though, how to actually 'activate' those animations in the game....as they are part of the gun and that gun is no-copy no-modify. I IM'd the seller and asked him how I could activate those animations and he said that I need a special script to activate the animations that are a part of the gun, and I could get that script from another scripter. Any idea what he's talking about, what I need to do, or where I can get it? Can anyone explain this to me?
3) If you have say 10 custom built animations, let say for example...you have 10 custom built dancing animations. Is it possible to write a script that will allow the user to 'fire off' those animations using a menu based interface? For example...in the upper right of the screen you'd get a menu that had a button for each of the 10 dance moves...and the user could then simply 'click' on the move they'd like to perform and it would fire off that animation...or...perhaps hit a 'random' buttom that would randomly cycle through the animations.
4) Similar question to #1 above. If I bought...say...a flamethrower from someone else that is marked no-copy, no-modify....but that flamethrower doesn't have a particle effect and I'd like to create a 'stream of flame' that shoots out from the tip. I can't 'add' a script to the flamethrower because it is no-mod/no-copy....is there a way I can write a script to make the flame effect, store it somewhere else (Like my inventory) and somehow make it know to operate on the flamethrower and make flames shoot from the tip?
5) Is it possible to script the movement/actions of your own avatar? For example...say I want to script my avatar to perform some actions based on scripted decisions. I want my avatar to, depending on his 'state' of 'tired', 'hungry', or 'bored', either A) If tired, Approach and activate a pose ball which puts him in a sleeping pose on his bed, lay down and go to sleep or B) If hungry, Approach and activate a pose ball at his dinner table which makes him animate eating his food or C) If bored, Go to the living room and approach and activate a pose ball which sits him on the couch in front of his TV and turns it on.
Maybe those are some 'odd' questions, but please bear with me as I'm still learning and figuring out what can and cannot be done

Thanks!!!!

tells the link scipts when to draw and holster or show and hide but again only works form one side at a time)
;