Miltades Posted September 21, 2016 Share Posted September 21, 2016 Hello,I have me a body I would like to script. However i have no idea how to. So far I have been using multiple copies of said body with the needed textures for alpha layers on them. As you can imagine this is super tedious when updating the body.It consists of 6 faces, I would like to be able to click on the body itself (or a HUD it doesn't matter really.) And be able to choose a texture based on what it is. So. Tank Top Alpha, T Shirt Alpha. Long Pants Alpha, No alpha ... and for the textures to appear on the correct face for that alpha texture.Does this make sense? Is there anyone who could help me? Thank youPS : This body isn't for commercial purposes. It's just my personal avatar and I have no interest in making a profit off of it. Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 21, 2016 Share Posted September 21, 2016 You're basically looking at scripting a texture changer, for which you will find probably hundreds of free examples. You could write it in several different ways, but you have already suggested perhaps the easiest one. Let each face on the model be the trigger site for a dialog menu, and let the various clothing textures for that face be the dialog choices. Then the heart of your script is simply a touch_start event containing a stack of dialogs in the form if (llDetectedTouchFace(0) == 0){ llDialog(llDetectedKey(0),"\nPick a texture ... any texture..",gHatTextures,gChannel);} Listen for the choice and apply the appropriate texture to that face. If you are new to scripting dialogs, spend some time with http://wiki.secondlife.com/wiki/Dialog_Menus . Link to comment Share on other sites More sharing options...
Amethyst Jetaime Posted September 22, 2016 Share Posted September 22, 2016 Rolig's reply is spot on. However if you have never scripted before and would rather someone write the script for you, post in the Inworld Employment section of these forums. Be sure to tell them it's for personal use only as a full perm script for commercial use will be much more expensive. Link to comment Share on other sites More sharing options...
Miltades Posted October 30, 2016 Author Share Posted October 30, 2016 Thank you guys very much for your replies. They're both very helpful! Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now