Darkness Anubis
Registered User
Join date: 14 Jun 2004
Posts: 1,628
|
11-21-2005 06:57
Hi everyone let me begin by saying any and all help is greatly appreciated. I am unfortunately not much more advanced than a beginner. I am pretty good at reading code and following what was done but really bad at doing anything when faced with a blank script window. So please bear with me. I am trying to do my own script to change the color/texture of certain prims in a linked set. the plan is a touch on the object will bring up a dialog box where the color is selected ( all being done with linked messages to keep lag minimal). Ok I understand touchstart, and even understand how to change the color on specific prims to predefined colors. The problem is the Dialog box. I am totally baffled. I have been all over the Wikki, script examples there and the scripting forum here. I am just not finding something that my novice brain can wrap around. Could someone please take a stab at explaining them to me? or point me in the direction of a REALLY simple explaination? Thanks again in advance
|
Spidey Nerd
Registered User
Join date: 27 Sep 2005
Posts: 7
|
11-21-2005 07:19
Hey darkness- Just a suggestion.. Before you get into dialog boxes, you should play around with llListen, and having the user change colors that way.. for example, having the user type /99color red to change the color. Once you have a good understanding of that, understanding how the dialog box works will be more clear. For your color changing prim, you'll be using llSetLinkColor.. type that into your script and do a mouse over to check out the parameters. Each prim that is linked is assigned a specific link number, and you have to specify this number in your llSetLinkColor function. You may just have to play around with the number until you have the correct prim changing color, and after that, you can even specify which face of the prim is changing color if it's not the whole thing you want to change. anyways, hit me up next time you're online and i'll get you started on some simple llListen and llSetLinkColor scripts, would love to help you out
spidey nerd
|
Spidey Nerd
Registered User
Join date: 27 Sep 2005
Posts: 7
|
11-21-2005 07:21
oops.. didn't notice you mentioned you understand the llSetLinkColor already.. but definately check out the llListen stuff and try it that way first
|
Darkness Anubis
Registered User
Join date: 14 Jun 2004
Posts: 1,628
|
11-21-2005 08:33
From: Spidey Nerd For your color changing prim, you'll be using llSetLinkColor.. type that into your script and do a mouse over to check out the parameters. spidey nerd
ok for some reason with the advent of 1.7 mouse over to check parameters on something in a script no longer works for me. Any idea how to turn this back on? It has been driving me crazy LOL
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
11-21-2005 15:11
llDialog(key id, string message, list buttons, integer chat_channel), just up for referance key toucher; list buttons =["next","back"];
default { touch_start(integer bah) { toucher = llDetectedKey(0); llDialog(toucher,"Hello " + (llKey2Name(toucher)),buttons, 42); // if you want user input you need to start an llListen somewhere } }
That is a pretty generic working example of llDialog, its quite handy for user input, no /42 next commands just a purdy blue button, but overall its semi paragraph formatted private llSay. If you use a listen event and llListen the text from the buttons will be said from your av on the chat channel in llDialog, from there its just if (message = "next"  llGoNuts; just make shure your listen is on the same channel llDialog is saying on (in this script chat channel 42)
|